pokerogue/public/locales/ja/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
5.9 KiB
JSON
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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}}と\n{{secondStat}}の 能力変化を 入れ替えた!",
"switchedStat": "{{pokemonName}}は 相手と {{stat}}を 入れ替えた!",
"sharedGuard": "{{pokemonName}}は\nお互いのガードを シェアした",
"sharedPower": "{{pokemonName}}は\nお互いのパワーを シェアした",
"goingAllOutForAttack": "{{pokemonName}}は\n本気を 出した",
"regainedHealth": "{{pokemonName}}は\n体力を 回復した",
"keptGoingAndCrashed": "勢い余って {{pokemonName}}は\n地面に ぶつかった",
"fled": "{{pokemonName}}は 逃げ出した!",
"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}}は\n集中力を 高めている",
"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}}は\n{{targetName}}の {{itemName}}を 盗んだ!",
"incineratedItem": "{{pokemonName}}は\n{{targetName}}の {{itemName}}を 燃やした!",
"knockedOffItem": "{{pokemonName}}は\n{{targetName}}の {{itemName}}を はたき落とした!",
"tookMoveAttack": "{{pokemonName}}は\n{{moveName}}の 攻撃を 受けた!",
"cutOwnHpAndMaximizedStat": "{{pokemonName}}は\n体力を 削って {{statName}}全開!",
"copiedStatChanges": "{{pokemonName}}は {{targetName}}の\n能力変化を コピーした",
"magnitudeMessage": "マグニチュード{{magnitude}}",
"tookAimAtTarget": "{{pokemonName}}は {{targetName}}に\n狙いを 定めた",
"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}}は {{targetPokemonName}}と\n同じタイプに なった",
"suppressAbilities": "{{pokemonName}}の 特性が 効かなくなった!",
"revivalBlessing": "{{pokemonName}}は\n復活して 戦えるようになった",
"swapArenaTags": "{{pokemonName}}は\nお互いの 場の効果を 入れ替えた",
"chillyReception": "{{pokemonName}}は\n寒い ギャグを かました",
"swapArenaTags": "{{pokemonName}}は\nお互いの 場の 効果を 入れ替えた",
"exposedMove": "{{pokemonName}}は {{targetPokemonName}}の\n正体を 見破った",
"afterYou": "{{targetName}}は\nお言葉に 甘えることにした"
}