mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 08:16:04 +00:00
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:
parent
27139c0d8c
commit
49adedbc0f
@ -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 {
|
||||
|
@ -68,8 +68,8 @@ export const trainerClasses: SimpleTranslationEntries = {
|
||||
"officer": "警察",
|
||||
"parasol_lady": "阳伞姐姐",
|
||||
"pilot": "飞行员",
|
||||
"pokefan": "发烧友俱乐部",
|
||||
"pokefan_family": "同好夫妇",
|
||||
"poké_fan": "发烧友俱乐部",
|
||||
"poké_fan_family": "同好夫妇",
|
||||
"preschooler": "幼儿园小朋友",
|
||||
"preschooler_female": "幼儿园小朋友",
|
||||
"preschoolers": "幼儿园小朋友组合",
|
||||
|
Loading…
Reference in New Issue
Block a user