Releases: labd/intl-extractor
v2.2.0
v2.1.0
v2.0.1
v2.0.0
Major Changes
-
9e5046e: Watch mode and updated workflows
Watch mode
This release adds watch mode using
@parcel/watcher(optional dependency). Use--watchor-wcli flag to run.
Note: This is a simple implementation that just reprocesses all files once there's an update.Breaking change: Only one input directory is allowed instead of multiple, this is so we do not have to run multiple watchers for each input directory.
Other
- Update to pnpm 10
- Use corepack
- Use unified release workflow for Lab Digital packages
v1.1.0
v1.0.0
Major Changes
-
49b4b35: Output labels to a single json file
What changed
Instead of creating individual
<File>.labels.jsonfiles for each TypeScript file it will now output a single JSON file containing all the namespaces and labels.
It conforms to hownext-intlworks and removes the inbetween step since we can automate with this tool.Next to this the argument for passing directories has changed from
--sourceto--inputas it's confusing withsource.jsonotherwise.Why
Individual
*.labels.jsonfiles were helpful to colocate labels and merge them to the single required JSON file. But now that we have this extractor we can just check all usages ofuseTranslationsandgetTranslationsand merge them directly.Also the original implementation took file names as input instead of the used namespaces which led to unused labels and no support for multiple namespaces in one file.
How to update
- Make sure your output JSON file is completely up to date
- Update the extractor
- Use
--inputinstead of--sourcefor input files - Run extractor
- Remove all
*.labels.jsonfiles from your project :)