pokerogue/public/locales/zh-CN/move-trigger.json
flx-sta 95386861bb
[Qol][Refactor] i18n lazy-loading (#4327)
* move: locales files to `/public` (from `/src`)

* install: i18next-http-backend module

* implement: i18next language lazy-loading

* remove: all `config.ts` files (for locales)

* disable: enConfig import in i18next.d.ts

* remove: console.log from utils.camelCaseToKebabCase()

* remove localization tests

we don't need to test if i18next is working.
This is the job of i18next itself

* mock i18next for tests

* fix: tests that have to use the i18next key now

instead of the english translation

* fix: absolute-avarice-encounter test

* fix: loading mystery-encounter translations

with lazy-load

* fix: 2 mystery encounter translation loading

* replace: i18next mocks any vi.fn() calls

* fix: new namespace usage in ME tests

now using "mysteryEncounters/..."

* fix: delibirdy encounter not being language specific

the encounter was checking if the modifier name includes `Berry` which is only true for english. Instead it has to check if the modifier is an instance of BerryModifier

* fix: the-expert-pokemon-breeder

the new i18n pattern requires a different namespacing which has been adopted

* fix: GTS encounter tests

* add: `MockText.on()`

* fix: berries abound test

* chore: apply review suggestion

from @DayKev

* update i18next.d.ts

* chore: fix i18next.d.ts

* fix: `dialogue-misc` switchup between `en` and `ja`

* move: `SpeciesFormKey` into enum

there was an issue with circular dependencies

* replace: `#app/enums/` with `#enums/` for `SpeciesFormKey` imports

* re-sync locales from `beta`

* rename: `ca_ES` -> `ca-ES`

* rename: `pt_BR` -> `pt-BR`

* rename: `zh_CN` -> `zh-CN`

* rename: `zh_TW` -> `zh-TW`

* fix loading Species-Form-Key in poemon-evo.

* update: i18next `supporterLngs` ...

and remove `nonExplicitSupportedLngs`

* fix: `${namespace}.` -> `${namespace}:`

thanks @MokaStitcher
2024-10-01 21:55:16 +01:00

73 lines
4.8 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"hitWithRecoil": "{{pokemonName}}\n受到了反作用力造成的伤害",
"cutHpPowerUpMove": "{{pokemonName}}\n削减了体力并提升了招式威力",
"absorbedElectricity": "{{pokemonName}}\n吸收了电力",
"switchedStatChanges": "{{pokemonName}}和对手互换了\n自己的能力变化",
"switchedTwoStatChanges": "{{pokemonName}} 和对手互换了自己的{{firstStat}}和{{secondStat}}的能力变化!",
"switchedStat": "{{pokemonName}} 互换了各自的{{stat}}",
"sharedGuard": "{{pokemonName}} 平分了各自的防守!",
"sharedPower": "{{pokemonName}} 平分了各自的力量!",
"goingAllOutForAttack": "{{pokemonName}}拿出全力了!",
"regainedHealth": "{{pokemonName}}的\n体力回复了",
"keptGoingAndCrashed": "{{pokemonName}}因势头过猛\n而撞到了地面",
"fled": "{{pokemonName}}\n逃走了",
"cannotBeSwitchedOut": "{{pokemonName}}\n无法被收回",
"swappedAbilitiesWithTarget": "{{pokemonName}}\n互换了各自的特性",
"coinsScatteredEverywhere": "金币散落一地!",
"attackedByItem": "{{pokemonName}}被\n{{itemName}}袭击了!",
"whippedUpAWhirlwind": "{{pokemonName}}周围的\n空气产生了旋涡",
"flewUpHigh": "{{pokemonName}}\n飞向了高空",
"tookInSunlight": "{{pokemonName}}\n吸收了光",
"dugAHole": "{{pokemonName}}\n钻入了地里",
"loweredItsHead": "{{pokemonName}}\n把头缩了进去",
"isGlowing": "强光包围了{{pokemonName}}\n",
"bellChimed": "铃声响彻四周!",
"foresawAnAttack": "{{pokemonName}}\n预知了未来的攻击",
"isTighteningFocus": "{{pokemonName}}正在集中注意力!",
"hidUnderwater": "{{pokemonName}}\n潜入了水中",
"soothingAromaWaftedThroughArea": "怡人的香气扩散了开来!",
"sprangUp": "{{pokemonName}}\n高高地跳了起来",
"choseDoomDesireAsDestiny": "{{pokemonName}}\n将破灭之愿托付给了未来",
"vanishedInstantly": "{{pokemonName}}的身影\n瞬间消失了",
"tookTargetIntoSky": "{{pokemonName}}将{{targetName}}\n带上了高空",
"becameCloakedInFreezingLight": "{{pokemonName}}\n被冷光包围了",
"becameCloakedInFreezingAir": "{{pokemonName}}\n被冰冻的空气包围了",
"isChargingPower": "{{pokemonName}}\n正在积蓄力量",
"burnedItselfOut": "{{pokemonName}}的火焰燃尽了!",
"startedHeatingUpBeak": "{{pokemonName}}\n开始给鸟嘴加热了",
"setUpShellTrap": "{{pokemonName}}\n设置了陷阱甲壳",
"isOverflowingWithSpacePower": "{{pokemonName}}身上\n溢出了宇宙之力",
"usedUpAllElectricity": "{{pokemonName}}\n用尽电力了",
"stoleItem": "{{pokemonName}}从{{targetName}}那里\n夺取了{{itemName}}",
"incineratedItem": "{{pokemonName}}烧没了\n{{targetName}}的{{itemName}}",
"knockedOffItem": "{{pokemonName}}拍落了\n{{targetName}}的{{itemName}}",
"tookMoveAttack": "{{pokemonName}}\n受到了{{moveName}}的攻击!",
"cutOwnHpAndMaximizedStat": "{{pokemonName}}\n削减了体力并释放了全部{{statName}}",
"copiedStatChanges": "{{pokemonName}}复制了\n{{targetName}}的能力变化!",
"magnitudeMessage": "震级{{magnitude}}",
"tookAimAtTarget": "{{pokemonName}}将目标对准了\n{{targetName}}",
"transformedIntoType": "{{pokemonName}} \n变成了{{typeName}}属性!",
"copiedMove": "{{pokemonName}}\n复制了{{moveName}}",
"sketchedMove": "{{pokemonName}}\n对{{moveName}}进行了写生!",
"acquiredAbility": "{{pokemonName}}的特性\n变为{{abilityName}}了!",
"copiedTargetAbility": "{{pokemonName}}复制了\n{{targetName}}的{{abilityName}}",
"transformedIntoTarget": "{{pokemonName}}\n变身成了{{targetName}}",
"tryingToTakeFoeDown": "{{pokemonName}}\n想和对手同归于尽",
"addType": "{{pokemonName}}\n增加了{{typeName}}属性!",
"cannotUseMove": "{{pokemonName}}\n无法使用{{moveName}}",
"healHp": "{{pokemonName}}的\n体力回复了",
"sacrificialFullRestore": "{{pokemonName}}的\n治愈之愿实现了",
"invertStats": "{{pokemonName}}的\n能力变化颠倒过来了",
"resetStats": "{{pokemonName}}的\n能力变化复原了",
"statEliminated": "所有能力都复原了!",
"faintCountdown": "{{pokemonName}}\n将在{{turnCount}}回合后灭亡!",
"copyType": "{{pokemonName}}\n变成了{{targetPokemonName}}的属性!",
"suppressAbilities": "{{pokemonName}}的特性\n变得无效了",
"revivalBlessing": "{{pokemonName}}复活了!",
"swapArenaTags": "{{pokemonName}}\n交换了双方的场地效果",
"chillyReception": "{{pokemonName}}\n说出了冷笑话",
"exposedMove": "{{pokemonName}}识破了\n{{targetPokemonName}}的原型!",
"safeguard": "{{targetName}}\n正受到神秘之幕的保护",
"afterYou": "{{targetName}}\n接受了对手的好意"
}