Make Simplified Chinese locale use zh_CN

pull/667/head
Madmadness65 2024-05-08 23:11:04 -05:00
parent 5992d9eb81
commit e39b157767
16 changed files with 9 additions and 8 deletions

View File

@ -1920,7 +1920,8 @@ export const trainerTypeDialogue = {
}, },
[TrainerType.WULFRIC]: { [TrainerType.WULFRIC]: {
encounter: [ 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!`, $Who cares about the grandstanding? Let's get to battling!`,
], ],
victory: [ victory: [

View File

@ -12,7 +12,7 @@ import { starterSelectUiHandler } from "./starter-select-ui-handler";
import { tutorial } from "./tutorial"; import { tutorial } from "./tutorial";
export const chsConfig = { export const zhCnConfig = {
ability: ability, ability: ability,
battle: battle, battle: battle,
commandUiHandler: commandUiHandler, commandUiHandler: commandUiHandler,

View File

@ -6,7 +6,7 @@ import { enConfig } from '#app/locales/en/config.js';
import { esConfig } from '#app/locales/es/config.js'; import { esConfig } from '#app/locales/es/config.js';
import { frConfig } from '#app/locales/fr/config.js'; import { frConfig } from '#app/locales/fr/config.js';
import { itConfig } from '#app/locales/it/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 { export interface SimpleTranslationEntries {
[key: string]: string [key: string]: string
@ -59,7 +59,7 @@ export function initI18n(): void {
i18next.use(LanguageDetector).init({ i18next.use(LanguageDetector).init({
lng: lang, lng: lang,
fallbackLng: 'en', fallbackLng: 'en',
supportedLngs: ['en', 'es', 'fr', 'it', 'de', 'chs'], supportedLngs: ['en', 'es', 'fr', 'it', 'de', 'zh_CN'],
debug: true, debug: true,
interpolation: { interpolation: {
escapeValue: false, escapeValue: false,
@ -80,8 +80,8 @@ export function initI18n(): void {
de: { de: {
...deConfig ...deConfig
}, },
chs: { zh_CN: {
...chsConfig ...zhCnConfig
} }
}, },
}); });

View File

@ -199,8 +199,8 @@ export function setSetting(scene: BattleScene, setting: Setting, value: integer)
handler: () => changeLocaleHandler('de') handler: () => changeLocaleHandler('de')
}, },
{ {
label: 'Simplified Chinese', label: '简体中文',
handler: () => changeLocaleHandler('chs') handler: () => changeLocaleHandler('zh_CN')
}, },
{ {
label: 'Cancel', label: 'Cancel',