Skip to content

Commit

Permalink
add *Eng for the pokemons in the weatherchange dts (#904)
Browse files Browse the repository at this point in the history
- nameEng
- fullNameEng
- formNameEng
- formNormalised
- formNormalisedEng
  • Loading branch information
TiMXL73 authored Aug 3, 2024
1 parent e171fe7 commit e823ab9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/controllers/weather.js
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,13 @@ class Weather extends Controller {
data.weatherEmoji = data.weatherEmojiEng ? translator.translate(data.weatherEmojiEng) : ''
if (this.config.weather.showAlteredPokemon && data.activePokemons) {
data.activePokemons.map((pok) => {
pok.nameEng = pok.name
pok.name = translator.translate(pok.name)
pok.formNameEng = pok.formName
pok.formNormalisedEng = pok.formNameEng === 'Normal' ? '' : pok.formNameEng
pok.formNormalised = translator.translate(pok.formNormalisedEng)
pok.formName = translator.translate(pok.formName)
pok.fullNameEng = pok.nameEng.concat(pok.formNormalisedEng ? ' ' : '', pok.formNormalisedEng)
})
}

Expand Down

0 comments on commit e823ab9

Please sign in to comment.