[i18n] Camel case remaining keys (#6508)

* fix egg gacha keys

* fix battle keys

* fix game stats

* fix splash texts
This commit is contained in:
Fabi 2025-09-11 01:45:01 +02:00 committed by GitHub
parent 65c72c65b9
commit 328cc0221e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 8 additions and 8 deletions

View File

@ -234,7 +234,7 @@ const seasonalSplashMessages: Season[] = [
"valentines.happyValentines", "valentines.happyValentines",
"valentines.fullOfLove", "valentines.fullOfLove",
"valentines.applinForYou", "valentines.applinForYou",
"valentines.thePowerOfLoveIsThreeThirtyBST", "valentines.thePowerOfLoveIsThreeThirtyBst",
"valentines.haveAHeartScale", "valentines.haveAHeartScale",
"valentines.i<3You", "valentines.i<3You",
], ],
@ -265,7 +265,7 @@ const seasonalSplashMessages: Season[] = [
"aprilFools.whoIsFinn", "aprilFools.whoIsFinn",
"aprilFools.watchOutForShadowPokemon", "aprilFools.watchOutForShadowPokemon",
"aprilFools.nowWithDarkTypeLuxray", "aprilFools.nowWithDarkTypeLuxray",
"aprilFools.onlyOnPokerogueNetAGAIN", "aprilFools.onlyOnPokerogueNetAgain",
"aprilFools.noFreeVouchers", "aprilFools.noFreeVouchers",
"aprilFools.altffourAchievementPoints", "aprilFools.altffourAchievementPoints",
"aprilFools.rokePogue", "aprilFools.rokePogue",

View File

@ -220,7 +220,7 @@ export class CommandPhase extends FieldPhase {
if (!moveStatus.value) { if (!moveStatus.value) {
cannotSelectKey = "battle:moveCannotUseChallenge"; cannotSelectKey = "battle:moveCannotUseChallenge";
} else if (move.getPpRatio() === 0) { } else if (move.getPpRatio() === 0) {
cannotSelectKey = "battle:moveNoPP"; cannotSelectKey = "battle:moveNoPp";
} else if (move.getName().endsWith(" (N)")) { } else if (move.getName().endsWith(" (N)")) {
cannotSelectKey = "battle:moveNotImplemented"; cannotSelectKey = "battle:moveNotImplemented";
} else if (user.isMoveRestricted(move.moveId, user)) { } else if (user.isMoveRestricted(move.moveId, user)) {

View File

@ -932,7 +932,7 @@ export class MoveEffectPhase extends PokemonPhase {
msg = i18next.t("battle:hitResultNotVeryEffective"); msg = i18next.t("battle:hitResultNotVeryEffective");
break; break;
case HitResult.ONE_HIT_KO: case HitResult.ONE_HIT_KO:
msg = i18next.t("battle:hitResultOneHitKO"); msg = i18next.t("battle:hitResultOneHitKo");
break; break;
} }
if (msg) { if (msg) {

View File

@ -96,7 +96,7 @@ export class EggGachaUiHandler extends MessageUiHandler {
legendaryLabelY = 0; legendaryLabelY = 0;
} }
const gachaUpLabel = addTextObject(gachaX, gachaY, i18next.t("egg:legendaryUPGacha"), gachaTextStyle).setOrigin(0); const gachaUpLabel = addTextObject(gachaX, gachaY, i18next.t("egg:legendaryUpGacha"), gachaTextStyle).setOrigin(0);
gachaInfoContainer.add(gachaUpLabel); gachaInfoContainer.add(gachaUpLabel);
switch (gachaType as GachaType) { switch (gachaType as GachaType) {
@ -124,14 +124,14 @@ export class EggGachaUiHandler extends MessageUiHandler {
gachaUpLabel.setAlign("center").setY(0); gachaUpLabel.setAlign("center").setY(0);
} }
gachaUpLabel.setText(i18next.t("egg:moveUPGacha")).setX(0).setOrigin(0.5, 0); gachaUpLabel.setText(i18next.t("egg:moveUpGacha")).setX(0).setOrigin(0.5, 0);
break; break;
case GachaType.SHINY: case GachaType.SHINY:
if (["de", "fr", "ko", "ru"].includes(currentLanguage)) { if (["de", "fr", "ko", "ru"].includes(currentLanguage)) {
gachaUpLabel.setAlign("center").setY(0); gachaUpLabel.setAlign("center").setY(0);
} }
gachaUpLabel.setText(i18next.t("egg:shinyUPGacha")).setX(0).setOrigin(0.5, 0); gachaUpLabel.setText(i18next.t("egg:shinyUpGacha")).setX(0).setOrigin(0.5, 0);
break; break;
} }

View File

@ -108,7 +108,7 @@ const displayStats: DisplayStats = {
sourceFunc: gameData => gameData.gameStats.highestDamage.toString(), sourceFunc: gameData => gameData.gameStats.highestDamage.toString(),
}, },
highestHeal: { highestHeal: {
label_key: "highestHPHealed", label_key: "highestHpHealed",
sourceFunc: gameData => gameData.gameStats.highestHeal.toString(), sourceFunc: gameData => gameData.gameStats.highestHeal.toString(),
}, },
pokemonSeen: { pokemonSeen: {