Fixed the replace method that was not executed in check female version exists; And fixed pokefan key in localization;

This commit is contained in:
Junhan 2024-05-18 17:43:05 +08:00
parent 9f818f80ee
commit 8b273cd0ea
2 changed files with 3 additions and 3 deletions

View File

@ -505,7 +505,7 @@ export class TrainerConfig {
initI18n(); initI18n();
} }
// Check if the female version exists in the i18n file // 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 // If it does, return
return ret + "_female"; return ret + "_female";
} else { } else {

View File

@ -68,8 +68,8 @@ export const trainerClasses: SimpleTranslationEntries = {
"officer": "警察", "officer": "警察",
"parasol_lady": "阳伞姐姐", "parasol_lady": "阳伞姐姐",
"pilot": "飞行员", "pilot": "飞行员",
"pokefan": "发烧友俱乐部", "poké_fan": "发烧友俱乐部",
"pokefan_family": "同好夫妇", "poké_fan_family": "同好夫妇",
"preschooler": "幼儿园小朋友", "preschooler": "幼儿园小朋友",
"preschooler_female": "幼儿园小朋友", "preschooler_female": "幼儿园小朋友",
"preschoolers": "幼儿园小朋友组合", "preschoolers": "幼儿园小朋友组合",