From 63d79a94302e8a1762fcbc1c6d9e73e9275002cc Mon Sep 17 00:00:00 2001 From: EnochG1 Date: Wed, 28 Aug 2024 08:22:30 +0900 Subject: [PATCH] Add missed natureFragment --- src/locales/en/pokemon-summary.json | 27 +++++++++++++++++++++++++++ src/locales/ko/pokemon-summary.json | 27 +++++++++++++++++++++++++++ src/ui/summary-ui-handler.ts | 5 +---- 3 files changed, 55 insertions(+), 4 deletions(-) diff --git a/src/locales/en/pokemon-summary.json b/src/locales/en/pokemon-summary.json index 8d266999084..80e0cdab010 100644 --- a/src/locales/en/pokemon-summary.json +++ b/src/locales/en/pokemon-summary.json @@ -13,5 +13,32 @@ "metFragment": { "normal": "met at Lv{{level}},\n{{biome}}.", "apparently": "apparently met at Lv{{level}},\n{{biome}}." + }, + "natureFragment": { + "Hardy": "{{nature}}", + "Lonely": "{{nature}}", + "Brave": "{{nature}}", + "Adamant": "{{nature}}", + "Naughty": "{{nature}}", + "Bold": "{{nature}}", + "Docile": "{{nature}}", + "Relaxed": "{{nature}}", + "Impish": "{{nature}}", + "Lax": "{{nature}}", + "Timid": "{{nature}}", + "Hasty": "{{nature}}", + "Serious": "{{nature}}", + "Jolly": "{{nature}}", + "Naive": "{{nature}}", + "Modest": "{{nature}}", + "Mild": "{{nature}}", + "Quiet": "{{nature}}", + "Bashful": "{{nature}}", + "Rash": "{{nature}}", + "Calm": "{{nature}}", + "Gentle": "{{nature}}", + "Sassy": "{{nature}}", + "Careful": "{{nature}}", + "Quirky": "{{nature}}" } } \ No newline at end of file diff --git a/src/locales/ko/pokemon-summary.json b/src/locales/ko/pokemon-summary.json index 3deec35c62d..d9119623662 100644 --- a/src/locales/ko/pokemon-summary.json +++ b/src/locales/ko/pokemon-summary.json @@ -13,5 +13,32 @@ "metFragment": { "normal": "{{biome}}에서\n레벨 {{level}}일 때 만났다.", "apparently": "{{biome}}에서\n레벨 {{level}}일 때 만난 것 같다." + }, + "natureFragment": { + "Hardy": "{{nature}}하는 성격", + "Lonely": "{{nature}}을 타는 성격", + "Brave": "{{nature}}한 성격", + "Adamant": "{{nature}}스러운 성격", + "Naughty": "{{nature}}같은 성격", + "Bold": "{{nature}}한 성격", + "Docile": "{{nature}}한 성격", + "Relaxed": "{{nature}}한 성격", + "Impish": "{{nature}}같은 성격", + "Lax": "{{nature}}거리는 성격", + "Timid": "{{nature}}같은 성격", + "Hasty": "{{nature}}한 성격", + "Serious": "{{nature}}한 성격", + "Jolly": "{{nature}}한 성격", + "Naive": "{{nature}}한 성격", + "Modest": "{{nature}}스러운 성격", + "Mild": "{{nature}}한 성격", + "Quiet": "{{nature}}한 성격", + "Bashful": "{{nature}}을 타는 성격", + "Rash": "{{nature}}거리는 성격", + "Calm": "{{nature}}한 성격", + "Gentle": "{{nature}}한 성격", + "Sassy": "{{nature}}진 성격", + "Careful": "{{nature}}한 성격", + "Quirky": "{{nature}}스러운 성격" } } diff --git a/src/ui/summary-ui-handler.ts b/src/ui/summary-ui-handler.ts index e5def3a1961..ea7b798f2bf 100644 --- a/src/ui/summary-ui-handler.ts +++ b/src/ui/summary-ui-handler.ts @@ -825,10 +825,7 @@ export default class SummaryUiHandler extends UiHandler { biome: `${getBBCodeFrag(getBiomeName(this.pokemon?.metBiome!), TextStyle.SUMMARY_RED)}${closeFragment}`, // TODO: is this bang correct? level: `${getBBCodeFrag(this.pokemon?.metLevel.toString()!, TextStyle.SUMMARY_RED)}${closeFragment}`, // TODO: is this bang correct? }), - natureFragment: - i18next.exists(`pokemonSummary:natureFragment.${rawNature}`) ? - i18next.t(`pokemonSummary:natureFragment.${rawNature}`, { nature: nature }) : - nature, + natureFragment: i18next.t(`pokemonSummary:natureFragment.${rawNature}`, { nature: nature }) }); const memoText = addBBCodeTextObject(this.scene, 7, 113, String(memoString), TextStyle.WINDOW_ALT);