Skip to content

Commit d8d4124

Browse files
Copilothotlong
andcommitted
feat(app-crm): refactor translations to per-locale file splitting
Split monolithic crm.translation.ts into per-locale files: - en.ts, zh-CN.ts, ja-JP.ts, es-ES.ts - Add i18n config to objectstack.config.ts Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent e3943b5 commit d8d4124

6 files changed

Lines changed: 733 additions & 683 deletions

File tree

examples/app-crm/objectstack.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,14 @@ export default defineStack({
5050
// Seed Data (top-level, registered as metadata)
5151
data: CrmSeedData,
5252

53+
// I18n Configuration — per-locale file organization
54+
i18n: {
55+
defaultLocale: 'en',
56+
supportedLocales: ['en', 'zh-CN', 'ja-JP', 'es-ES'],
57+
fallbackLocale: 'en',
58+
fileOrganization: 'per_locale',
59+
},
60+
5361
// I18n Translation Bundles (en, zh-CN, ja-JP, es-ES)
5462
translations: Object.values(translations),
5563

0 commit comments

Comments
 (0)