mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 08:21:39 -06:00
a0bc01ea50
Both catalogs held nothing but English fallback values, so selecting either language produced a fully English interface that reads as broken rather than untranslated. Crowdin Translate covers only 24 languages and includes neither, so neither locale had any machine translation route, and no human translations existed yet. Drop them from the shared locale list, the Crowdin export configuration, the pull request allowlist, the catalogs, and the tests, leaving fifteen target languages. Remove both from the Crowdin project as well, after confirming each export was byte-identical to the English source so no translation work was discarded. Re-adding either is cheap once a translation route exists, whether that is a machine translation engine that supports them or a volunteer translator. Give the locale tests the same fallback semantics the application runs with. Production always loads the English catalog and points `fallbackLocale` at it, so a key a target catalog does not carry renders English. The test instances omitted both, which resolves a missing key to its own name, and several assertions compared a translated label against the English one without checking that the language actually translates that key. Both patterns pass only while every catalog is complete, and would fail confusingly the first time a language lags behind a new key. Delete the Crowdin service branch automatically once its pull request closes or merges. Crowdin appends every export to the same branch and never rebases it, so a branch that outlives its pull request keeps its original merge base and each later export diverges further from main until every catalog conflicts. Deleting it forces Crowdin to recreate the branch from the current main. Ref #576
31 lines
556 B
YAML
31 lines
556 B
YAML
preserve_hierarchy: true
|
|
|
|
export_languages:
|
|
- cs
|
|
- da
|
|
- de
|
|
- es-ES
|
|
- fi
|
|
- fr
|
|
- it
|
|
- nl
|
|
- pl
|
|
- pt-BR
|
|
- ru
|
|
- sl
|
|
- sv-SE
|
|
- uk
|
|
- zh-CN
|
|
|
|
pull_request_title: "i18n(client): sync translations from Crowdin"
|
|
commit_message: |-
|
|
i18n(client): sync %language% translations from Crowdin
|
|
|
|
Keep translated catalogs synchronized with reviewed Crowdin content.
|
|
append_commit_message: false
|
|
|
|
files:
|
|
- source: /client/src/locales/en.json
|
|
translation: /client/src/locales/%two_letters_code%.json
|
|
update_option: update_as_unapproved
|