Skip to content

i18next plurals Weblate sync inconsistencies #3368

@danielweck

Description

@danielweck

For et, the bug is in our "secondary" locales list:

"i18n-scan_": "node ./scripts/translate-scan.js \"src/resources/locales/temp.json\" && sync-i18n --files 'src/resources/locales/*.json' --primary temp --languages en ta tr ar cs sl bg ca da de el es eu fi fr gl hr it ja ka ko lt nl pt-br pt-pt ru sv zh-cn zh-tw --space \" \" --finalnewline --newkeysempty && rimraf \"src/resources/locales/temp.json\"",
"i18n-check_": "sync-i18n --files 'src/resources/locales/*.json' --primary en --languages ta tr ar cs sl bg ca da de el es eu fi fr gl hr it ja ka ko lt nl pt-br pt-pt ru sv zh-cn zh-tw --space \" \" --finalnewline --newkeysempty",
"i18n-scan": "node ./scripts/translate-scan.js \"src/resources/locales/und.json\" && i18next-locales-sync --compatibilityJSON v4 --localesFolder ./src/resources/locales/ --primaryLanguage und --secondaryLanguages en ta tr ar cs sl bg ca da de el es eu fi fr gl hr it ja ka ko lt nl pt-br pt-pt ru sv zh-cn zh-tw --spaces 4 --useEmptyString true && rimraf \"src/resources/locales/und.json\"",
"posti18n-scan": "npm run i18n-sort",
"i18n-check": "i18next-locales-sync --compatibilityJSON v4 --localesFolder ./src/resources/locales/ --primaryLanguage en --secondaryLanguages ta tr ar cs sl bg ca da de el es eu fi fr gl hr it ja ka ko lt nl pt-br pt-pt ru sv zh-cn zh-tw --spaces 4 --useEmptyString true",
"posti18n-check": "npm run i18n-sort",

For ru and lt, I will run Thorium Desktop's own tooling (canonical JSON formatting, key ordering, and automatic key injection + plural expansion), after merging the PR #3361 (I will lock Weblate prior to pushing changes, in order to avoid Git conflicts)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions