This directory shows how to integrate LocaleSync into a typical Angular project.
package.json— Example Angularpackage.jsonwith LocaleSync npm scripts.github/workflows/translations.yml— Example CI workflow for translation checkssrc/assets/i18n/— Example locale file structure
- LocaleSync is installed separately via
pipxorpip(not from npm). package.jsonscripts invokelocale-syncas an external CLI command.- CI workflow uses
setup-python+pip installto makelocale-syncavailable.
# From the LocaleSync repository root, you can simulate the Angular workflow:
locale-sync scan examples/angular-project/src/assets/i18n
locale-sync check examples/angular-project/src/assets/i18n --source en.json
locale-sync sync examples/angular-project/src/assets/i18n --source en.json --dry-run