Skip to content

Commit

Permalink
fix: forgot my own type i18n keys
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Jan 13, 2024
1 parent 1802ca6 commit d74f239
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion server/src/services/filters/builder/pokestop.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function buildPokestops(perms, defaults) {
if (perms.eventStops && avail.startsWith('b')) {
quests[avail] = new BaseFilter(defaults.eventStops)
}
if (perms.eventStops && avail.startsWith('f')) {
if (perms.eventStops && (avail.startsWith('f') || avail.startsWith('h'))) {
quests[avail] = new BaseFilter(defaults.showcasePokemon)
}
})
Expand Down
4 changes: 3 additions & 1 deletion src/components/popups/Pokestop.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ export default function PokestopPopup({
) : event.showcase_pokemon_type_id ? (
<NameTT
key={event.showcase_pokemon_type_id}
id={[`type_${event.showcase_pokemon_type_id}`]}
id={[
`poke_type_${event.showcase_pokemon_type_id}`,
]}
>
<div className="invasion-reward">
<img
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useTranslateById.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function useTranslateById(options = {}) {
return i18n.t(`egg_${id.slice(1)}${plural ? '_plural' : ''}`)
case 'g':
case 'h':
return i18n.t(`type_${id.slice(1)}`)
return i18n.t(`poke_type_${id.slice(1)}`)
case 't':
// gyms
// teams
Expand Down
2 changes: 1 addition & 1 deletion src/services/filtering/genPokestops.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function genPokestops(pokemon, pokestops, categories) {
break
case 'h':
if (tempObj.showcase) {
const name = t(`type_${id.slice(1)}`)
const name = t(`poke_type_${id.slice(1)}`)
tempObj.showcase[id] = {
name,
perms: ['eventStops'],
Expand Down

0 comments on commit d74f239

Please sign in to comment.