Skip to content

Commit

Permalink
fix: add missing mega translations
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Mar 21, 2024
1 parent 13b219b commit b72e117
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/classes/Translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,21 @@ export default class Translations extends Masterfile {
`pokemon_name_${String(id).padStart(4, '0')}`
] || pokemon[id].pokemonName
const description = `pokemon_desc_${String(id).padStart(4, '0')}`
new Array(4)
.fill(0)
.map(
(_, evo) =>
this.rawTranslations[locale][
`pokemon_name_${String(id).padStart(4, '0')}_000${evo}`
],
)
.forEach((mega, evo) => {
if (mega) {
this.parsedTranslations[locale].pokemon[
`${this.options.prefix.pokemon}${id}_e${evo}`
] = mega
}
})
if (id) {
if (name && subItems.names) {
this.parsedTranslations[locale].pokemon[
Expand Down

0 comments on commit b72e117

Please sign in to comment.