diff --git a/public/images/ui/legacy/summary_profile_ability_de.png b/public/images/ui/legacy/summary_profile_ability_de.png new file mode 100644 index 000000000..84c41556a Binary files /dev/null and b/public/images/ui/legacy/summary_profile_ability_de.png differ diff --git a/public/images/ui/legacy/summary_profile_ability_es.png b/public/images/ui/legacy/summary_profile_ability_es.png new file mode 100644 index 000000000..cf86ecfc2 Binary files /dev/null and b/public/images/ui/legacy/summary_profile_ability_es.png differ diff --git a/public/images/ui/legacy/summary_profile_ability_fr.png b/public/images/ui/legacy/summary_profile_ability_fr.png new file mode 100644 index 000000000..84c41556a Binary files /dev/null and b/public/images/ui/legacy/summary_profile_ability_fr.png differ diff --git a/public/images/ui/legacy/summary_profile_ability_it.png b/public/images/ui/legacy/summary_profile_ability_it.png new file mode 100644 index 000000000..84c41556a Binary files /dev/null and b/public/images/ui/legacy/summary_profile_ability_it.png differ diff --git a/public/images/ui/legacy/summary_profile_ability_pt_BR.png b/public/images/ui/legacy/summary_profile_ability_pt_BR.png new file mode 100644 index 000000000..84c41556a Binary files /dev/null and b/public/images/ui/legacy/summary_profile_ability_pt_BR.png differ diff --git a/public/images/ui/legacy/summary_profile_ability_zh_CN.png b/public/images/ui/legacy/summary_profile_ability_zh_CN.png new file mode 100644 index 000000000..84c41556a Binary files /dev/null and b/public/images/ui/legacy/summary_profile_ability_zh_CN.png differ diff --git a/public/images/ui/legacy/summary_profile_passive_de.png b/public/images/ui/legacy/summary_profile_passive_de.png new file mode 100644 index 000000000..8d70a54b2 Binary files /dev/null and b/public/images/ui/legacy/summary_profile_passive_de.png differ diff --git a/public/images/ui/legacy/summary_profile_passive_es.png b/public/images/ui/legacy/summary_profile_passive_es.png new file mode 100644 index 000000000..2a982cf89 Binary files /dev/null and b/public/images/ui/legacy/summary_profile_passive_es.png differ diff --git a/public/images/ui/legacy/summary_profile_passive_fr.png b/public/images/ui/legacy/summary_profile_passive_fr.png new file mode 100644 index 000000000..8d70a54b2 Binary files /dev/null and b/public/images/ui/legacy/summary_profile_passive_fr.png differ diff --git a/public/images/ui/legacy/summary_profile_passive_it.png b/public/images/ui/legacy/summary_profile_passive_it.png new file mode 100644 index 000000000..8d70a54b2 Binary files /dev/null and b/public/images/ui/legacy/summary_profile_passive_it.png differ diff --git a/public/images/ui/legacy/summary_profile_passive_pt_BR.png b/public/images/ui/legacy/summary_profile_passive_pt_BR.png new file mode 100644 index 000000000..8d70a54b2 Binary files /dev/null and b/public/images/ui/legacy/summary_profile_passive_pt_BR.png differ diff --git a/public/images/ui/legacy/summary_profile_passive_zh_CN.png b/public/images/ui/legacy/summary_profile_passive_zh_CN.png new file mode 100644 index 000000000..8d70a54b2 Binary files /dev/null and b/public/images/ui/legacy/summary_profile_passive_zh_CN.png differ diff --git a/public/images/ui/summary_tabs_2 _fr.png b/public/images/ui/summary_tabs_2_fr.png similarity index 100% rename from public/images/ui/summary_tabs_2 _fr.png rename to public/images/ui/summary_tabs_2_fr.png diff --git a/public/images/ui/summary_tabs_2 _pt_BR.png b/public/images/ui/summary_tabs_2_pt_BR.png similarity index 100% rename from public/images/ui/summary_tabs_2 _pt_BR.png rename to public/images/ui/summary_tabs_2_pt_BR.png diff --git a/public/images/ui/summary_tabs_2 _zh_CN.png b/public/images/ui/summary_tabs_2_zh_CN.png similarity index 100% rename from public/images/ui/summary_tabs_2 _zh_CN.png rename to public/images/ui/summary_tabs_2_zh_CN.png diff --git a/src/loading-scene.ts b/src/loading-scene.ts index fe96dc6c7..5b5f6e8e3 100644 --- a/src/loading-scene.ts +++ b/src/loading-scene.ts @@ -115,7 +115,7 @@ export class LoadingScene extends SceneBase { for (let t = 1; t <= 3; t++){ this.loadImage(`summary_tabs_${t}`, 'ui'); } - i18next.languages.forEach(lang => { + (i18next.options.supportedLngs as Array).forEach(lang => { if(Utils.verifyLang(lang)){ this.loadImage(`starter_select_bg_${lang}`, 'ui'); this.loadImage(`summary_bg_${lang}`, 'ui'); @@ -206,7 +206,7 @@ export class LoadingScene extends SceneBase { this.loadAtlas('pb', ''); this.loadAtlas('items', ''); this.loadAtlas('types', ''); - i18next.languages.forEach(lang => { + (i18next.options.supportedLngs as Array).forEach(lang => { if(Utils.verifyLang(lang)){ this.loadAtlas(`types_${lang}`, ''); } diff --git a/src/locales/IMPORTANT LOCALIZATION INFO b/src/locales/IMPORTANT LOCALIZATION INFO new file mode 100644 index 000000000..d6c13edb2 --- /dev/null +++ b/src/locales/IMPORTANT LOCALIZATION INFO @@ -0,0 +1,12 @@ +In case a new lang is added, it should be added to the function verifyLang of Utils as well, but only after +adding all the necessary lang images: + - starter_select_bg_LANGNAME + - summary_bg_LANGNAME + - summary_moves_LANGNAME + - summary_moves_effect_LANGNAME + - summary_profile_LANGNAME + - summary_stats_LANGNAME + - summary_tabs_1_LANGNAME + - summary_tabs_2_LANGNAME + - summary_tabs_3_LANGNAME +These images should be added to the legacy folder as well \ No newline at end of file diff --git a/src/ui/summary-ui-handler.ts b/src/ui/summary-ui-handler.ts index 2efaa3458..5e1de5556 100644 --- a/src/ui/summary-ui-handler.ts +++ b/src/ui/summary-ui-handler.ts @@ -804,7 +804,7 @@ export default class SummaryUiHandler extends UiHandler { stats.forEach((stat, s) => { const statName = stat !== Stat.HP ? getStatName(stat) - : 'HP'; + : i18next.t('pokemonStat:HP'); const rowIndex = s % 3; const colIndex = Math.floor(s / 3);