mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2024-11-25 16:26:25 +00:00
[Localization] Localized Daily Run Scoreboard (#2053)
* localized daily run scoreboard * Update src/locales/de/menu.ts Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> * localized positionIcon * Update src/locales/ko/menu.ts Co-authored-by: Enoch <enoch.jwsong@gmail.com> --------- Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com> Co-authored-by: Enoch <enoch.jwsong@gmail.com>
This commit is contained in:
parent
9d4425518f
commit
5cdf148965
@ -44,6 +44,10 @@ export const menu: SimpleTranslationEntries = {
|
||||
"dailyRankings": "Tägliche Rangliste",
|
||||
"weeklyRankings": "Wöchentliche Rangliste",
|
||||
"noRankings": "Keine Rangliste",
|
||||
"positionIcon": "#",
|
||||
"usernameScoreboard": "Benutzername",
|
||||
"score": "Punkte",
|
||||
"wave": "Welle",
|
||||
"loading": "Lade…",
|
||||
"loadingAsset": "Loading asset: {{assetName}}",
|
||||
"playersOnline": "Spieler Online",
|
||||
|
@ -44,6 +44,10 @@ export const menu: SimpleTranslationEntries = {
|
||||
"dailyRankings": "Daily Rankings",
|
||||
"weeklyRankings": "Weekly Rankings",
|
||||
"noRankings": "No Rankings",
|
||||
"positionIcon": "#",
|
||||
"usernameScoreboard": "Username",
|
||||
"score": "Score",
|
||||
"wave": "Wave",
|
||||
"loading": "Loading…",
|
||||
"loadingAsset": "Loading asset: {{assetName}}",
|
||||
"playersOnline": "Players Online",
|
||||
|
@ -44,6 +44,10 @@ export const menu: SimpleTranslationEntries = {
|
||||
"dailyRankings": "Rankings Diarios",
|
||||
"weeklyRankings": "Rankings Semanales",
|
||||
"noRankings": "Sin Rankings",
|
||||
"positionIcon": "#",
|
||||
"usernameScoreboard": "Username",
|
||||
"score": "Score",
|
||||
"wave": "Wave",
|
||||
"loading": "Cargando…",
|
||||
"loadingAsset": "Cargando recurso: {{assetName}}",
|
||||
"playersOnline": "Jugadores en Línea",
|
||||
|
@ -39,6 +39,10 @@ export const menu: SimpleTranslationEntries = {
|
||||
"dailyRankings": "Classement du Jour",
|
||||
"weeklyRankings": "Classement de la Semaine",
|
||||
"noRankings": "Pas de Classement",
|
||||
"positionIcon": "#",
|
||||
"usernameScoreboard": "Username",
|
||||
"score": "Score",
|
||||
"wave": "Wave",
|
||||
"loading": "Chargement…",
|
||||
"loadingAsset": "Loading asset: {{assetName}}",
|
||||
"playersOnline": "Joueurs Connectés",
|
||||
|
@ -39,6 +39,10 @@ export const menu: SimpleTranslationEntries = {
|
||||
"dailyRankings": "Classifica giornaliera",
|
||||
"weeklyRankings": "Classifica settimanale",
|
||||
"noRankings": "Nessuna classifica",
|
||||
"positionIcon": "#",
|
||||
"usernameScoreboard": "Username",
|
||||
"score": "Score",
|
||||
"wave": "Wave",
|
||||
"loading": "Caricamento…",
|
||||
"loadingAsset": "Caricamento asset: {{assetName}}",
|
||||
"playersOnline": "Giocatori online",
|
||||
|
@ -44,6 +44,10 @@ export const menu: SimpleTranslationEntries = {
|
||||
"dailyRankings": "일간 랭킹",
|
||||
"weeklyRankings": "주간 랭킹",
|
||||
"noRankings": "랭킹 정보 없음",
|
||||
"positionIcon": "#",
|
||||
"usernameScoreboard": "이름",
|
||||
"score": "점수",
|
||||
"wave": "웨이브",
|
||||
"loading": "로딩 중…",
|
||||
"loadingAsset": "Loading asset: {{assetName}}",
|
||||
"playersOnline": "플레이어 온라인",
|
||||
|
@ -44,6 +44,10 @@ export const menu: SimpleTranslationEntries = {
|
||||
"dailyRankings": "Classificação Diária",
|
||||
"weeklyRankings": "Classificação Semanal",
|
||||
"noRankings": "Sem Classificação",
|
||||
"positionIcon": "#",
|
||||
"usernameScoreboard": "Usuário",
|
||||
"score": "Pontuação",
|
||||
"wave": "Onda",
|
||||
"loading": "Carregando…",
|
||||
"loadingAsset": "Carregando recurso: {{assetName}}",
|
||||
"playersOnline": "Jogadores Ativos",
|
||||
|
@ -44,6 +44,10 @@ export const menu: SimpleTranslationEntries = {
|
||||
"dailyRankings": "每日排名",
|
||||
"weeklyRankings": "每周排名",
|
||||
"noRankings": "无排名",
|
||||
"positionIcon": "#",
|
||||
"usernameScoreboard": "Username",
|
||||
"score": "Score",
|
||||
"wave": "Wave",
|
||||
"loading": "加载中...",
|
||||
"loadingAsset": "Loading asset: {{assetName}}",
|
||||
"playersOnline": "在线玩家",
|
||||
|
@ -44,6 +44,10 @@ export const menu: SimpleTranslationEntries = {
|
||||
"dailyRankings": "每日排名",
|
||||
"weeklyRankings": "每週排名",
|
||||
"noRankings": "無排名",
|
||||
"positionIcon": "#",
|
||||
"usernameScoreboard": "Username",
|
||||
"score": "Score",
|
||||
"wave": "Wave",
|
||||
"loading": "加載中…",
|
||||
"loadingAsset": "Loading asset: {{assetName}}",
|
||||
"playersOnline": "在線玩家",
|
||||
|
@ -1,8 +1,8 @@
|
||||
import i18next from "i18next";
|
||||
import BattleScene from "../battle-scene";
|
||||
import * as Utils from "../utils";
|
||||
import { TextStyle, addTextObject } from "./text";
|
||||
import { WindowVariant, addWindow } from "./ui-theme";
|
||||
import * as Utils from "../utils";
|
||||
import i18next from "i18next";
|
||||
|
||||
interface RankingEntry {
|
||||
rank: integer,
|
||||
@ -154,7 +154,7 @@ export class DailyRunScoreboard extends Phaser.GameObjects.Container {
|
||||
return entryContainer;
|
||||
};
|
||||
|
||||
this.rankingsContainer.add(getEntry("#", "Username", "Score", "Wave"));
|
||||
this.rankingsContainer.add(getEntry(i18next.t("menu:positionIcon"), i18next.t("menu:usernameScoreboard"), i18next.t("menu:score"), i18next.t("menu:wave")));
|
||||
|
||||
rankings.forEach((r: RankingEntry, i: integer) => {
|
||||
const entryContainer = getEntry(r.rank.toString(), r.username, r.score.toString(), r.wave.toString());
|
||||
|
Loading…
Reference in New Issue
Block a user