Make Simplified Chinese locale use zh_CN
parent
5992d9eb81
commit
e39b157767
|
@ -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: [
|
||||||
|
|
|
@ -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,
|
|
@ -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
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue