From 49adedbc0f5fcc22c4931be0f61fd8e5a6939576 Mon Sep 17 00:00:00 2001 From: Vaner42 <94883874+Vaner42@users.noreply.github.com> Date: Sat, 18 May 2024 22:47:59 +0800 Subject: [PATCH] Fixed the replace method that was not executed in check female version exists; And fixed pokefan key in localization; (#1086) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Translate 'trainer' into Simplified Chinese. * fixed translate 'hau'、 ‘diantha’ 、‘leon’ into Simplified Chinese. * Fixed the replace method that was not executed in check female version exists; And fixed pokefan key in localization; --------- Co-authored-by: Junhan --- src/data/trainer-config.ts | 2 +- src/locales/zh_CN/trainers.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/data/trainer-config.ts b/src/data/trainer-config.ts index 84fb4ffc15c..685662a2114 100644 --- a/src/data/trainer-config.ts +++ b/src/data/trainer-config.ts @@ -505,7 +505,7 @@ export class TrainerConfig { initI18n(); } // Check if the female version exists in the i18n file - if (i18next.exists(`trainerClasses:${this.name.toLowerCase().replace}`)) { + if (i18next.exists(`trainerClasses:${this.name.toLowerCase().replace()}`)) { // If it does, return return ret + "_female"; } else { diff --git a/src/locales/zh_CN/trainers.ts b/src/locales/zh_CN/trainers.ts index e7ca1093268..2dd10d49ef4 100644 --- a/src/locales/zh_CN/trainers.ts +++ b/src/locales/zh_CN/trainers.ts @@ -68,8 +68,8 @@ export const trainerClasses: SimpleTranslationEntries = { "officer": "警察", "parasol_lady": "阳伞姐姐", "pilot": "飞行员", - "pokefan": "发烧友俱乐部", - "pokefan_family": "同好夫妇", + "poké_fan": "发烧友俱乐部", + "poké_fan_family": "同好夫妇", "preschooler": "幼儿园小朋友", "preschooler_female": "幼儿园小朋友", "preschoolers": "幼儿园小朋友组合",