mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-18 21:39:28 +02:00
change biome locales uses
This commit is contained in:
parent
7dfe1ce216
commit
35cf80705e
@ -7,6 +7,7 @@ import { TimeOfDay } from "#enums/time-of-day";
|
||||
import { TrainerType } from "#enums/trainer-type";
|
||||
import { randSeedInt } from "#utils/common";
|
||||
import { getEnumValues } from "#utils/enums";
|
||||
import { toCamelCase } from "#utils/strings";
|
||||
import i18next from "i18next";
|
||||
|
||||
export function getBiomeName(biome: BiomeId | -1) {
|
||||
@ -15,13 +16,13 @@ export function getBiomeName(biome: BiomeId | -1) {
|
||||
}
|
||||
switch (biome) {
|
||||
case BiomeId.GRASS:
|
||||
return i18next.t("biome:GRASS");
|
||||
return i18next.t("biome:grass");
|
||||
case BiomeId.RUINS:
|
||||
return i18next.t("biome:RUINS");
|
||||
return i18next.t("biome:ruins");
|
||||
case BiomeId.END:
|
||||
return i18next.t("biome:END");
|
||||
return i18next.t("biome:end");
|
||||
default:
|
||||
return i18next.t(`biome:${BiomeId[biome].toUpperCase()}`);
|
||||
return i18next.t(`biome:${toCamelCase(BiomeId[biome])}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ import { addWindow } from "#ui/ui-theme";
|
||||
import { BooleanHolder, getLocalizedSpriteKey, isNullOrUndefined, padInt, rgbHexToRgba } from "#utils/common";
|
||||
import { getEnumValues } from "#utils/enums";
|
||||
import { getPokemonSpecies, getPokemonSpeciesForm } from "#utils/pokemon-utils";
|
||||
import { toTitleCase } from "#utils/strings";
|
||||
import { toCamelCase, toTitleCase } from "#utils/strings";
|
||||
import { argbFromRgba } from "@material/material-color-utilities";
|
||||
import i18next from "i18next";
|
||||
import type BBCodeText from "phaser3-rex-plugins/plugins/gameobjects/tagtext/bbcodetext/BBCodeText";
|
||||
@ -1517,13 +1517,13 @@ export class PokedexPageUiHandler extends MessageUiHandler {
|
||||
this.biomes.map(b => {
|
||||
options.push({
|
||||
label:
|
||||
i18next.t(`biome:${BiomeId[b.biome].toUpperCase()}`) +
|
||||
i18next.t(`biome:${toCamelCase(BiomeId[b.biome])}`) +
|
||||
" - " +
|
||||
i18next.t(`biome:${BiomePoolTier[b.tier].toUpperCase()}`) +
|
||||
i18next.t(`biome:${toCamelCase(BiomePoolTier[b.tier])}`) +
|
||||
(b.tod.length === 1 && b.tod[0] === -1
|
||||
? ""
|
||||
: " (" +
|
||||
b.tod.map(tod => i18next.t(`biome:${TimeOfDay[tod].toUpperCase()}`)).join(", ") +
|
||||
b.tod.map(tod => i18next.t(`biome:${toCamelCase(TimeOfDay[tod])}`)).join(", ") +
|
||||
")"),
|
||||
handler: () => false,
|
||||
});
|
||||
@ -1538,13 +1538,13 @@ export class PokedexPageUiHandler extends MessageUiHandler {
|
||||
this.preBiomes.map(b => {
|
||||
options.push({
|
||||
label:
|
||||
i18next.t(`biome:${BiomeId[b.biome].toUpperCase()}`) +
|
||||
i18next.t(`biome:${toCamelCase(BiomeId[b.biome])}`) +
|
||||
" - " +
|
||||
i18next.t(`biome:${BiomePoolTier[b.tier].toUpperCase()}`) +
|
||||
i18next.t(`biome:${toCamelCase(BiomePoolTier[b.tier])}`) +
|
||||
(b.tod.length === 1 && b.tod[0] === -1
|
||||
? ""
|
||||
: " (" +
|
||||
b.tod.map(tod => i18next.t(`biome:${TimeOfDay[tod].toUpperCase()}`)).join(", ") +
|
||||
b.tod.map(tod => i18next.t(`biome:${toCamelCase(TimeOfDay[tod])}`)).join(", ") +
|
||||
")"),
|
||||
handler: () => false,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user