diff --git a/src/data/trainers/trainer-config.ts b/src/data/trainers/trainer-config.ts index cc0d5656e4c..16eb15f17e3 100644 --- a/src/data/trainers/trainer-config.ts +++ b/src/data/trainers/trainer-config.ts @@ -771,12 +771,9 @@ export class TrainerConfig { } } // Check if !variant is true, if so return the name, else return the name with _female appended - else if (variant) { - // Check if the female version exists in the i18n file - if (i18next.exists(`trainerClasses:${toCamelCase(this.name)}Female`)) { - // If it does, return - return ret + "Female"; - } + // Check if the female version exists in the i18n file + else if (variant && i18next.exists(`trainerClasses:${toCamelCase(this.name)}Female`)) { + return ret + "Female"; } } diff --git a/src/plugins/i18n.ts b/src/plugins/i18n.ts index 03da1d66f5f..9cd70973e8e 100644 --- a/src/plugins/i18n.ts +++ b/src/plugins/i18n.ts @@ -137,6 +137,7 @@ function i18nMoneyFormatter(amount: any): string { //#region Initialization /** + * @module * i18next is a localization library for maintaining and using translation resources. * * Q: How do I add a new language?