Skip to content

Commit e494250

Browse files
authored
Merge pull request #1097 from ReuschelCGN/translations
fix: quest_shiny_probability pokestop popup and add german translation
2 parents 8ec2bb6 + 3059f36 commit e494250

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/locales/lib/human/de.json

+1
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@
478478
"with_ar": "Mit AR",
479479
"without_ar": "Ohne AR",
480480
"both": "Beide",
481+
"shiny_probability": "Shinyrate: {{p}}",
481482
"badge_0": "keiner",
482483
"badge_1": "Basis",
483484
"badge_2": "Bronze",

src/features/pokestop/PokestopPopup.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function PokestopPopup({
129129
}}
130130
>
131131
<QuestConditions {...quest} />
132-
{quest.quest_shiny_probability && (
132+
{!!quest.quest_shiny_probability && (
133133
<>
134134
<br />
135135
<Typography variant="caption">
@@ -538,7 +538,7 @@ const readableProbability = (x) => {
538538
const x_1 = Math.round(1 / x)
539539
const percent = Math.round(x * 100)
540540
return Math.abs(1 / x_1 - x) < Math.abs(percent * 0.01 - x)
541-
? `1/${x_1}`
541+
? `1:${x_1}`
542542
: `${percent}%`
543543
}
544544

0 commit comments

Comments
 (0)