Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 926 Bytes

File metadata and controls

24 lines (17 loc) · 926 Bytes

Angular Project Integration Example

This directory shows how to integrate LocaleSync into a typical Angular project.

Files

  • package.json — Example Angular package.json with LocaleSync npm scripts
  • .github/workflows/translations.yml — Example CI workflow for translation checks
  • src/assets/i18n/ — Example locale file structure

How This Works

  1. LocaleSync is installed separately via pipx or pip (not from npm).
  2. package.json scripts invoke locale-sync as an external CLI command.
  3. CI workflow uses setup-python + pip install to make locale-sync available.

Try It

# 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