fix language auto detect (#1784)

This commit is contained in:
雪霁 2024-06-08 00:27:42 +08:00 committed by GitHub
parent 20a3a4f60f
commit 19712e0d43
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n"; import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const tutorial: SimpleTranslationEntries = { export const tutorial: SimpleTranslationEntries = {
"intro": `欢迎来到PokéRogue这是一款以战斗为核心的融合了roguelite元素的宝可梦同人游戏。 "intro": `欢迎来到PokéRogue这是一款以战斗为核心的\n融合了roguelite元素的宝可梦同人游戏。
$本游戏未进行商业化\nPokémon或Pokémon使用的版 $本游戏未进行商业化\nPokémon或Pokémon使用的版
$权资产的所有权 $权资产的所有权
$游戏仍在开发中\n告错误 Discord $游戏仍在开发中\n告错误 Discord

View File

@ -174,13 +174,13 @@ export function initI18n(): void {
de: { de: {
...deConfig ...deConfig
}, },
pt_BR: { "pt-BR": {
...ptBrConfig ...ptBrConfig
}, },
zh_CN: { "zh-CN": {
...zhCnConfig ...zhCnConfig
}, },
zh_TW: { "zh-TW": {
...zhTwConfig ...zhTwConfig
}, },
ko: { ko: {

View File

@ -480,15 +480,15 @@ export function setSetting(scene: BattleScene, setting: string, value: integer):
}, },
{ {
label: "Português (BR)", label: "Português (BR)",
handler: () => changeLocaleHandler("pt_BR") handler: () => changeLocaleHandler("pt-BR")
}, },
{ {
label: "简体中文", label: "简体中文",
handler: () => changeLocaleHandler("zh_CN") handler: () => changeLocaleHandler("zh-CN")
}, },
{ {
label: "繁體中文", label: "繁體中文",
handler: () => changeLocaleHandler("zh_TW") handler: () => changeLocaleHandler("zh-TW")
}, },
{ {
label: "한국어", label: "한국어",