[Localization][ko] StatRose, StatFell Message Fix (#2285)

This commit is contained in:
layharu0 2024-06-17 11:01:08 +09:00 committed by GitHub
parent 1efb7c5847
commit 942cbb2181
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 9 deletions

View File

@ -62,12 +62,12 @@ export const battle: SimpleTranslationEntries = {
"drainMessage": "{{pokemonName}}[[로]]부터\n체력을 흡수했다!",
"regainHealth": "{{pokemonName}}[[는]]\n기력을 회복했다!",
"fainted": "{{pokemonNameWithAffix}}[[는]] 쓰러졌다!",
"statRose": "상승했다",
"statSharplyRose": "크게 상승했다",
"statRoseDrastically": "매우 크게 상승했다",
"statWontGoAnyHigher": "더 이상 올라갈 수 없다",
"statFell": "떨어졌다",
"statHarshlyFell": "크게 떨어졌다",
"statSeverelyFell": "매우 크게 떨어졌다",
"statWontGoAnyLower": "더 이상 떨어질 수 없다",
"statRose": "[[가]] 올라갔다!",
"statSharplyRose": "[[가]] 크게 올라갔다!",
"statRoseDrastically": "[[가]] 매우 크게 올라갔다!",
"statWontGoAnyHigher": "[[는]] 더 올라가지 않는다!",
"statFell": "[[가]] 떨어졌다!",
"statHarshlyFell": "[[가]] 크게 떨어졌다!",
"statSeverelyFell": "[[가]] 매우 크게 떨어졌다!",
"statWontGoAnyLower": "[[는]] 더 떨어지지 않는다!",
} as const;

View File

@ -21,6 +21,7 @@ import { pokemonInfo as zhTwPokemonInfo } from "#app/locales/zh_TW/pokemon-info.
import { battle as zhTwBattleStat } from "#app/locales/zh_TW/battle.js";
import i18next, {initI18n} from "#app/plugins/i18n";
import { KoreanPostpositionProcessor } from "i18next-korean-postposition-processor";
interface BattleStatTestUnit {
stat: BattleStat,
@ -198,7 +199,9 @@ describe("Test for BattleStat Localization", () => {
it("Test getBattleStatLevelChangeDescription() in 한국어", async () => {
i18next.changeLanguage("ko", () => {
battleStatLevelUnits.forEach(unit => {
testBattleStatLevelChangeDescription(unit.levels, unit.up, koBattleStat[unit.key]);
const processor = new KoreanPostpositionProcessor();
const message = processor.process(koBattleStat[unit.key]);
testBattleStatLevelChangeDescription(unit.levels, unit.up, message);
});
});
});