[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:
José Ricardo Fleury Oliveira 2024-06-16 17:23:18 -03:00 committed by GitHub
parent 9d4425518f
commit 5cdf148965
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 39 additions and 3 deletions

View File

@ -44,6 +44,10 @@ export const menu: SimpleTranslationEntries = {
"dailyRankings": "Tägliche Rangliste", "dailyRankings": "Tägliche Rangliste",
"weeklyRankings": "Wöchentliche Rangliste", "weeklyRankings": "Wöchentliche Rangliste",
"noRankings": "Keine Rangliste", "noRankings": "Keine Rangliste",
"positionIcon": "#",
"usernameScoreboard": "Benutzername",
"score": "Punkte",
"wave": "Welle",
"loading": "Lade…", "loading": "Lade…",
"loadingAsset": "Loading asset: {{assetName}}", "loadingAsset": "Loading asset: {{assetName}}",
"playersOnline": "Spieler Online", "playersOnline": "Spieler Online",

View File

@ -44,6 +44,10 @@ export const menu: SimpleTranslationEntries = {
"dailyRankings": "Daily Rankings", "dailyRankings": "Daily Rankings",
"weeklyRankings": "Weekly Rankings", "weeklyRankings": "Weekly Rankings",
"noRankings": "No Rankings", "noRankings": "No Rankings",
"positionIcon": "#",
"usernameScoreboard": "Username",
"score": "Score",
"wave": "Wave",
"loading": "Loading…", "loading": "Loading…",
"loadingAsset": "Loading asset: {{assetName}}", "loadingAsset": "Loading asset: {{assetName}}",
"playersOnline": "Players Online", "playersOnline": "Players Online",

View File

@ -44,6 +44,10 @@ export const menu: SimpleTranslationEntries = {
"dailyRankings": "Rankings Diarios", "dailyRankings": "Rankings Diarios",
"weeklyRankings": "Rankings Semanales", "weeklyRankings": "Rankings Semanales",
"noRankings": "Sin Rankings", "noRankings": "Sin Rankings",
"positionIcon": "#",
"usernameScoreboard": "Username",
"score": "Score",
"wave": "Wave",
"loading": "Cargando…", "loading": "Cargando…",
"loadingAsset": "Cargando recurso: {{assetName}}", "loadingAsset": "Cargando recurso: {{assetName}}",
"playersOnline": "Jugadores en Línea", "playersOnline": "Jugadores en Línea",

View File

@ -39,6 +39,10 @@ export const menu: SimpleTranslationEntries = {
"dailyRankings": "Classement du Jour", "dailyRankings": "Classement du Jour",
"weeklyRankings": "Classement de la Semaine", "weeklyRankings": "Classement de la Semaine",
"noRankings": "Pas de Classement", "noRankings": "Pas de Classement",
"positionIcon": "#",
"usernameScoreboard": "Username",
"score": "Score",
"wave": "Wave",
"loading": "Chargement…", "loading": "Chargement…",
"loadingAsset": "Loading asset: {{assetName}}", "loadingAsset": "Loading asset: {{assetName}}",
"playersOnline": "Joueurs Connectés", "playersOnline": "Joueurs Connectés",

View File

@ -39,6 +39,10 @@ export const menu: SimpleTranslationEntries = {
"dailyRankings": "Classifica giornaliera", "dailyRankings": "Classifica giornaliera",
"weeklyRankings": "Classifica settimanale", "weeklyRankings": "Classifica settimanale",
"noRankings": "Nessuna classifica", "noRankings": "Nessuna classifica",
"positionIcon": "#",
"usernameScoreboard": "Username",
"score": "Score",
"wave": "Wave",
"loading": "Caricamento…", "loading": "Caricamento…",
"loadingAsset": "Caricamento asset: {{assetName}}", "loadingAsset": "Caricamento asset: {{assetName}}",
"playersOnline": "Giocatori online", "playersOnline": "Giocatori online",

View File

@ -44,6 +44,10 @@ export const menu: SimpleTranslationEntries = {
"dailyRankings": "일간 랭킹", "dailyRankings": "일간 랭킹",
"weeklyRankings": "주간 랭킹", "weeklyRankings": "주간 랭킹",
"noRankings": "랭킹 정보 없음", "noRankings": "랭킹 정보 없음",
"positionIcon": "#",
"usernameScoreboard": "이름",
"score": "점수",
"wave": "웨이브",
"loading": "로딩 중…", "loading": "로딩 중…",
"loadingAsset": "Loading asset: {{assetName}}", "loadingAsset": "Loading asset: {{assetName}}",
"playersOnline": "플레이어 온라인", "playersOnline": "플레이어 온라인",

View File

@ -44,6 +44,10 @@ export const menu: SimpleTranslationEntries = {
"dailyRankings": "Classificação Diária", "dailyRankings": "Classificação Diária",
"weeklyRankings": "Classificação Semanal", "weeklyRankings": "Classificação Semanal",
"noRankings": "Sem Classificação", "noRankings": "Sem Classificação",
"positionIcon": "#",
"usernameScoreboard": "Usuário",
"score": "Pontuação",
"wave": "Onda",
"loading": "Carregando…", "loading": "Carregando…",
"loadingAsset": "Carregando recurso: {{assetName}}", "loadingAsset": "Carregando recurso: {{assetName}}",
"playersOnline": "Jogadores Ativos", "playersOnline": "Jogadores Ativos",

View File

@ -44,6 +44,10 @@ export const menu: SimpleTranslationEntries = {
"dailyRankings": "每日排名", "dailyRankings": "每日排名",
"weeklyRankings": "每周排名", "weeklyRankings": "每周排名",
"noRankings": "无排名", "noRankings": "无排名",
"positionIcon": "#",
"usernameScoreboard": "Username",
"score": "Score",
"wave": "Wave",
"loading": "加载中...", "loading": "加载中...",
"loadingAsset": "Loading asset: {{assetName}}", "loadingAsset": "Loading asset: {{assetName}}",
"playersOnline": "在线玩家", "playersOnline": "在线玩家",

View File

@ -44,6 +44,10 @@ export const menu: SimpleTranslationEntries = {
"dailyRankings": "每日排名", "dailyRankings": "每日排名",
"weeklyRankings": "每週排名", "weeklyRankings": "每週排名",
"noRankings": "無排名", "noRankings": "無排名",
"positionIcon": "#",
"usernameScoreboard": "Username",
"score": "Score",
"wave": "Wave",
"loading": "加載中…", "loading": "加載中…",
"loadingAsset": "Loading asset: {{assetName}}", "loadingAsset": "Loading asset: {{assetName}}",
"playersOnline": "在線玩家", "playersOnline": "在線玩家",

View File

@ -1,8 +1,8 @@
import i18next from "i18next";
import BattleScene from "../battle-scene"; import BattleScene from "../battle-scene";
import * as Utils from "../utils";
import { TextStyle, addTextObject } from "./text"; import { TextStyle, addTextObject } from "./text";
import { WindowVariant, addWindow } from "./ui-theme"; import { WindowVariant, addWindow } from "./ui-theme";
import * as Utils from "../utils";
import i18next from "i18next";
interface RankingEntry { interface RankingEntry {
rank: integer, rank: integer,
@ -154,7 +154,7 @@ export class DailyRunScoreboard extends Phaser.GameObjects.Container {
return entryContainer; 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) => { rankings.forEach((r: RankingEntry, i: integer) => {
const entryContainer = getEntry(r.rank.toString(), r.username, r.score.toString(), r.wave.toString()); const entryContainer = getEntry(r.rank.toString(), r.username, r.score.toString(), r.wave.toString());