Make Simplified Chinese locale use zh_CN

This commit is contained in:
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]: {
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: [

View File

@ -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,

View File

@ -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
}
},
});

View File

@ -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',