From 77167d8595f27bb4b719e1e75227521177ddf300 Mon Sep 17 00:00:00 2001 From: Leo Kim <47556641+KimJeongSun@users.noreply.github.com> Date: Tue, 30 Jul 2024 11:57:27 +0900 Subject: [PATCH] [Localization] Add initial translation files for filter menu names for the starter select UI ( new ) (#3197) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * update translation for filter menu in starter select UI * fix lint error * Update src/locales/zh_CN/filter-bar.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * Update src/locales/de/filter-bar.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * Update src/locales/de/filter-bar.ts Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> * more clear translation for zh_CN `hasNotWon` * Update src/locales/ko/filter-bar.ts Co-authored-by: Enoch * Update src/locales/ko/filter-bar.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * Update src/locales/ko/filter-bar.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * update missing entry of starter UI on each locales. move `sameSpeciesEgg` line for readibility * add invalidParty and removeFromParty in zh_CH * Update src/locales/ko/starter-select-ui-handler.ts Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> * fix mis added line * update as suggested in de * update sort candy option to `candy count` suggested * update win filter dropdown in english * update initial translation for zh_TW * fix eslint * updated zh_TW * Update src/locales/zh_CN/starter-select-ui-handler.ts Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> * Update src/locales/es/filter-bar.ts Co-authored-by: Asdar * Update src/locales/es/starter-select-ui-handler.ts Co-authored-by: Asdar * Update src/locales/es/starter-select-ui-handler.ts Co-authored-by: Asdar * Update src/locales/es/starter-select-ui-handler.ts Co-authored-by: Asdar * Update src/locales/zh_CN/filter-bar.ts Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> * update `invalidParty` entry of es * Update src/locales/fr/starter-select-ui-handler.ts Co-authored-by: Lugiad' * Update src/locales/fr/filter-bar.ts Co-authored-by: Lugiad' * update `invalidParty` entry in fr * update default eng entry for `hasWon` `hasNotWon` * Update src/locales/pt_BR/starter-select-ui-handler.ts Co-authored-by: José Ricardo Fleury Oliveira * Update src/locales/pt_BR/filter-bar.ts Co-authored-by: José Ricardo Fleury Oliveira * Update src/locales/it/filter-bar.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * Update src/locales/it/starter-select-ui-handler.ts Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> * update `invalidParty` entry for `it` * Update src/locales/fr/filter-bar.ts Co-authored-by: Lugiad' * Update src/locales/pt_BR/filter-bar.ts Co-authored-by: José Ricardo Fleury Oliveira --------- Co-authored-by: Yonmaru40 <47717431+40chyan@users.noreply.github.com> Co-authored-by: Jannik Tappert <38758606+CodeTappert@users.noreply.github.com> Co-authored-by: Enoch Co-authored-by: sodam <66295123+sodaMelon@users.noreply.github.com> Co-authored-by: mercurius-00 <80205689+mercurius-00@users.noreply.github.com> Co-authored-by: Asdar Co-authored-by: Lugiad' Co-authored-by: José Ricardo Fleury Oliveira Co-authored-by: Niccolò <123510358+NicusPulcis@users.noreply.github.com> --- src/locales/de/config.ts | 2 ++ src/locales/de/filter-bar.ts | 21 ++++++++++++ src/locales/de/starter-select-ui-handler.ts | 3 +- src/locales/en/config.ts | 2 ++ src/locales/en/filter-bar.ts | 21 ++++++++++++ src/locales/es/config.ts | 2 ++ src/locales/es/filter-bar.ts | 21 ++++++++++++ src/locales/es/starter-select-ui-handler.ts | 9 +++--- src/locales/fr/config.ts | 2 ++ src/locales/fr/filter-bar.ts | 21 ++++++++++++ src/locales/fr/starter-select-ui-handler.ts | 3 +- src/locales/it/config.ts | 2 ++ src/locales/it/filter-bar.ts | 21 ++++++++++++ src/locales/it/starter-select-ui-handler.ts | 3 +- src/locales/ko/config.ts | 2 ++ src/locales/ko/filter-bar.ts | 21 ++++++++++++ src/locales/ko/starter-select-ui-handler.ts | 5 +-- src/locales/pt_BR/config.ts | 2 ++ src/locales/pt_BR/filter-bar.ts | 21 ++++++++++++ .../pt_BR/starter-select-ui-handler.ts | 3 +- src/locales/zh_CN/config.ts | 2 ++ src/locales/zh_CN/filter-bar.ts | 21 ++++++++++++ .../zh_CN/starter-select-ui-handler.ts | 3 +- src/locales/zh_TW/config.ts | 2 ++ src/locales/zh_TW/filter-bar.ts | 21 ++++++++++++ .../zh_TW/starter-select-ui-handler.ts | 5 +-- src/ui/dropdown.ts | 3 +- src/ui/starter-select-ui-handler.ts | 32 +++++++++---------- 28 files changed, 246 insertions(+), 30 deletions(-) create mode 100644 src/locales/de/filter-bar.ts create mode 100644 src/locales/en/filter-bar.ts create mode 100644 src/locales/es/filter-bar.ts create mode 100644 src/locales/fr/filter-bar.ts create mode 100644 src/locales/it/filter-bar.ts create mode 100644 src/locales/ko/filter-bar.ts create mode 100644 src/locales/pt_BR/filter-bar.ts create mode 100644 src/locales/zh_CN/filter-bar.ts create mode 100644 src/locales/zh_TW/filter-bar.ts diff --git a/src/locales/de/config.ts b/src/locales/de/config.ts index d14eae3b77c..dcce95ed9a5 100644 --- a/src/locales/de/config.ts +++ b/src/locales/de/config.ts @@ -24,6 +24,7 @@ import { } from "./dialogue"; import { egg } from "./egg"; import { fightUiHandler } from "./fight-ui-handler"; +import { filterBar } from "./filter-bar"; import { gameMode } from "./game-mode"; import { gameStatsUiHandler } from "./game-stats-ui-handler"; import { growth } from "./growth"; @@ -79,6 +80,7 @@ export const deConfig = { PGFdoubleBattleDialogue: PGFdoubleBattleDialogue, egg: egg, fightUiHandler: fightUiHandler, + filterBar: filterBar, gameMode: gameMode, gameStatsUiHandler: gameStatsUiHandler, growth: growth, diff --git a/src/locales/de/filter-bar.ts b/src/locales/de/filter-bar.ts new file mode 100644 index 00000000000..31c6fee20d4 --- /dev/null +++ b/src/locales/de/filter-bar.ts @@ -0,0 +1,21 @@ +import { SimpleTranslationEntries } from "#app/interfaces/locales"; + +export const filterBar: SimpleTranslationEntries = { + "genFilter": "Gen.", + "typeFilter": "Typ", + "unlocksFilter": "Freisch.", + "winFilter": "Abschluss", + "sortFilter": "Sort.", + "all": "Alle", + "normal": "Normal", + "uncaught": "Nicht gefangen", + "passiveUnlocked": "Passive freigeschaltet", + "passiveLocked": "Passive gesperrt", + "hasWon": "Hat Klassik-Modus gewonnen", + "hasNotWon": "Hat Klassik-Modus nicht gewonnen", + "sortByNumber": "Pokédex-Nummer", + "sortByCost": "Kosten", + "sortByCandies": "Anzahl Bonbons", + "sortByIVs": "IS-Werte", + "sortByName": "Name", +}; diff --git a/src/locales/de/starter-select-ui-handler.ts b/src/locales/de/starter-select-ui-handler.ts index 9cf08846401..caade5c524d 100644 --- a/src/locales/de/starter-select-ui-handler.ts +++ b/src/locales/de/starter-select-ui-handler.ts @@ -7,7 +7,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales"; */ export const starterSelectUiHandler: SimpleTranslationEntries = { "confirmStartTeam": "Mit diesen Pokémon losziehen?", - "invalidParty": "This is not a valid starting party!", + "invalidParty": "Das ist kein gültiges Team!", "gen1": "I", "gen2": "II", "gen3": "III", @@ -23,6 +23,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = { "nature": "Wesen:", "eggMoves": "Ei-Attacken", "addToParty": "Zum Team hinzufügen", + "removeFromParty": "Aus Team entfernen", "toggleIVs": "DVs anzeigen/verbergen", "manageMoves": "Attacken ändern", "manageNature": "Wesen ändern", diff --git a/src/locales/en/config.ts b/src/locales/en/config.ts index 8a54c565f0e..8b40b7a667b 100644 --- a/src/locales/en/config.ts +++ b/src/locales/en/config.ts @@ -26,6 +26,7 @@ import { } from "./dialogue"; import { egg } from "./egg"; import { fightUiHandler } from "./fight-ui-handler"; +import { filterBar } from "./filter-bar"; import { gameMode } from "./game-mode"; import { gameStatsUiHandler } from "./game-stats-ui-handler"; import { growth } from "./growth"; @@ -79,6 +80,7 @@ export const enConfig = { PGFdoubleBattleDialogue: PGFdoubleBattleDialogue, egg: egg, fightUiHandler: fightUiHandler, + filterBar: filterBar, gameMode: gameMode, gameStatsUiHandler: gameStatsUiHandler, growth: growth, diff --git a/src/locales/en/filter-bar.ts b/src/locales/en/filter-bar.ts new file mode 100644 index 00000000000..60c6ffb1bbc --- /dev/null +++ b/src/locales/en/filter-bar.ts @@ -0,0 +1,21 @@ +import { SimpleTranslationEntries } from "#app/interfaces/locales"; + +export const filterBar: SimpleTranslationEntries = { + "genFilter": "Gen", + "typeFilter": "Type", + "unlocksFilter": "Unlocks", + "winFilter": "Win", + "sortFilter": "Sort", + "all": "All", + "normal": "Normal", + "uncaught": "Uncaught", + "passiveUnlocked": "Passive Unlocked", + "passiveLocked": "Passive Locked", + "hasWon": "Yes", + "hasNotWon": "No", + "sortByNumber": "No.", + "sortByCost": "Cost", + "sortByCandies": "Candy Count", + "sortByIVs": "IVs", + "sortByName": "Name", +}; diff --git a/src/locales/es/config.ts b/src/locales/es/config.ts index 6cc71222761..6d3d5504f26 100644 --- a/src/locales/es/config.ts +++ b/src/locales/es/config.ts @@ -24,6 +24,7 @@ import { } from "./dialogue"; import { egg } from "./egg"; import { fightUiHandler } from "./fight-ui-handler"; +import { filterBar } from "./filter-bar"; import { gameMode } from "./game-mode"; import { gameStatsUiHandler } from "./game-stats-ui-handler"; import { growth } from "./growth"; @@ -79,6 +80,7 @@ export const esConfig = { PGFdoubleBattleDialogue: PGFdoubleBattleDialogue, egg: egg, fightUiHandler: fightUiHandler, + filterBar: filterBar, gameMode: gameMode, gameStatsUiHandler: gameStatsUiHandler, growth: growth, diff --git a/src/locales/es/filter-bar.ts b/src/locales/es/filter-bar.ts new file mode 100644 index 00000000000..50826ba0502 --- /dev/null +++ b/src/locales/es/filter-bar.ts @@ -0,0 +1,21 @@ +import { SimpleTranslationEntries } from "#app/interfaces/locales"; + +export const filterBar: SimpleTranslationEntries = { + "genFilter": "Gen.", + "typeFilter": "Tipo", + "unlocksFilter": "Otros", + "winFilter": "Vic.", + "sortFilter": "Orden", + "all": "Todo", + "normal": "Normal", + "uncaught": "No Capt.", + "passiveUnlocked": "Pasiva Desbloq.", + "passiveLocked": "Pasiva Bloq.", + "hasWon": "Ya ha ganado", + "hasNotWon": "Aún no ha ganado", + "sortByNumber": "Núm.", + "sortByCost": "Coste", + "sortByCandies": "# Caramelos", + "sortByIVs": "IVs", + "sortByName": "Nombre", +}; diff --git a/src/locales/es/starter-select-ui-handler.ts b/src/locales/es/starter-select-ui-handler.ts index 6f7d845ca64..583e302bfeb 100644 --- a/src/locales/es/starter-select-ui-handler.ts +++ b/src/locales/es/starter-select-ui-handler.ts @@ -7,7 +7,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales"; */ export const starterSelectUiHandler: SimpleTranslationEntries = { "confirmStartTeam": "¿Comenzar con estos Pokémon?", - "invalidParty": "This is not a valid starting party!", + "invalidParty": "¡Este equipo no es válido!", "gen1": "I", "gen2": "II", "gen3": "III", @@ -22,10 +22,11 @@ export const starterSelectUiHandler: SimpleTranslationEntries = { "passive": "Pasiva:", "nature": "Natur:", "eggMoves": "Mov. Huevo", - "addToParty": "Añadir a Equipo", + "addToParty": "Añadir al Equipo", + "removeFromParty": "Excluir del Equipo", "toggleIVs": "Mostrar IVs", - "manageMoves": "Gestionar Movs.", - "manageNature": "Gestionar Natur", + "manageMoves": "Cambiar movs.", + "manageNature": "Cambiar natur.", "useCandies": "Usar Caramelos", "selectNature": "Elige Natur.", "selectMoveSwapOut": "Elige el movimiento que sustituir.", diff --git a/src/locales/fr/config.ts b/src/locales/fr/config.ts index fc274306528..30171ee634a 100644 --- a/src/locales/fr/config.ts +++ b/src/locales/fr/config.ts @@ -24,6 +24,7 @@ import { } from "./dialogue"; import { egg } from "./egg"; import { fightUiHandler } from "./fight-ui-handler"; +import { filterBar } from "./filter-bar"; import { gameMode } from "./game-mode"; import { gameStatsUiHandler } from "./game-stats-ui-handler"; import { growth } from "./growth"; @@ -79,6 +80,7 @@ export const frConfig = { PGFdoubleBattleDialogue: PGFdoubleBattleDialogue, egg: egg, fightUiHandler: fightUiHandler, + filterBar: filterBar, gameMode: gameMode, gameStatsUiHandler: gameStatsUiHandler, growth: growth, diff --git a/src/locales/fr/filter-bar.ts b/src/locales/fr/filter-bar.ts new file mode 100644 index 00000000000..de0be450ad6 --- /dev/null +++ b/src/locales/fr/filter-bar.ts @@ -0,0 +1,21 @@ +import { SimpleTranslationEntries } from "#app/interfaces/locales"; + +export const filterBar: SimpleTranslationEntries = { + "genFilter": "Gen", + "typeFilter": "Type", + "unlocksFilter": "Autres", + "winFilter": "Victoires", + "sortFilter": "Tri", + "all": "Tous", + "normal": "Normal", + "uncaught": "Non-capturé", + "passiveUnlocked": "Passif débloqué", + "passiveLocked": "Passif verrouillé", + "hasWon": "Oui", + "hasNotWon": "Aucune", + "sortByNumber": "Par N°", + "sortByCost": "Par cout", + "sortByCandies": "Par # bonbons", + "sortByIVs": "Par IV", + "sortByName": "Par nom", +}; diff --git a/src/locales/fr/starter-select-ui-handler.ts b/src/locales/fr/starter-select-ui-handler.ts index fa45624c0f0..ce5959062ac 100644 --- a/src/locales/fr/starter-select-ui-handler.ts +++ b/src/locales/fr/starter-select-ui-handler.ts @@ -7,7 +7,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales"; */ export const starterSelectUiHandler: SimpleTranslationEntries = { "confirmStartTeam": "Commencer avec ces Pokémon ?", - "invalidParty": "This is not a valid starting party!", + "invalidParty": "Cette équipe de départ est invalide !", "gen1": "1G", "gen2": "2G", "gen3": "3G", @@ -23,6 +23,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = { "nature": "Nature :", "eggMoves": "Capacités Œuf", "addToParty": "Ajouter à l’équipe", + "removeFromParty": "Retirer de l’équipe", "toggleIVs": "Voir les IV", "manageMoves": "Modifier les Capacités", "manageNature": "Modifier la Nature", diff --git a/src/locales/it/config.ts b/src/locales/it/config.ts index cfb8c4118c9..3bce2bd723f 100644 --- a/src/locales/it/config.ts +++ b/src/locales/it/config.ts @@ -24,6 +24,7 @@ import { } from "./dialogue"; import { egg } from "./egg"; import { fightUiHandler } from "./fight-ui-handler"; +import { filterBar } from "./filter-bar"; import { gameMode } from "./game-mode"; import { gameStatsUiHandler } from "./game-stats-ui-handler"; import { growth } from "./growth"; @@ -79,6 +80,7 @@ export const itConfig = { PGFdoubleBattleDialogue: PGFdoubleBattleDialogue, egg: egg, fightUiHandler: fightUiHandler, + filterBar: filterBar, gameMode: gameMode, gameStatsUiHandler: gameStatsUiHandler, growth: growth, diff --git a/src/locales/it/filter-bar.ts b/src/locales/it/filter-bar.ts new file mode 100644 index 00000000000..979b52f1729 --- /dev/null +++ b/src/locales/it/filter-bar.ts @@ -0,0 +1,21 @@ +import { SimpleTranslationEntries } from "#app/interfaces/locales"; + +export const filterBar: SimpleTranslationEntries = { + "genFilter": "Gen", + "typeFilter": "Tipo", + "unlocksFilter": "Altro", + "winFilter": "Vinto", + "sortFilter": "Ordina", + "all": "Tutto", + "normal": "Normale", + "uncaught": "Mancante", + "passiveUnlocked": "Passiva sbloccata", + "passiveLocked": "Passiva bloccata", + "hasWon": "Si", + "hasNotWon": "No", + "sortByNumber": "Num. Dex", + "sortByCost": "Costo", + "sortByCandies": "Caramelle", + "sortByIVs": "IVs", + "sortByName": "Nome", +}; diff --git a/src/locales/it/starter-select-ui-handler.ts b/src/locales/it/starter-select-ui-handler.ts index 8b42a0db8de..9b0197e48ab 100644 --- a/src/locales/it/starter-select-ui-handler.ts +++ b/src/locales/it/starter-select-ui-handler.ts @@ -7,7 +7,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales"; */ export const starterSelectUiHandler: SimpleTranslationEntries = { "confirmStartTeam": "Vuoi iniziare con questi Pokémon?", - "invalidParty": "This is not a valid starting party!", + "invalidParty": "Questo squadra iniziale non è valida!", "gen1": "1ª", "gen2": "2ª", "gen3": "3ª", @@ -23,6 +23,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = { "nature": "Natura:", "eggMoves": "Mosse da uova", "addToParty": "Aggiungi al gruppo", + "removeFromParty": "Rimuovi dal gruppo", "toggleIVs": "Vedi/Nascondi IV", "manageMoves": "Gestisci mosse", "manageNature": "Gestisci natura", diff --git a/src/locales/ko/config.ts b/src/locales/ko/config.ts index d9658b22c75..49b46f84131 100644 --- a/src/locales/ko/config.ts +++ b/src/locales/ko/config.ts @@ -25,6 +25,7 @@ import { } from "./dialogue"; import { egg } from "./egg"; import { fightUiHandler } from "./fight-ui-handler"; +import { filterBar } from "./filter-bar"; import { gameMode } from "./game-mode"; import { gameStatsUiHandler } from "./game-stats-ui-handler"; import { growth } from "./growth"; @@ -79,6 +80,7 @@ export const koConfig = { PGFdoubleBattleDialogue: PGFdoubleBattleDialogue, egg: egg, fightUiHandler: fightUiHandler, + filterBar: filterBar, gameMode: gameMode, gameStatsUiHandler: gameStatsUiHandler, growth: growth, diff --git a/src/locales/ko/filter-bar.ts b/src/locales/ko/filter-bar.ts new file mode 100644 index 00000000000..7f2dbf89db8 --- /dev/null +++ b/src/locales/ko/filter-bar.ts @@ -0,0 +1,21 @@ +import { SimpleTranslationEntries } from "#app/interfaces/locales"; + +export const filterBar: SimpleTranslationEntries = { + "genFilter": "세대", + "typeFilter": "타입", + "unlocksFilter": "등록", + "winFilter": "클리어", + "sortFilter": "정렬", + "all": "전체", + "normal": "기본", + "uncaught": "미포획", + "passiveUnlocked": "패시브 해금", + "passiveLocked": "패시브 잠김", + "hasWon": "완료", + "hasNotWon": "미완료", + "sortByNumber": "도감번호", + "sortByCost": "코스트", + "sortByCandies": "사탕 수", + "sortByIVs": "개체값", + "sortByName": "이름", +}; diff --git a/src/locales/ko/starter-select-ui-handler.ts b/src/locales/ko/starter-select-ui-handler.ts index a0c305b4266..8fe66e0d58a 100644 --- a/src/locales/ko/starter-select-ui-handler.ts +++ b/src/locales/ko/starter-select-ui-handler.ts @@ -7,7 +7,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales"; */ export const starterSelectUiHandler: SimpleTranslationEntries = { "confirmStartTeam": "이 포켓몬들로 시작하시겠습니까?", - "invalidParty": "This is not a valid starting party!", + "invalidParty": "스타팅 포켓몬 파티에 적합하지 않습니다!", "gen1": "1세대", "gen2": "2세대", "gen3": "3세대", @@ -23,6 +23,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = { "nature": "성격:", "eggMoves": "알 기술", "addToParty": "파티에 추가", + "removeFromParty": "파티에서 제외", "toggleIVs": "개체값 토글", "manageMoves": "기술 관리", "manageNature": "성격 관리", @@ -30,9 +31,9 @@ export const starterSelectUiHandler: SimpleTranslationEntries = { "selectNature": "교체할 성격을 선택해주세요.", "selectMoveSwapOut": "교체할 기술을 선택해주세요.", "selectMoveSwapWith": "교체될 기술을 선택해주세요. 대상:", + "sameSpeciesEgg": "알 구매하기", "unlockPassive": "패시브 해금", "reduceCost": "코스트 줄이기", - "sameSpeciesEgg": "알 구매하기", "cycleShiny": ": 색이 다른", "cycleForm": ": 폼", "cycleGender": ": 암수", diff --git a/src/locales/pt_BR/config.ts b/src/locales/pt_BR/config.ts index 1d204914ff6..ccadf78d67a 100644 --- a/src/locales/pt_BR/config.ts +++ b/src/locales/pt_BR/config.ts @@ -25,6 +25,7 @@ import { } from "./dialogue"; import { egg } from "./egg"; import { fightUiHandler } from "./fight-ui-handler"; +import { filterBar } from "./filter-bar"; import { gameMode } from "./game-mode"; import { gameStatsUiHandler } from "./game-stats-ui-handler"; import { growth } from "./growth"; @@ -79,6 +80,7 @@ export const ptBrConfig = { PGFdoubleBattleDialogue: PGFdoubleBattleDialogue, egg: egg, fightUiHandler: fightUiHandler, + filterBar: filterBar, gameMode: gameMode, gameStatsUiHandler: gameStatsUiHandler, growth: growth, diff --git a/src/locales/pt_BR/filter-bar.ts b/src/locales/pt_BR/filter-bar.ts new file mode 100644 index 00000000000..5e3ab7114da --- /dev/null +++ b/src/locales/pt_BR/filter-bar.ts @@ -0,0 +1,21 @@ +import { SimpleTranslationEntries } from "#app/interfaces/locales"; + +export const filterBar: SimpleTranslationEntries = { + "genFilter": "Ger.", + "typeFilter": "Tipo", + "unlocksFilter": "Outros", + "winFilter": "Vit.", + "sortFilter": "Ordem", + "all": "Tudo", + "normal": "Normal", + "uncaught": "Não Capturado", + "passiveUnlocked": "Passiva Desbloq.", + "passiveLocked": "Passiva Bloq.", + "hasWon": "Sim", + "hasNotWon": "Não", + "sortByNumber": "Núm.", + "sortByCost": "Custo", + "sortByCandies": "# Doces", + "sortByIVs": "IVs", + "sortByName": "Nome", +}; diff --git a/src/locales/pt_BR/starter-select-ui-handler.ts b/src/locales/pt_BR/starter-select-ui-handler.ts index bec408f4550..d1038630c8c 100644 --- a/src/locales/pt_BR/starter-select-ui-handler.ts +++ b/src/locales/pt_BR/starter-select-ui-handler.ts @@ -23,6 +23,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = { "nature": "Natureza:", "eggMoves": "Mov. de Ovo", "addToParty": "Adicionar à equipe", + "removeFromParty": "Remover da Equipe", "toggleIVs": "Mostrar IVs", "manageMoves": "Mudar Movimentos", "manageNature": "Mudar Natureza", @@ -30,9 +31,9 @@ export const starterSelectUiHandler: SimpleTranslationEntries = { "selectNature": "Escolha uma natureza.", "selectMoveSwapOut": "Escolha um movimento para substituir.", "selectMoveSwapWith": "Escolha o movimento que substituirá", + "sameSpeciesEgg": "Comprar Ovo", "unlockPassive": "Aprender Passiva", "reduceCost": "Reduzir Custo", - "sameSpeciesEgg": "Comprar Ovo", "cycleShiny": ": » Shiny", "cycleForm": ": » Forma", "cycleGender": ": » Gênero", diff --git a/src/locales/zh_CN/config.ts b/src/locales/zh_CN/config.ts index c8fea6e71cb..39c43a24631 100644 --- a/src/locales/zh_CN/config.ts +++ b/src/locales/zh_CN/config.ts @@ -24,6 +24,7 @@ import { } from "./dialogue"; import { egg } from "./egg"; import { fightUiHandler } from "./fight-ui-handler"; +import { filterBar } from "./filter-bar"; import { gameMode } from "./game-mode"; import { gameStatsUiHandler } from "./game-stats-ui-handler"; import { growth } from "./growth"; @@ -79,6 +80,7 @@ export const zhCnConfig = { PGFdoubleBattleDialogue: PGFdoubleBattleDialogue, egg: egg, fightUiHandler: fightUiHandler, + filterBar: filterBar, gameMode: gameMode, gameStatsUiHandler: gameStatsUiHandler, growth: growth, diff --git a/src/locales/zh_CN/filter-bar.ts b/src/locales/zh_CN/filter-bar.ts new file mode 100644 index 00000000000..581c7bf6b8c --- /dev/null +++ b/src/locales/zh_CN/filter-bar.ts @@ -0,0 +1,21 @@ +import { SimpleTranslationEntries } from "#app/interfaces/locales"; + +export const filterBar: SimpleTranslationEntries = { + "genFilter": "世代", + "typeFilter": "属性", + "unlocksFilter": "解锁", + "winFilter": "通关", + "sortFilter": "排序", + "all": "全部", + "normal": "无闪光", + "uncaught": "未捕获", + "passiveUnlocked": "被动解锁", + "passiveLocked": "被动未解锁", + "hasWon": "已通关", + "hasNotWon": "未通关", + "sortByNumber": "编号", + "sortByCost": "费用", + "sortByCandies": "糖果", + "sortByIVs": "个体", + "sortByName": "名称", +}; diff --git a/src/locales/zh_CN/starter-select-ui-handler.ts b/src/locales/zh_CN/starter-select-ui-handler.ts index b93fc26cde3..45327bab55b 100644 --- a/src/locales/zh_CN/starter-select-ui-handler.ts +++ b/src/locales/zh_CN/starter-select-ui-handler.ts @@ -23,6 +23,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = { "nature": "性格:", "eggMoves": "蛋招式", "addToParty": "加入队伍", + "removeFromParty": "移出队伍", "toggleIVs": "显示个体", "manageMoves": "管理招式", "manageNature": "管理性格", @@ -30,9 +31,9 @@ export const starterSelectUiHandler: SimpleTranslationEntries = { "selectNature": "选择性格", "selectMoveSwapOut": "选择要替换的招式。", "selectMoveSwapWith": "选择要替换成的招式", + "sameSpeciesEgg": "兑换一颗蛋", "unlockPassive": "解锁被动", "reduceCost": "降低花费", - "sameSpeciesEgg": "兑换一颗蛋", "cycleShiny": ": 闪光", "cycleForm": ": 形态", "cycleGender": ": 性别", diff --git a/src/locales/zh_TW/config.ts b/src/locales/zh_TW/config.ts index 72bfc4c19d8..a0217f004cf 100644 --- a/src/locales/zh_TW/config.ts +++ b/src/locales/zh_TW/config.ts @@ -24,6 +24,7 @@ import { } from "./dialogue"; import { egg } from "./egg"; import { fightUiHandler } from "./fight-ui-handler"; +import { filterBar } from "./filter-bar"; import { gameMode } from "./game-mode"; import { gameStatsUiHandler } from "./game-stats-ui-handler"; import { growth } from "./growth"; @@ -79,6 +80,7 @@ export const zhTwConfig = { PGFdoubleBattleDialogue: PGFdoubleBattleDialogue, egg: egg, fightUiHandler: fightUiHandler, + filterBar: filterBar, gameMode: gameMode, gameStatsUiHandler: gameStatsUiHandler, growth: growth, diff --git a/src/locales/zh_TW/filter-bar.ts b/src/locales/zh_TW/filter-bar.ts new file mode 100644 index 00000000000..1f562ffb7ba --- /dev/null +++ b/src/locales/zh_TW/filter-bar.ts @@ -0,0 +1,21 @@ +import { SimpleTranslationEntries } from "#app/interfaces/locales"; + +export const filterBar: SimpleTranslationEntries = { + "genFilter": "世代", + "typeFilter": "屬性", + "unlocksFilter": "解鎖", + "winFilter": "通關", + "sortFilter": "排序", + "all": "全部", + "normal": "通常", + "uncaught": "未捕獲", + "passiveUnlocked": "被動解鎖", + "passiveLocked": "被動未解鎖", + "hasWon": "已通關", + "hasNotWon": "未通關", + "sortByNumber": "編號", + "sortByCost": "花費", + "sortByCandies": "糖果", + "sortByIVs": "個體值", + "sortByName": "名稱", +}; diff --git a/src/locales/zh_TW/starter-select-ui-handler.ts b/src/locales/zh_TW/starter-select-ui-handler.ts index c3b78c8078d..0ea1e2d0415 100644 --- a/src/locales/zh_TW/starter-select-ui-handler.ts +++ b/src/locales/zh_TW/starter-select-ui-handler.ts @@ -7,7 +7,7 @@ import { SimpleTranslationEntries } from "#app/interfaces/locales"; */ export const starterSelectUiHandler: SimpleTranslationEntries = { "confirmStartTeam": "使用這些寶可夢開始嗎?", - "invalidParty": "This is not a valid starting party!", + "invalidParty": "此為無效隊伍!", "gen1": "I", "gen2": "II", "gen3": "III", @@ -24,6 +24,7 @@ export const starterSelectUiHandler: SimpleTranslationEntries = { "eggMoves": "孵化招式", "start": "開始", "addToParty": "加入隊伍", + "removeFromParty": "移出隊伍", "toggleIVs": "查看個體值", "manageMoves": "管理技能", "manageNature": "管理性格", @@ -31,9 +32,9 @@ export const starterSelectUiHandler: SimpleTranslationEntries = { "selectNature": "選擇性格", "selectMoveSwapOut": "選擇想要替換走的招式", "selectMoveSwapWith": "選擇想要替換成的招式", + "sameSpeciesEgg": "買蛋", "unlockPassive": "解鎖被動", "reduceCost": "降低花費", - "sameSpeciesEgg": "買蛋", "cycleShiny": ": 閃光", "cycleForm": ": 形態", "cycleGender": ": 性別", diff --git a/src/ui/dropdown.ts b/src/ui/dropdown.ts index 34ff96d66ee..15830773b98 100644 --- a/src/ui/dropdown.ts +++ b/src/ui/dropdown.ts @@ -2,6 +2,7 @@ import BattleScene from "#app/battle-scene.js"; import { SceneBase } from "#app/scene-base.js"; import { addTextObject, TextStyle } from "./text"; import { addWindow, WindowVariant } from "./ui-theme"; +import i18next from "i18next"; export enum DropDownState { ON = 0, @@ -108,7 +109,7 @@ export class DropDown extends Phaser.GameObjects.Container { this.cursorObj.setVisible(false); if (this.dropDownType === DropDownType.MULTI) { - this.options.unshift(new DropDownOption(scene, "ALL", "All", null, this.checkForAllOn() ? DropDownState.ON : DropDownState.OFF)); + this.options.unshift(new DropDownOption(scene, "ALL", i18next.t("filterBar:all"), null, this.checkForAllOn() ? DropDownState.ON : DropDownState.OFF)); } options.forEach((option, index) => { diff --git a/src/ui/starter-select-ui-handler.ts b/src/ui/starter-select-ui-handler.ts index 5201b12d2da..a20b04a825d 100644 --- a/src/ui/starter-select-ui-handler.ts +++ b/src/ui/starter-select-ui-handler.ts @@ -322,7 +322,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler { new DropDownOption(this.scene, 8, i18next.t("starterSelectUiHandler:gen8"), null, DropDownState.ON), new DropDownOption(this.scene, 9, i18next.t("starterSelectUiHandler:gen9"), null, DropDownState.ON), ]; - this.filterBar.addFilter("Gen", new DropDown(this.scene, 0, 0, genOptions, this.updateStarters, DropDownType.MULTI)); + this.filterBar.addFilter(i18next.t("filterBar:genFilter"), new DropDown(this.scene, 0, 0, genOptions, this.updateStarters, DropDownType.MULTI)); this.filterBar.defaultGenVals = this.filterBar.getVals(DropDownColumn.GEN); // set gen filter to all off except for the I GEN for (const option of genOptions) { @@ -343,7 +343,7 @@ export default class StarterSelectUiHandler extends MessageUiHandler { typeSprite.setFrame(type.toLowerCase()); typeOptions.push(new DropDownOption(this.scene, index, null, typeSprite)); }); - this.filterBar.addFilter("Type", new DropDown(this.scene, 0, 0, typeOptions, this.updateStarters, DropDownType.MULTI, 0.5)); + this.filterBar.addFilter(i18next.t("filterBar:typeFilter"), new DropDown(this.scene, 0, 0, typeOptions, this.updateStarters, DropDownType.MULTI, 0.5)); this.filterBar.defaultTypeVals = this.filterBar.getVals(DropDownColumn.TYPES); // Unlocks filter @@ -358,29 +358,29 @@ export default class StarterSelectUiHandler extends MessageUiHandler { new DropDownOption(this.scene, "SHINY3", null, shiny3Sprite), new DropDownOption(this.scene, "SHINY2", null, shiny2Sprite), new DropDownOption(this.scene, "SHINY", null, shiny1Sprite), - new DropDownOption(this.scene, "NORMAL", "Normal"), - new DropDownOption(this.scene, "UNCAUGHT", "Not Caught"), - new DropDownOption(this.scene, "PASSIVEUNLOCKED", "Passive Unlocked"), - new DropDownOption(this.scene, "PASSIVELOCKED", "Passive Locked"),]; + new DropDownOption(this.scene, "NORMAL", i18next.t("filterBar:normal")), + new DropDownOption(this.scene, "UNCAUGHT", i18next.t("filterBar:uncaught")), + new DropDownOption(this.scene, "PASSIVEUNLOCKED", i18next.t("filterBar:passiveUnlocked")), + new DropDownOption(this.scene, "PASSIVELOCKED", i18next.t("filterBar:passiveLocked"))]; - this.filterBar.addFilter("Unlocks", new DropDown(this.scene, 0, 0, unlocksOptions, this.updateStarters, DropDownType.MULTI)); + this.filterBar.addFilter(i18next.t("filterBar:unlocksFilter"), new DropDown(this.scene, 0, 0, unlocksOptions, this.updateStarters, DropDownType.MULTI)); this.filterBar.defaultUnlockVals = this.filterBar.getVals(DropDownColumn.UNLOCKS); // win filter const winOptions = [ - new DropDownOption(this.scene, "WIN", "has won"), - new DropDownOption(this.scene, "NOTWIN", "hasn't won yet")]; - this.filterBar.addFilter("Win", new DropDown(this.scene, 0, 0, winOptions, this.updateStarters, DropDownType.MULTI)); + new DropDownOption(this.scene, "WIN", i18next.t("filterBar:hasWon")), + new DropDownOption(this.scene, "NOTWIN", i18next.t("filterBar:hasNotWon"))]; + this.filterBar.addFilter(i18next.t("filterBar:winFilter"), new DropDown(this.scene, 0, 0, winOptions, this.updateStarters, DropDownType.MULTI)); this.filterBar.defaultWinVals = this.filterBar.getVals(DropDownColumn.WIN); // sort filter const sortOptions = [ - new DropDownOption(this.scene, 0, "No."), - new DropDownOption(this.scene, 1, "Cost", null, DropDownState.OFF), - new DropDownOption(this.scene, 2, "# Candies", null, DropDownState.OFF), - new DropDownOption(this.scene, 3, "IVs", null, DropDownState.OFF), - new DropDownOption(this.scene, 4, "Name", null, DropDownState.OFF)]; - this.filterBar.addFilter("Sort", new DropDown(this.scene, 0, 0, sortOptions, this.updateStarters, DropDownType.SINGLE)); + new DropDownOption(this.scene, 0, i18next.t("filterBar:sortByNumber")), + new DropDownOption(this.scene, 1, i18next.t("filterBar:sortByCost"), null, DropDownState.OFF), + new DropDownOption(this.scene, 2, i18next.t("filterBar:sortByCandies"), null, DropDownState.OFF), + new DropDownOption(this.scene, 3, i18next.t("filterBar:sortByIVs"), null, DropDownState.OFF), + new DropDownOption(this.scene, 4, i18next.t("filterBar:sortByName"), null, DropDownState.OFF)]; + this.filterBar.addFilter(i18next.t("filterBar:sortFilter"), new DropDown(this.scene, 0, 0, sortOptions, this.updateStarters, DropDownType.SINGLE)); this.filterBarContainer.add(this.filterBar); this.filterBar.defaultSortVals = this.filterBar.getVals(DropDownColumn.SORT);