Fixed img loading issue with summary_tabs_2 for fr, pt_BR and zh_CN
BIN
public/images/ui/legacy/summary_profile_ability_de.png
Normal file
After Width: | Height: | Size: 295 B |
BIN
public/images/ui/legacy/summary_profile_ability_es.png
Normal file
After Width: | Height: | Size: 245 B |
BIN
public/images/ui/legacy/summary_profile_ability_fr.png
Normal file
After Width: | Height: | Size: 295 B |
BIN
public/images/ui/legacy/summary_profile_ability_it.png
Normal file
After Width: | Height: | Size: 295 B |
BIN
public/images/ui/legacy/summary_profile_ability_pt_BR.png
Normal file
After Width: | Height: | Size: 295 B |
BIN
public/images/ui/legacy/summary_profile_ability_zh_CN.png
Normal file
After Width: | Height: | Size: 295 B |
BIN
public/images/ui/legacy/summary_profile_passive_de.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
public/images/ui/legacy/summary_profile_passive_es.png
Normal file
After Width: | Height: | Size: 242 B |
BIN
public/images/ui/legacy/summary_profile_passive_fr.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
public/images/ui/legacy/summary_profile_passive_it.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
public/images/ui/legacy/summary_profile_passive_pt_BR.png
Normal file
After Width: | Height: | Size: 310 B |
BIN
public/images/ui/legacy/summary_profile_passive_zh_CN.png
Normal file
After Width: | Height: | Size: 310 B |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 287 B |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 287 B |
Before Width: | Height: | Size: 287 B After Width: | Height: | Size: 287 B |
@ -115,7 +115,7 @@ export class LoadingScene extends SceneBase {
|
|||||||
for (let t = 1; t <= 3; t++){
|
for (let t = 1; t <= 3; t++){
|
||||||
this.loadImage(`summary_tabs_${t}`, 'ui');
|
this.loadImage(`summary_tabs_${t}`, 'ui');
|
||||||
}
|
}
|
||||||
i18next.languages.forEach(lang => {
|
(i18next.options.supportedLngs as Array<any>).forEach(lang => {
|
||||||
if(Utils.verifyLang(lang)){
|
if(Utils.verifyLang(lang)){
|
||||||
this.loadImage(`starter_select_bg_${lang}`, 'ui');
|
this.loadImage(`starter_select_bg_${lang}`, 'ui');
|
||||||
this.loadImage(`summary_bg_${lang}`, 'ui');
|
this.loadImage(`summary_bg_${lang}`, 'ui');
|
||||||
@ -206,7 +206,7 @@ export class LoadingScene extends SceneBase {
|
|||||||
this.loadAtlas('pb', '');
|
this.loadAtlas('pb', '');
|
||||||
this.loadAtlas('items', '');
|
this.loadAtlas('items', '');
|
||||||
this.loadAtlas('types', '');
|
this.loadAtlas('types', '');
|
||||||
i18next.languages.forEach(lang => {
|
(i18next.options.supportedLngs as Array<any>).forEach(lang => {
|
||||||
if(Utils.verifyLang(lang)){
|
if(Utils.verifyLang(lang)){
|
||||||
this.loadAtlas(`types_${lang}`, '');
|
this.loadAtlas(`types_${lang}`, '');
|
||||||
}
|
}
|
||||||
|
12
src/locales/IMPORTANT LOCALIZATION INFO
Normal file
@ -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
|
@ -804,7 +804,7 @@ export default class SummaryUiHandler extends UiHandler {
|
|||||||
stats.forEach((stat, s) => {
|
stats.forEach((stat, s) => {
|
||||||
const statName = stat !== Stat.HP
|
const statName = stat !== Stat.HP
|
||||||
? getStatName(stat)
|
? getStatName(stat)
|
||||||
: 'HP';
|
: i18next.t('pokemonStat:HP');
|
||||||
const rowIndex = s % 3;
|
const rowIndex = s % 3;
|
||||||
const colIndex = Math.floor(s / 3);
|
const colIndex = Math.floor(s / 3);
|
||||||
|
|
||||||
|