mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
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:
parent
6f2d639a7b
commit
de1c2b2b5b
@ -6,22 +6,23 @@ import { TrainerType } from "./enums/trainer-type";
|
||||
import { TimeOfDay } from "./enums/time-of-day";
|
||||
import { Biome } from "./enums/biome";
|
||||
import {pokemonEvolutions, SpeciesFormEvolution} from "./pokemon-evolutions";
|
||||
import i18next from "i18next";
|
||||
|
||||
export function getBiomeName(biome: Biome | -1) {
|
||||
if (biome === -1) {
|
||||
return "Somewhere you can't remember";
|
||||
return i18next.t("biome:unknownLocation");
|
||||
}
|
||||
switch (biome) {
|
||||
case Biome.GRASS:
|
||||
return "Grassy Field";
|
||||
return i18next.t("biome:GRASS");
|
||||
case Biome.RUINS:
|
||||
return "Ancient Ruins";
|
||||
return i18next.t("biome:RUINS");
|
||||
case Biome.ABYSS:
|
||||
return "The Abyss";
|
||||
return i18next.t("biome:ABYSS");
|
||||
case Biome.END:
|
||||
return "???";
|
||||
return i18next.t("biome:END");
|
||||
default:
|
||||
return Utils.toReadableString(Biome[biome]);
|
||||
return i18next.t(`biome:${Biome[biome].toUpperCase()}`);
|
||||
}
|
||||
}
|
||||
|
||||
|
40
src/locales/de/biome.ts
Normal file
40
src/locales/de/biome.ts
Normal 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;
|
@ -21,6 +21,7 @@ import { weather } from "./weather";
|
||||
import { battleMessageUiHandler } from "./battle-message-ui-handler";
|
||||
import { berry } from "./berry";
|
||||
import { voucher } from "./voucher";
|
||||
import { biome } from "./biome";
|
||||
|
||||
export const deConfig = {
|
||||
ability: ability,
|
||||
@ -48,4 +49,5 @@ export const deConfig = {
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
berry: berry,
|
||||
voucher: voucher,
|
||||
biome: biome,
|
||||
};
|
||||
|
40
src/locales/en/biome.ts
Normal file
40
src/locales/en/biome.ts
Normal 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;
|
@ -21,6 +21,7 @@ import { weather } from "./weather";
|
||||
import { battleMessageUiHandler } from "./battle-message-ui-handler";
|
||||
import { berry } from "./berry";
|
||||
import { voucher } from "./voucher";
|
||||
import { biome } from "./biome";
|
||||
|
||||
export const enConfig = {
|
||||
ability: ability,
|
||||
@ -48,4 +49,5 @@ export const enConfig = {
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
berry: berry,
|
||||
voucher: voucher,
|
||||
biome: biome,
|
||||
};
|
||||
|
40
src/locales/es/biome.ts
Normal file
40
src/locales/es/biome.ts
Normal 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;
|
@ -21,6 +21,7 @@ import { weather } from "./weather";
|
||||
import { battleMessageUiHandler } from "./battle-message-ui-handler";
|
||||
import { berry } from "./berry";
|
||||
import { voucher } from "./voucher";
|
||||
import { biome } from "./biome";
|
||||
|
||||
export const esConfig = {
|
||||
ability: ability,
|
||||
@ -48,4 +49,5 @@ export const esConfig = {
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
berry: berry,
|
||||
voucher: voucher,
|
||||
biome: biome,
|
||||
};
|
||||
|
40
src/locales/fr/biome.ts
Normal file
40
src/locales/fr/biome.ts
Normal 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;
|
@ -21,6 +21,8 @@ import { weather } from "./weather";
|
||||
import { battleMessageUiHandler } from "./battle-message-ui-handler";
|
||||
import { berry } from "./berry";
|
||||
import { voucher } from "./voucher";
|
||||
import { biome } from "./biome";
|
||||
|
||||
|
||||
export const frConfig = {
|
||||
ability: ability,
|
||||
@ -48,4 +50,5 @@ export const frConfig = {
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
berry: berry,
|
||||
voucher: voucher,
|
||||
biome: biome,
|
||||
};
|
||||
|
40
src/locales/it/biome.ts
Normal file
40
src/locales/it/biome.ts
Normal 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;
|
@ -21,6 +21,8 @@ import { weather } from "./weather";
|
||||
import { battleMessageUiHandler } from "./battle-message-ui-handler";
|
||||
import { berry } from "./berry";
|
||||
import { voucher } from "./voucher";
|
||||
import { biome } from "./biome";
|
||||
|
||||
|
||||
export const itConfig = {
|
||||
ability: ability,
|
||||
@ -48,4 +50,5 @@ export const itConfig = {
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
berry: berry,
|
||||
voucher: voucher,
|
||||
biome: biome,
|
||||
};
|
||||
|
40
src/locales/pt_BR/biome.ts
Normal file
40
src/locales/pt_BR/biome.ts
Normal 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;
|
@ -20,6 +20,8 @@ import { tutorial } from "./tutorial";
|
||||
import { weather } from "./weather";
|
||||
import { berry } from "./berry";
|
||||
import { voucher } from "./voucher";
|
||||
import { biome } from "./biome";
|
||||
|
||||
|
||||
|
||||
export const ptBrConfig = {
|
||||
@ -47,4 +49,5 @@ export const ptBrConfig = {
|
||||
modifierType: modifierType,
|
||||
berry: berry,
|
||||
voucher: voucher,
|
||||
biome: biome,
|
||||
};
|
||||
|
40
src/locales/zh_CN/biome.ts
Normal file
40
src/locales/zh_CN/biome.ts
Normal 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;
|
@ -21,6 +21,8 @@ import { weather } from "./weather";
|
||||
import { battleMessageUiHandler } from "./battle-message-ui-handler";
|
||||
import { berry } from "./berry";
|
||||
import { voucher } from "./voucher";
|
||||
import { biome } from "./biome";
|
||||
|
||||
|
||||
|
||||
export const zhCnConfig = {
|
||||
@ -49,4 +51,5 @@ export const zhCnConfig = {
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
berry: berry,
|
||||
voucher: voucher,
|
||||
biome: biome,
|
||||
};
|
||||
|
40
src/locales/zh_TW/biome.ts
Normal file
40
src/locales/zh_TW/biome.ts
Normal 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;
|
@ -21,6 +21,7 @@ import { weather } from "./weather";
|
||||
import { battleMessageUiHandler } from "./battle-message-ui-handler";
|
||||
import { berry } from "./berry";
|
||||
import { voucher } from "./voucher";
|
||||
import { biome } from "./biome";
|
||||
|
||||
export const zhTWConfig = {
|
||||
ability: ability,
|
||||
@ -48,4 +49,5 @@ export const zhTWConfig = {
|
||||
battleMessageUiHandler: battleMessageUiHandler,
|
||||
berry: berry,
|
||||
voucher: voucher,
|
||||
biome: biome,
|
||||
};
|
||||
|
@ -161,6 +161,7 @@ declare module "i18next" {
|
||||
battleMessageUiHandler: SimpleTranslationEntries;
|
||||
berry: BerryTranslationEntries;
|
||||
voucher: SimpleTranslationEntries;
|
||||
biome: SimpleTranslationEntries;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user