Added localization to the biomes. (#1378)

* Added localization to the biomes.

German Localization by me. (Native German).
French Localiztation by sangara42 from Discord

* Changed End back to ??? and Space is now Space again it all but German and French

* Changed english biome names according to https://wiki.pokerogue.net/biomes:biomes

* And we are back to grassy field since apparently the wiki is wrong...
This commit is contained in:
Jannik Tappert 2024-05-25 22:57:22 +02:00 committed by GitHub
parent 6f2d639a7b
commit de1c2b2b5b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
18 changed files with 348 additions and 6 deletions

View File

@ -6,22 +6,23 @@ import { TrainerType } from "./enums/trainer-type";
import { TimeOfDay } from "./enums/time-of-day"; import { TimeOfDay } from "./enums/time-of-day";
import { Biome } from "./enums/biome"; import { Biome } from "./enums/biome";
import {pokemonEvolutions, SpeciesFormEvolution} from "./pokemon-evolutions"; import {pokemonEvolutions, SpeciesFormEvolution} from "./pokemon-evolutions";
import i18next from "i18next";
export function getBiomeName(biome: Biome | -1) { export function getBiomeName(biome: Biome | -1) {
if (biome === -1) { if (biome === -1) {
return "Somewhere you can't remember"; return i18next.t("biome:unknownLocation");
} }
switch (biome) { switch (biome) {
case Biome.GRASS: case Biome.GRASS:
return "Grassy Field"; return i18next.t("biome:GRASS");
case Biome.RUINS: case Biome.RUINS:
return "Ancient Ruins"; return i18next.t("biome:RUINS");
case Biome.ABYSS: case Biome.ABYSS:
return "The Abyss"; return i18next.t("biome:ABYSS");
case Biome.END: case Biome.END:
return "???"; return i18next.t("biome:END");
default: default:
return Utils.toReadableString(Biome[biome]); return i18next.t(`biome:${Biome[biome].toUpperCase()}`);
} }
} }

40
src/locales/de/biome.ts Normal file
View File

@ -0,0 +1,40 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const biome: SimpleTranslationEntries = {
"unknownLocation": "An einem unbekannten Ort",
"TOWN": "Stadt",
"PLAINS": "Ebene",
"GRASS": "Grasfeld",
"TALL_GRASS": "Hohes Gras",
"METROPOLIS": "Metropole",
"FOREST": "Wald",
"SEA": "Meer",
"SWAMP": "Sumpf",
"BEACH": "Strand",
"LAKE": "See",
"SEABED": "Meeresboden",
"MOUNTAIN": "Berg",
"BADLANDS": "Kargland",
"CAVE": "Höhle",
"DESERT": "Wüste",
"ICE_CAVE": "Eishöhle",
"MEADOW": "Weide",
"POWER_PLANT": "Kraftwerk",
"VOLCANO": "Vulkan",
"GRAVEYARD": "Friedhof",
"DOJO": "Dojo",
"FACTORY": "Fabrik",
"RUINS": "Alte Ruinen",
"WASTELAND": "Ödland",
"ABYSS": "Der Abgrund",
"SPACE": "Stratosphäre",
"CONSTRUCTION_SITE": "Baustelle",
"JUNGLE": "Dschungel",
"FAIRY_CAVE": "Feenhöhle",
"TEMPLE": "Tempel",
"SLUM": "Elendsviertel",
"SNOWY_FOREST": "Verschneiter Wald",
"ISLAND": "Insel",
"LABORATORY": "Labor",
"END": "???",
} as const;

View File

@ -21,6 +21,7 @@ import { weather } from "./weather";
import { battleMessageUiHandler } from "./battle-message-ui-handler"; import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { berry } from "./berry"; import { berry } from "./berry";
import { voucher } from "./voucher"; import { voucher } from "./voucher";
import { biome } from "./biome";
export const deConfig = { export const deConfig = {
ability: ability, ability: ability,
@ -48,4 +49,5 @@ export const deConfig = {
battleMessageUiHandler: battleMessageUiHandler, battleMessageUiHandler: battleMessageUiHandler,
berry: berry, berry: berry,
voucher: voucher, voucher: voucher,
biome: biome,
}; };

40
src/locales/en/biome.ts Normal file
View File

@ -0,0 +1,40 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const biome: SimpleTranslationEntries = {
"unknownLocation": "Somewhere you can\'t remember",
"TOWN": "Town",
"PLAINS": "Plains",
"GRASS": "Grassy Field",
"TALL_GRASS": "Tall Grass",
"METROPOLIS": "Metropolis",
"FOREST": "Forest",
"SEA": "Sea",
"SWAMP": "Swamp",
"BEACH": "Beach",
"LAKE": "Lake",
"SEABED": "Seabed",
"MOUNTAIN": "Mountain",
"BADLANDS": "Badlands",
"CAVE": "Cave",
"DESERT": "Desert",
"ICE_CAVE": "Ice Cave",
"MEADOW": "Meadow",
"POWER_PLANT": "Power Plant",
"VOLCANO": "Volcano",
"GRAVEYARD": "Graveyard",
"DOJO": "Dojo",
"FACTORY": "Factory",
"RUINS": "Ancient Ruins",
"WASTELAND": "Wasteland",
"ABYSS": "Abyss",
"SPACE": "Space",
"CONSTRUCTION_SITE": "Construction Site",
"JUNGLE": "Jungle",
"FAIRY_CAVE": "Fairy Cave",
"TEMPLE": "Temple",
"SLUM": "Slum",
"SNOWY_FOREST": "Snowy Forest",
"ISLAND": "Island",
"LABORATORY": "Laboratory",
"END": "???",
} as const;

View File

@ -21,6 +21,7 @@ import { weather } from "./weather";
import { battleMessageUiHandler } from "./battle-message-ui-handler"; import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { berry } from "./berry"; import { berry } from "./berry";
import { voucher } from "./voucher"; import { voucher } from "./voucher";
import { biome } from "./biome";
export const enConfig = { export const enConfig = {
ability: ability, ability: ability,
@ -48,4 +49,5 @@ export const enConfig = {
battleMessageUiHandler: battleMessageUiHandler, battleMessageUiHandler: battleMessageUiHandler,
berry: berry, berry: berry,
voucher: voucher, voucher: voucher,
biome: biome,
}; };

40
src/locales/es/biome.ts Normal file
View File

@ -0,0 +1,40 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const biome: SimpleTranslationEntries = {
"unknownLocation": "Somewhere you can\'t remember",
"TOWN": "Town",
"PLAINS": "Plains",
"GRASS": "Grassy Field",
"TALL_GRASS": "Tall Grass",
"METROPOLIS": "Metropolis",
"FOREST": "Forest",
"SEA": "Sea",
"SWAMP": "Swamp",
"BEACH": "Beach",
"LAKE": "Lake",
"SEABED": "Seabed",
"MOUNTAIN": "Mountain",
"BADLANDS": "Badlands",
"CAVE": "Cave",
"DESERT": "Desert",
"ICE_CAVE": "Ice Cave",
"MEADOW": "Meadow",
"POWER_PLANT": "Power Plant",
"VOLCANO": "Volcano",
"GRAVEYARD": "Graveyard",
"DOJO": "Dojo",
"FACTORY": "Factory",
"RUINS": "Ancient Ruins",
"WASTELAND": "Wasteland",
"ABYSS": "Abyss",
"SPACE": "Space",
"CONSTRUCTION_SITE": "Construction Site",
"JUNGLE": "Jungle",
"FAIRY_CAVE": "Fairy Cave",
"TEMPLE": "Temple",
"SLUM": "Slum",
"SNOWY_FOREST": "Snowy Forest",
"ISLAND": "Island",
"LABORATORY": "Laboratory",
"END": "???",
} as const;

View File

@ -21,6 +21,7 @@ import { weather } from "./weather";
import { battleMessageUiHandler } from "./battle-message-ui-handler"; import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { berry } from "./berry"; import { berry } from "./berry";
import { voucher } from "./voucher"; import { voucher } from "./voucher";
import { biome } from "./biome";
export const esConfig = { export const esConfig = {
ability: ability, ability: ability,
@ -48,4 +49,5 @@ export const esConfig = {
battleMessageUiHandler: battleMessageUiHandler, battleMessageUiHandler: battleMessageUiHandler,
berry: berry, berry: berry,
voucher: voucher, voucher: voucher,
biome: biome,
}; };

40
src/locales/fr/biome.ts Normal file
View File

@ -0,0 +1,40 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const biome: SimpleTranslationEntries = {
"unknownLocation": "Dans un endroit inconnu",
"TOWN": "Ville",
"PLAINS": "Plaines",
"GRASS": "Herbes",
"TALL_GRASS": "Hautes Herbes",
"METROPOLIS": "Métropole",
"FOREST": "Forêt",
"SEA": "Mer",
"SWAMP": "Marécage",
"BEACH": "Plage",
"LAKE": "Lac",
"SEABED": "Fonds Marins",
"MOUNTAIN": "Montagne",
"BADLANDS": "Terres Sauvages",
"CAVE": "Grotte",
"DESERT": "Desert",
"ICE_CAVE": "Caverne Glaciale",
"MEADOW": "Prairie",
"POWER_PLANT": "Centrale Électrique",
"VOLCANO": "Volcan",
"GRAVEYARD": "Cimetière",
"DOJO": "Dojo",
"FACTORY": "Usine",
"RUINS": "Ruines",
"WASTELAND": "Terres Désolées",
"ABYSS": "Gouffre",
"SPACE": "Espace",
"CONSTRUCTION_SITE": "Chantier",
"JUNGLE": "Jungle",
"FAIRY_CAVE": "Grotte Féérique",
"TEMPLE": "Temple",
"SLUM": "Bidonville",
"SNOWY_FOREST": "Forêt Enneigée",
"ISLAND": "Île",
"LABORATORY": "Laboratoire",
"END": "???",
} as const;

View File

@ -21,6 +21,8 @@ import { weather } from "./weather";
import { battleMessageUiHandler } from "./battle-message-ui-handler"; import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { berry } from "./berry"; import { berry } from "./berry";
import { voucher } from "./voucher"; import { voucher } from "./voucher";
import { biome } from "./biome";
export const frConfig = { export const frConfig = {
ability: ability, ability: ability,
@ -48,4 +50,5 @@ export const frConfig = {
battleMessageUiHandler: battleMessageUiHandler, battleMessageUiHandler: battleMessageUiHandler,
berry: berry, berry: berry,
voucher: voucher, voucher: voucher,
biome: biome,
}; };

40
src/locales/it/biome.ts Normal file
View File

@ -0,0 +1,40 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const biome: SimpleTranslationEntries = {
"unknownLocation": "Somewhere you can\'t remember",
"TOWN": "Town",
"PLAINS": "Plains",
"GRASS": "Grassy Field",
"TALL_GRASS": "Tall Grass",
"METROPOLIS": "Metropolis",
"FOREST": "Forest",
"SEA": "Sea",
"SWAMP": "Swamp",
"BEACH": "Beach",
"LAKE": "Lake",
"SEABED": "Seabed",
"MOUNTAIN": "Mountain",
"BADLANDS": "Badlands",
"CAVE": "Cave",
"DESERT": "Desert",
"ICE_CAVE": "Ice Cave",
"MEADOW": "Meadow",
"POWER_PLANT": "Power Plant",
"VOLCANO": "Volcano",
"GRAVEYARD": "Graveyard",
"DOJO": "Dojo",
"FACTORY": "Factory",
"RUINS": "Ancient Ruins",
"WASTELAND": "Wasteland",
"ABYSS": "Abyss",
"SPACE": "Space",
"CONSTRUCTION_SITE": "Construction Site",
"JUNGLE": "Jungle",
"FAIRY_CAVE": "Fairy Cave",
"TEMPLE": "Temple",
"SLUM": "Slum",
"SNOWY_FOREST": "Snowy Forest",
"ISLAND": "Island",
"LABORATORY": "Laboratory",
"END": "???",
} as const;

View File

@ -21,6 +21,8 @@ import { weather } from "./weather";
import { battleMessageUiHandler } from "./battle-message-ui-handler"; import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { berry } from "./berry"; import { berry } from "./berry";
import { voucher } from "./voucher"; import { voucher } from "./voucher";
import { biome } from "./biome";
export const itConfig = { export const itConfig = {
ability: ability, ability: ability,
@ -48,4 +50,5 @@ export const itConfig = {
battleMessageUiHandler: battleMessageUiHandler, battleMessageUiHandler: battleMessageUiHandler,
berry: berry, berry: berry,
voucher: voucher, voucher: voucher,
biome: biome,
}; };

View File

@ -0,0 +1,40 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const biome: SimpleTranslationEntries = {
"unknownLocation": "Somewhere you can\'t remember",
"TOWN": "Town",
"PLAINS": "Plains",
"GRASS": "Grassy Field",
"TALL_GRASS": "Tall Grass",
"METROPOLIS": "Metropolis",
"FOREST": "Forest",
"SEA": "Sea",
"SWAMP": "Swamp",
"BEACH": "Beach",
"LAKE": "Lake",
"SEABED": "Seabed",
"MOUNTAIN": "Mountain",
"BADLANDS": "Badlands",
"CAVE": "Cave",
"DESERT": "Desert",
"ICE_CAVE": "Ice Cave",
"MEADOW": "Meadow",
"POWER_PLANT": "Power Plant",
"VOLCANO": "Volcano",
"GRAVEYARD": "Graveyard",
"DOJO": "Dojo",
"FACTORY": "Factory",
"RUINS": "Ancient Ruins",
"WASTELAND": "Wasteland",
"ABYSS": "Abyss",
"SPACE": "Space",
"CONSTRUCTION_SITE": "Construction Site",
"JUNGLE": "Jungle",
"FAIRY_CAVE": "Fairy Cave",
"TEMPLE": "Temple",
"SLUM": "Slum",
"SNOWY_FOREST": "Snowy Forest",
"ISLAND": "Island",
"LABORATORY": "Laboratory",
"END": "???",
} as const;

View File

@ -20,6 +20,8 @@ import { tutorial } from "./tutorial";
import { weather } from "./weather"; import { weather } from "./weather";
import { berry } from "./berry"; import { berry } from "./berry";
import { voucher } from "./voucher"; import { voucher } from "./voucher";
import { biome } from "./biome";
export const ptBrConfig = { export const ptBrConfig = {
@ -47,4 +49,5 @@ export const ptBrConfig = {
modifierType: modifierType, modifierType: modifierType,
berry: berry, berry: berry,
voucher: voucher, voucher: voucher,
biome: biome,
}; };

View File

@ -0,0 +1,40 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const biome: SimpleTranslationEntries = {
"unknownLocation": "Somewhere you can\'t remember",
"TOWN": "Town",
"PLAINS": "Plains",
"GRASS": "Grassy Field",
"TALL_GRASS": "Tall Grass",
"METROPOLIS": "Metropolis",
"FOREST": "Forest",
"SEA": "Sea",
"SWAMP": "Swamp",
"BEACH": "Beach",
"LAKE": "Lake",
"SEABED": "Seabed",
"MOUNTAIN": "Mountain",
"BADLANDS": "Badlands",
"CAVE": "Cave",
"DESERT": "Desert",
"ICE_CAVE": "Ice Cave",
"MEADOW": "Meadow",
"POWER_PLANT": "Power Plant",
"VOLCANO": "Volcano",
"GRAVEYARD": "Graveyard",
"DOJO": "Dojo",
"FACTORY": "Factory",
"RUINS": "Ancient Ruins",
"WASTELAND": "Wasteland",
"ABYSS": "Abyss",
"SPACE": "Space",
"CONSTRUCTION_SITE": "Construction Site",
"JUNGLE": "Jungle",
"FAIRY_CAVE": "Fairy Cave",
"TEMPLE": "Temple",
"SLUM": "Slum",
"SNOWY_FOREST": "Snowy Forest",
"ISLAND": "Island",
"LABORATORY": "Laboratory",
"END": "???",
} as const;

View File

@ -21,6 +21,8 @@ import { weather } from "./weather";
import { battleMessageUiHandler } from "./battle-message-ui-handler"; import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { berry } from "./berry"; import { berry } from "./berry";
import { voucher } from "./voucher"; import { voucher } from "./voucher";
import { biome } from "./biome";
export const zhCnConfig = { export const zhCnConfig = {
@ -49,4 +51,5 @@ export const zhCnConfig = {
battleMessageUiHandler: battleMessageUiHandler, battleMessageUiHandler: battleMessageUiHandler,
berry: berry, berry: berry,
voucher: voucher, voucher: voucher,
biome: biome,
}; };

View File

@ -0,0 +1,40 @@
import { SimpleTranslationEntries } from "#app/plugins/i18n";
export const biome: SimpleTranslationEntries = {
"unknownLocation": "Somewhere you can\'t remember",
"TOWN": "Town",
"PLAINS": "Plains",
"GRASS": "Grassy Field",
"TALL_GRASS": "Tall Grass",
"METROPOLIS": "Metropolis",
"FOREST": "Forest",
"SEA": "Sea",
"SWAMP": "Swamp",
"BEACH": "Beach",
"LAKE": "Lake",
"SEABED": "Seabed",
"MOUNTAIN": "Mountain",
"BADLANDS": "Badlands",
"CAVE": "Cave",
"DESERT": "Desert",
"ICE_CAVE": "Ice Cave",
"MEADOW": "Meadow",
"POWER_PLANT": "Power Plant",
"VOLCANO": "Volcano",
"GRAVEYARD": "Graveyard",
"DOJO": "Dojo",
"FACTORY": "Factory",
"RUINS": "Ancient Ruins",
"WASTELAND": "Wasteland",
"ABYSS": "Abyss",
"SPACE": "Space",
"CONSTRUCTION_SITE": "Construction Site",
"JUNGLE": "Jungle",
"FAIRY_CAVE": "Fairy Cave",
"TEMPLE": "Temple",
"SLUM": "Slum",
"SNOWY_FOREST": "Snowy Forest",
"ISLAND": "Island",
"LABORATORY": "Laboratory",
"END": "???",
} as const;

View File

@ -21,6 +21,7 @@ import { weather } from "./weather";
import { battleMessageUiHandler } from "./battle-message-ui-handler"; import { battleMessageUiHandler } from "./battle-message-ui-handler";
import { berry } from "./berry"; import { berry } from "./berry";
import { voucher } from "./voucher"; import { voucher } from "./voucher";
import { biome } from "./biome";
export const zhTWConfig = { export const zhTWConfig = {
ability: ability, ability: ability,
@ -48,4 +49,5 @@ export const zhTWConfig = {
battleMessageUiHandler: battleMessageUiHandler, battleMessageUiHandler: battleMessageUiHandler,
berry: berry, berry: berry,
voucher: voucher, voucher: voucher,
biome: biome,
}; };

View File

@ -161,6 +161,7 @@ declare module "i18next" {
battleMessageUiHandler: SimpleTranslationEntries; battleMessageUiHandler: SimpleTranslationEntries;
berry: BerryTranslationEntries; berry: BerryTranslationEntries;
voucher: SimpleTranslationEntries; voucher: SimpleTranslationEntries;
biome: SimpleTranslationEntries;
}; };
} }
} }