From e39b1577674c69d0fc8822a92a74287f55c69eef Mon Sep 17 00:00:00 2001 From: Madmadness65 Date: Wed, 8 May 2024 23:11:04 -0500 Subject: [PATCH] Make Simplified Chinese locale use zh_CN --- src/data/dialogue.ts | 3 ++- src/locales/{chs => zh_CN}/ability.ts | 0 src/locales/{chs => zh_CN}/battle.ts | 0 src/locales/{chs => zh_CN}/command-ui-handler.ts | 0 src/locales/{chs => zh_CN}/config.ts | 2 +- src/locales/{chs => zh_CN}/fight-ui-handler.ts | 0 src/locales/{chs => zh_CN}/menu-ui-handler.ts | 0 src/locales/{chs => zh_CN}/menu.ts | 0 src/locales/{chs => zh_CN}/move.ts | 0 src/locales/{chs => zh_CN}/pokeball.ts | 0 src/locales/{chs => zh_CN}/pokemon-stat.ts | 0 src/locales/{chs => zh_CN}/pokemon.ts | 0 src/locales/{chs => zh_CN}/starter-select-ui-handler.ts | 0 src/locales/{chs => zh_CN}/tutorial.ts | 0 src/plugins/i18n.ts | 8 ++++---- src/system/settings.ts | 4 ++-- 16 files changed, 9 insertions(+), 8 deletions(-) rename src/locales/{chs => zh_CN}/ability.ts (100%) rename src/locales/{chs => zh_CN}/battle.ts (100%) rename src/locales/{chs => zh_CN}/command-ui-handler.ts (100%) rename src/locales/{chs => zh_CN}/config.ts (96%) rename src/locales/{chs => zh_CN}/fight-ui-handler.ts (100%) rename src/locales/{chs => zh_CN}/menu-ui-handler.ts (100%) rename src/locales/{chs => zh_CN}/menu.ts (100%) rename src/locales/{chs => zh_CN}/move.ts (100%) rename src/locales/{chs => zh_CN}/pokeball.ts (100%) rename src/locales/{chs => zh_CN}/pokemon-stat.ts (100%) rename src/locales/{chs => zh_CN}/pokemon.ts (100%) rename src/locales/{chs => zh_CN}/starter-select-ui-handler.ts (100%) rename src/locales/{chs => zh_CN}/tutorial.ts (100%) diff --git a/src/data/dialogue.ts b/src/data/dialogue.ts index ec9fde7eb..830b5f437 100644 --- a/src/data/dialogue.ts +++ b/src/data/dialogue.ts @@ -1920,7 +1920,8 @@ export const trainerTypeDialogue = { }, [TrainerType.WULFRIC]: { encounter: [ - `You know what? We all talk big about what you learn from battling and bonds and all that, but really, I just do it 'cause it's fun. + `You know what? We all talk big about what you learn from battling and bonds and all that… + $But really, I just do it 'cause it's fun. $Who cares about the grandstanding? Let's get to battling!`, ], victory: [ diff --git a/src/locales/chs/ability.ts b/src/locales/zh_CN/ability.ts similarity index 100% rename from src/locales/chs/ability.ts rename to src/locales/zh_CN/ability.ts diff --git a/src/locales/chs/battle.ts b/src/locales/zh_CN/battle.ts similarity index 100% rename from src/locales/chs/battle.ts rename to src/locales/zh_CN/battle.ts diff --git a/src/locales/chs/command-ui-handler.ts b/src/locales/zh_CN/command-ui-handler.ts similarity index 100% rename from src/locales/chs/command-ui-handler.ts rename to src/locales/zh_CN/command-ui-handler.ts diff --git a/src/locales/chs/config.ts b/src/locales/zh_CN/config.ts similarity index 96% rename from src/locales/chs/config.ts rename to src/locales/zh_CN/config.ts index 6dad05304..0d0f1ea5a 100644 --- a/src/locales/chs/config.ts +++ b/src/locales/zh_CN/config.ts @@ -12,7 +12,7 @@ import { starterSelectUiHandler } from "./starter-select-ui-handler"; import { tutorial } from "./tutorial"; -export const chsConfig = { +export const zhCnConfig = { ability: ability, battle: battle, commandUiHandler: commandUiHandler, diff --git a/src/locales/chs/fight-ui-handler.ts b/src/locales/zh_CN/fight-ui-handler.ts similarity index 100% rename from src/locales/chs/fight-ui-handler.ts rename to src/locales/zh_CN/fight-ui-handler.ts diff --git a/src/locales/chs/menu-ui-handler.ts b/src/locales/zh_CN/menu-ui-handler.ts similarity index 100% rename from src/locales/chs/menu-ui-handler.ts rename to src/locales/zh_CN/menu-ui-handler.ts diff --git a/src/locales/chs/menu.ts b/src/locales/zh_CN/menu.ts similarity index 100% rename from src/locales/chs/menu.ts rename to src/locales/zh_CN/menu.ts diff --git a/src/locales/chs/move.ts b/src/locales/zh_CN/move.ts similarity index 100% rename from src/locales/chs/move.ts rename to src/locales/zh_CN/move.ts diff --git a/src/locales/chs/pokeball.ts b/src/locales/zh_CN/pokeball.ts similarity index 100% rename from src/locales/chs/pokeball.ts rename to src/locales/zh_CN/pokeball.ts diff --git a/src/locales/chs/pokemon-stat.ts b/src/locales/zh_CN/pokemon-stat.ts similarity index 100% rename from src/locales/chs/pokemon-stat.ts rename to src/locales/zh_CN/pokemon-stat.ts diff --git a/src/locales/chs/pokemon.ts b/src/locales/zh_CN/pokemon.ts similarity index 100% rename from src/locales/chs/pokemon.ts rename to src/locales/zh_CN/pokemon.ts diff --git a/src/locales/chs/starter-select-ui-handler.ts b/src/locales/zh_CN/starter-select-ui-handler.ts similarity index 100% rename from src/locales/chs/starter-select-ui-handler.ts rename to src/locales/zh_CN/starter-select-ui-handler.ts diff --git a/src/locales/chs/tutorial.ts b/src/locales/zh_CN/tutorial.ts similarity index 100% rename from src/locales/chs/tutorial.ts rename to src/locales/zh_CN/tutorial.ts diff --git a/src/plugins/i18n.ts b/src/plugins/i18n.ts index 6b97f6d6b..91006979b 100644 --- a/src/plugins/i18n.ts +++ b/src/plugins/i18n.ts @@ -6,7 +6,7 @@ import { enConfig } from '#app/locales/en/config.js'; import { esConfig } from '#app/locales/es/config.js'; import { frConfig } from '#app/locales/fr/config.js'; import { itConfig } from '#app/locales/it/config.js'; -import { chsConfig } from '#app/locales/chs/config.js'; +import { zhCnConfig } from '#app/locales/zh_CN/config.js'; export interface SimpleTranslationEntries { [key: string]: string @@ -59,7 +59,7 @@ export function initI18n(): void { i18next.use(LanguageDetector).init({ lng: lang, fallbackLng: 'en', - supportedLngs: ['en', 'es', 'fr', 'it', 'de', 'chs'], + supportedLngs: ['en', 'es', 'fr', 'it', 'de', 'zh_CN'], debug: true, interpolation: { escapeValue: false, @@ -80,8 +80,8 @@ export function initI18n(): void { de: { ...deConfig }, - chs: { - ...chsConfig + zh_CN: { + ...zhCnConfig } }, }); diff --git a/src/system/settings.ts b/src/system/settings.ts index 1962a96cb..ac4407c03 100644 --- a/src/system/settings.ts +++ b/src/system/settings.ts @@ -199,8 +199,8 @@ export function setSetting(scene: BattleScene, setting: Setting, value: integer) handler: () => changeLocaleHandler('de') }, { - label: 'Simplified Chinese', - handler: () => changeLocaleHandler('chs') + label: '简体中文', + handler: () => changeLocaleHandler('zh_CN') }, { label: 'Cancel',