| name | i18n-sync |
| std-agent-type | commands |
| description | One-shot lingui extract + compile to resync the locale catalogs (Invoke when user types /i18n-sync or asks to run i18n-sync) |
/i18n-sync
Resync the lingui catalogs: extract new copy -> prompt for translation -> compile the runtime artifacts. Full background lives in the lingui-i18n skill.
Steps
-
extract:
bash .stdai/standards/skills/lingui-i18n/scripts/extract.sh
-
Report the Missing count per locale. If any locale other than the source locale (en) has missing translations, list the files to translate at packages/i18n/locales/<locale>/messages.po and ask the user to translate them (or confirm machine-translated placeholders).
-
compile:
bash .stdai/standards/skills/lingui-i18n/scripts/compile.sh
Forward $ARGUMENTS (for example --strict, which makes compile fail on untranslated messages).
-
Run the coverage gate and report failures:
pnpm run i18n:audit
-
Confirm git diff shows updated packages/i18n/locales/**/messages.mjs artifacts and remind the user to commit them together with the source change.
Constraints
- The runtime imports the compiled artifacts, never the
.po files.
- ICU placeholders MUST be identical across every locale; never add or drop one.
- Email templates are out of scope for lingui (Mustache + R2, see chapter 07).