mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 08:21:35 +00:00
Rewriting apps/.i18n/native-source.json without regenerating the derived Android/Apple artifacts lands a stale iOS catalog and turns the repo-wide apple/android i18n checks red for every PR (this is how main broke after recent app-string additions: the inventory and translations were committed while Localizable.xcstrings was not regenerated). native-app-i18n.ts sync --write now chains syncAndroidAppI18n and a new exported syncAppleAppI18n (catalog + InfoPlist strings) so one command leaves the whole i18n tree consistent. The shared locale list moves to scripts/native-i18n-locales.ts to break the import cycle between the inventory scanner's top-level CLI await and the derived generators.
30 lines
518 B
TypeScript
30 lines
518 B
TypeScript
/**
|
|
* Shared native-app locale list. Lives outside native-app-i18n.ts so the
|
|
* derived generators (android-app-i18n, apple-app-i18n) can import it without
|
|
* creating a cycle with native-app-i18n's top-level CLI await, which chains
|
|
* those generators after rewriting the inventory.
|
|
*/
|
|
export const NATIVE_I18N_LOCALES = [
|
|
"zh-CN",
|
|
"zh-TW",
|
|
"pt-BR",
|
|
"de",
|
|
"es",
|
|
"ja-JP",
|
|
"ko",
|
|
"fr",
|
|
"hi",
|
|
"ar",
|
|
"it",
|
|
"tr",
|
|
"uk",
|
|
"id",
|
|
"pl",
|
|
"th",
|
|
"vi",
|
|
"nl",
|
|
"fa",
|
|
"ru",
|
|
"sv",
|
|
] as const;
|