Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Localization] Translate summary #2336

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/@types/i18next.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ declare module "i18next" {
pokemon: SimpleTranslationEntries;
pokemonInfo: PokemonInfoTranslationEntries;
pokemonInfoContainer: SimpleTranslationEntries;
pokemonSummary: SimpleTranslationEntries;
saveSlotSelectUiHandler: SimpleTranslationEntries;
settings: SimpleTranslationEntries;
splashMessages: SimpleTranslationEntries;
Expand Down
2 changes: 1 addition & 1 deletion src/data/pokemon-stat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export enum Stat {
}

export function getStatName(stat: Stat, shorten: boolean = false) {
let ret: string;
let ret: string = "";
switch (stat) {
case Stat.HP:
ret = !shorten ? i18next.t("pokemonInfo:Stat.HP") : i18next.t("pokemonInfo:Stat.HPshortened");
Expand Down
2 changes: 2 additions & 0 deletions src/locales/de/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { voucher } from "./voucher";
import { weather } from "./weather";
import { partyUiHandler } from "./party-ui-handler";
import { settings } from "#app/locales/de/settings.js";
import { pokemonSummary } from "./pokemon-summary";
import { common } from "#app/locales/de/common.js";

export const deConfig = {
Expand Down Expand Up @@ -76,6 +77,7 @@ export const deConfig = {
pokemon: pokemon,
pokemonInfo: pokemonInfo,
pokemonInfoContainer: pokemonInfoContainer,
pokemonSummary: pokemonSummary,
saveSlotSelectUiHandler: saveSlotSelectUiHandler,
settings: settings,
splashMessages: splashMessages,
Expand Down
17 changes: 17 additions & 0 deletions src/locales/de/pokemon-summary.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales.js";

export const pokemonSummary: SimpleTranslationEntries = {
"pokemonInfo": "Pokémon Info",
"status": "Status",
"powerAccuracyCategory": "Stärke\nGenauigkeit\nKategorie",
"type": "Typ",
"unknownTrainer": "Unbekannt",
"ot": "OT",
"luck": "Glück",
"nature": "Wesen",
"apparently": "Wahrscheinlich",
"metAtLv": "getroffen auf Lvl. ",
"expPoints": "Erf. Punkte",
"nextLv": "Nächstes Lvl.",
"cancel": "Abbrechen",
} as const;
2 changes: 2 additions & 0 deletions src/locales/en/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import { pokeball } from "./pokeball";
import { pokemon } from "./pokemon";
import { pokemonInfo } from "./pokemon-info";
import { pokemonInfoContainer } from "./pokemon-info-container";
import { pokemonSummary } from "./pokemon-summary";
import { saveSlotSelectUiHandler } from "./save-slot-select-ui-handler";
import { splashMessages } from "./splash-messages";
import { starterSelectUiHandler } from "./starter-select-ui-handler";
Expand Down Expand Up @@ -77,6 +78,7 @@ export const enConfig = {
pokemon: pokemon,
pokemonInfo: pokemonInfo,
pokemonInfoContainer: pokemonInfoContainer,
pokemonSummary: pokemonSummary,
saveSlotSelectUiHandler: saveSlotSelectUiHandler,
settings: settings,
splashMessages: splashMessages,
Expand Down
17 changes: 17 additions & 0 deletions src/locales/en/pokemon-summary.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales.js";

export const pokemonSummary: SimpleTranslationEntries = {
"pokemonInfo": "Pokémon Info",
"status": "Status",
"powerAccuracyCategory": "Power\nAccuracy\nCategory",
"type": "Type",
"unknownTrainer": "Unknown",
"ot": "OT",
"luck": "Luck",
"nature": "nature",
"apparently": "apparently",
"metAtLv": "met at Lv.",
"expPoints": "Exp. Points",
"nextLv": "Next Lv.",
"cancel": "Cancel",
} as const;
2 changes: 2 additions & 0 deletions src/locales/es/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { voucher } from "./voucher";
import { weather } from "./weather";
import { partyUiHandler } from "./party-ui-handler";
import { settings } from "#app/locales/es/settings.js";
import { pokemonSummary } from "./pokemon-summary";
import { common } from "#app/locales/es/common.js";

export const esConfig = {
Expand Down Expand Up @@ -76,6 +77,7 @@ export const esConfig = {
pokemon: pokemon,
pokemonInfo: pokemonInfo,
pokemonInfoContainer: pokemonInfoContainer,
pokemonSummary: pokemonSummary,
saveSlotSelectUiHandler: saveSlotSelectUiHandler,
settings: settings,
splashMessages: splashMessages,
Expand Down
17 changes: 17 additions & 0 deletions src/locales/es/pokemon-summary.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales.js";

export const pokemonSummary: SimpleTranslationEntries = {
"pokemonInfo": "Info. Pokémon",
"status": "Estado",
"powerAccuracyCategory": "Potencia\nPrecisión\nCategoria",
"type": "Tipo",
"unknownTrainer": "Desconocido",
"ot": "EO",
"luck": "Suerte",
"nature": "de naturaleza",
"apparently": "aparentemente",
"metAtLv": "encontrado al Nv.",
"expPoints": "Puntos Exp.",
"nextLv": "Nv. siguiente",
"cancel": "Salir",
} as const;
2 changes: 2 additions & 0 deletions src/locales/fr/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { voucher } from "./voucher";
import { weather } from "./weather";
import { partyUiHandler } from "./party-ui-handler";
import { settings } from "#app/locales/fr/settings.js";
import { pokemonSummary } from "./pokemon-summary";
import { common } from "#app/locales/fr/common.js";

export const frConfig = {
Expand Down Expand Up @@ -76,6 +77,7 @@ export const frConfig = {
pokemon: pokemon,
pokemonInfo: pokemonInfo,
pokemonInfoContainer: pokemonInfoContainer,
pokemonSummary: pokemonSummary,
saveSlotSelectUiHandler: saveSlotSelectUiHandler,
settings: settings,
splashMessages: splashMessages,
Expand Down
17 changes: 17 additions & 0 deletions src/locales/fr/pokemon-summary.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales.js";

export const pokemonSummary: SimpleTranslationEntries = {
"pokemonInfo": "Info Pokémon",
"status": "Résumé",
"powerAccuracyCategory": "Puissance\nPrécision\nCatégorie",
"type": "Type",
"unknownTrainer": "Inconnu",
"ot": "D.O.",
"luck": "Chance",
"nature": "de nature",
"apparently": "apparemment",
"metAtLv": "rencontré au N.",
"expPoints": "Points Exp.",
"nextLv": "N. suivant",
"cancel": "Annuler",
} as const;
2 changes: 2 additions & 0 deletions src/locales/it/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { voucher } from "./voucher";
import { weather } from "./weather";
import { partyUiHandler } from "./party-ui-handler";
import { settings } from "#app/locales/it/settings.js";
import { pokemonSummary } from "./pokemon-summary";
import { common } from "#app/locales/it/common.js";

export const itConfig = {
Expand Down Expand Up @@ -76,6 +77,7 @@ export const itConfig = {
pokemon: pokemon,
pokemonInfo: pokemonInfo,
pokemonInfoContainer: pokemonInfoContainer,
pokemonSummary: pokemonSummary,
saveSlotSelectUiHandler: saveSlotSelectUiHandler,
settings: settings,
splashMessages: splashMessages,
Expand Down
17 changes: 17 additions & 0 deletions src/locales/it/pokemon-summary.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales.js";

export const pokemonSummary: SimpleTranslationEntries = {
"pokemonInfo": "Pokémon Info",
"status": "Status",
"powerAccuracyCategory": "Power\nAccuracy\nCategory",
"type": "Type",
"unknownTrainer": "Unknown",
"ot": "OT",
"luck": "Luck",
"nature": "nature",
"apparently": "apparently",
"metAtLv": "met at Lv.",
"expPoints": "Exp. Points",
"nextLv": "Next Lv.",
"cancel": "Cancel",
} as const;
2 changes: 2 additions & 0 deletions src/locales/ko/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { voucher } from "./voucher";
import { weather } from "./weather";
import { partyUiHandler } from "./party-ui-handler";
import { settings } from "#app/locales/ko/settings.js";
import { pokemonSummary } from "./pokemon-summary";
import { common } from "#app/locales/ko/common.js";

export const koConfig = {
Expand Down Expand Up @@ -76,6 +77,7 @@ export const koConfig = {
pokemon: pokemon,
pokemonInfo: pokemonInfo,
pokemonInfoContainer: pokemonInfoContainer,
pokemonSummary: pokemonSummary,
saveSlotSelectUiHandler: saveSlotSelectUiHandler,
settings: settings,
splashMessages: splashMessages,
Expand Down
17 changes: 17 additions & 0 deletions src/locales/ko/pokemon-summary.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales.js";

export const pokemonSummary: SimpleTranslationEntries = {
"pokemonInfo": "포켓몬 정보",
"status": "스테이터스",
"powerAccuracyCategory": "위력\n명중\n분류",
"type": "타입",
"unknownTrainer": "알수없음",
"ot": "어버이",
"luck": "행운",
"nature": "성격",
"apparently": "apparently",
"metAtLv": "만났을 때 Lv.",
"expPoints": "현재 경험치",
"nextLv": "다음 레벨까지",
"cancel": "그만둔다",
} as const;
2 changes: 2 additions & 0 deletions src/locales/pt_BR/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { voucher } from "./voucher";
import { weather } from "./weather";
import { partyUiHandler } from "./party-ui-handler";
import { settings } from "#app/locales/pt_BR/settings.js";
import { pokemonSummary } from "./pokemon-summary";
import { common } from "#app/locales/pt_BR/common.js";

export const ptBrConfig = {
Expand Down Expand Up @@ -77,6 +78,7 @@ export const ptBrConfig = {
pokemon: pokemon,
pokemonInfo: pokemonInfo,
pokemonInfoContainer: pokemonInfoContainer,
pokemonSummary: pokemonSummary,
saveSlotSelectUiHandler: saveSlotSelectUiHandler,
settings: settings,
splashMessages: splashMessages,
Expand Down
17 changes: 17 additions & 0 deletions src/locales/pt_BR/pokemon-summary.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales.js";

export const pokemonSummary: SimpleTranslationEntries = {
"pokemonInfo": "Informações do Pokémon",
"status": "Status",
"powerAccuracyCategory": "Poder\nPrecisão\nCategoria",
"type": "Tipo",
"unknownTrainer": "Desconhecido",
"ot": "TO",
"luck": "Sorte",
"nature": "natureza",
"apparently": "aparentemente",
"metAtLv": "encontrado no Nv.",
"expPoints": "Pontos EXP.",
"nextLv": "Próx. Nv.",
"cancel": "Cancelar",
} as const;
2 changes: 2 additions & 0 deletions src/locales/zh_CN/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { voucher } from "./voucher";
import { weather } from "./weather";
import { partyUiHandler } from "./party-ui-handler";
import { settings } from "#app/locales/zh_CN/settings.js";
import { pokemonSummary } from "./pokemon-summary";
import { common } from "#app/locales/zh_CN/common.js";

export const zhCnConfig = {
Expand Down Expand Up @@ -76,6 +77,7 @@ export const zhCnConfig = {
pokemon: pokemon,
pokemonInfo: pokemonInfo,
pokemonInfoContainer: pokemonInfoContainer,
pokemonSummary: pokemonSummary,
saveSlotSelectUiHandler: saveSlotSelectUiHandler,
settings: settings,
splashMessages: splashMessages,
Expand Down
17 changes: 17 additions & 0 deletions src/locales/zh_CN/pokemon-summary.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales.js";

export const pokemonSummary: SimpleTranslationEntries = {
"pokemonInfo": "宝可梦信息",
"status": "状态",
"powerAccuracyCategory": "威力\n命中率\n类别",
"type": "属性",
"unknownTrainer": "未知",
"ot": "训练师",
"luck": "幸运",
"nature": "性格",
"apparently": "命中注定般地",
"metAtLv": "相遇于Lv.",
"expPoints": "经验值",
"nextLv": "下一级",
"cancel": "取消",
} as const;
2 changes: 2 additions & 0 deletions src/locales/zh_TW/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import { voucher } from "./voucher";
import { weather } from "./weather";
import { partyUiHandler } from "./party-ui-handler";
import { settings } from "#app/locales/zh_TW/settings.js";
import { pokemonSummary } from "./pokemon-summary";
import { common } from "#app/locales/zh_TW/common.js";

export const zhTwConfig = {
Expand Down Expand Up @@ -76,6 +77,7 @@ export const zhTwConfig = {
pokemon: pokemon,
pokemonInfo: pokemonInfo,
pokemonInfoContainer: pokemonInfoContainer,
pokemonSummary: pokemonSummary,
saveSlotSelectUiHandler: saveSlotSelectUiHandler,
settings: settings,
splashMessages: splashMessages,
Expand Down
17 changes: 17 additions & 0 deletions src/locales/zh_TW/pokemon-summary.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import { SimpleTranslationEntries } from "#app/interfaces/locales.js";

export const pokemonSummary: SimpleTranslationEntries = {
"pokemonInfo": "Pokémon Info",
"status": "Status",
"powerAccuracyCategory": "Power\nAccuracy\nCategory",
"type": "Type",
"unknownTrainer": "Unknown",
"ot": "OT",
"luck": "Luck",
"nature": "nature",
"apparently": "apparently",
"metAtLv": "met at Lv.",
"expPoints": "Exp. Points",
"nextLv": "Next Lv.",
"cancel": "Cancel",
} as const;
Loading