mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-16 21:32:18 +02:00
add chinese as an option in selection menu, translate command ui
This commit is contained in:
parent
17aca32145
commit
e1117ddbfb
@ -1,9 +1,9 @@
|
|||||||
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
import { SimpleTranslationEntries } from "#app/plugins/i18n";
|
||||||
|
|
||||||
export const commandUiHandler: SimpleTranslationEntries = {
|
export const commandUiHandler: SimpleTranslationEntries = {
|
||||||
"fight": "Fight",
|
"fight": "战斗",
|
||||||
"ball": "Ball",
|
"ball": "精靈球",
|
||||||
"pokemon": "Pokémon",
|
"pokemon": "宝可梦",
|
||||||
"run": "Run",
|
"run": "逃走",
|
||||||
"actionMessage": "What will\n{{pokemonName}} do?",
|
"actionMessage": "{{pokemonName}}要怎么做?",
|
||||||
} as const;
|
} as const;
|
@ -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', 'zh-hans'],
|
supportedLngs: ['en', 'es', 'fr', 'it', 'de', 'zh_hans'],
|
||||||
debug: true,
|
debug: true,
|
||||||
interpolation: {
|
interpolation: {
|
||||||
escapeValue: false,
|
escapeValue: false,
|
||||||
@ -80,7 +80,7 @@ export function initI18n(): void {
|
|||||||
de: {
|
de: {
|
||||||
...deConfig
|
...deConfig
|
||||||
},
|
},
|
||||||
zh-hans: {
|
zh_hans: {
|
||||||
...zhHansConfig
|
...zhHansConfig
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -198,6 +198,10 @@ export function setSetting(scene: BattleScene, setting: Setting, value: integer)
|
|||||||
label: 'German',
|
label: 'German',
|
||||||
handler: () => changeLocaleHandler('de')
|
handler: () => changeLocaleHandler('de')
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Chinese (Simplified)',
|
||||||
|
handler: () => changeLocaleHandler('zh_hans')
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Cancel',
|
label: 'Cancel',
|
||||||
handler: () => cancelHandler()
|
handler: () => cancelHandler()
|
||||||
|
Loading…
Reference in New Issue
Block a user