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

* 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 <junhan.wu@nexttao.com>
This commit is contained in:
Vaner42 2024-05-18 22:47:59 +08:00 committed by GitHub
parent 27139c0d8c
commit 49adedbc0f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -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 {

View File

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