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

281 lines
6.3 KiB
JSON

{
"Achievements": {
"name": "成就"
},
"Locked": {
"name": "未解锁"
},
"MoneyAchv": {
"description": "累计获得 ₽{{moneyAmount}}"
},
"10K_MONEY": {
"name": "小有积蓄"
},
"100K_MONEY": {
"name": "大户人家"
},
"1M_MONEY": {
"name": "百万富翁"
},
"10M_MONEY": {
"name": "暴发户"
},
"DamageAchv": {
"description": "在单次攻击中造成\n {{damageAmount}} 点伤害"
},
"250_DMG": {
"name": "重拳出击"
},
"1000_DMG": {
"name": "神拳猛击"
},
"2500_DMG": {
"name": "夺少?"
},
"10000_DMG": {
"name": "一拳超人"
},
"HealAchv": {
"description": "通过技能、能力或携带的道具\n一次性治疗 {{healAmount}} {{HP}}点"
},
"250_HEAL": {
"name": "新手奶妈"
},
"1000_HEAL": {
"name": "治疗担当"
},
"2500_HEAL": {
"name": "牧师"
},
"10000_HEAL": {
"name": "泉水"
},
"LevelAchv": {
"description": "将一只宝可梦提升到 Lv{{level}}"
},
"LV_100": {
"name": "别急,后面还有"
},
"LV_250": {
"name": "精英"
},
"LV_1000": {
"name": "天外有天"
},
"RibbonAchv": {
"description": "累计获得 {{ribbonAmount}} 个勋章"
},
"10_RIBBONS": {
"name": "宝可梦联盟冠军"
},
"25_RIBBONS": {
"name": "超级球联盟冠军"
},
"50_RIBBONS": {
"name": "高级球联盟冠军"
},
"75_RIBBONS": {
"name": "肉鸽球联盟冠军"
},
"100_RIBBONS": {
"name": "大师球联盟冠军"
},
"TRANSFER_MAX_STAT_STAGE": {
"name": "团队协作",
"description": "在一项属性强化至最大时用\n接力棒传递给其他宝可梦"
},
"MAX_FRIENDSHIP": {
"name": "亲密无间",
"description": "使一只宝可梦的亲密度\n达到最大值"
},
"MEGA_EVOLVE": {
"name": "大变身",
"description": "超级进化一只宝可梦"
},
"GIGANTAMAX": {
"name": "这位更是重量级",
"description": "极巨化一只宝可梦"
},
"TERASTALLIZE": {
"name": "本系爱好者",
"description": "太晶化一只宝可梦"
},
"STELLAR_TERASTALLIZE": {
"name": "隐藏属性",
"description": "星晶化一只宝可梦"
},
"SPLICE": {
"name": "无限融合",
"description": "使用基因之楔将两只宝可梦\n融合在一起"
},
"MINI_BLACK_HOLE": {
"name": "一大洞的道具",
"description": "获得一个迷你黑洞"
},
"CATCH_MYTHICAL": {
"name": "神秘礼物",
"description": "捕捉一只幻之宝可梦"
},
"CATCH_SUB_LEGENDARY": {
"name": "二级传说",
"description": "捕捉一只二级传说宝可梦"
},
"CATCH_LEGENDARY": {
"name": "传说",
"description": "捕捉一只传说宝可梦"
},
"SEE_SHINY": {
"name": "闪耀夺目",
"description": "在野外找到一只闪光宝可梦"
},
"SHINY_PARTY": {
"name": "呕心沥血",
"description": "拥有一支由闪光宝可梦组成\n的满员队伍"
},
"HATCH_MYTHICAL": {
"name": "幻兽蛋",
"description": "从蛋中孵化出一只幻之宝可梦"
},
"HATCH_SUB_LEGENDARY": {
"name": "二级传说蛋",
"description": "从蛋中孵化出一只二级传说\n宝可梦"
},
"HATCH_LEGENDARY": {
"name": "传说蛋",
"description": "从蛋中孵化出一只传说宝可梦"
},
"HATCH_SHINY": {
"name": "金色传说!",
"description": "从蛋中孵化出一只闪光宝可梦"
},
"HIDDEN_ABILITY": {
"name": "隐藏实力",
"description": "捕捉一只拥有隐藏特性\n的宝可梦"
},
"PERFECT_IVS": {
"name": "合格证",
"description": "获得一只拥有完美个体值\n的宝可梦"
},
"CLASSIC_VICTORY": {
"name": "战无不胜",
"description": "在经典模式中通关游戏"
},
"UNEVOLVED_CLASSIC_VICTORY": {
"name": "带孩上班",
"description": "通关经典模式时队伍中至少有\n一名未进化的宝可梦"
},
"MONO_GEN_ONE": {
"name": "最初的劲敌",
"description": "完成仅限第一世代的挑战"
},
"MONO_GEN_TWO": {
"name": "1.5世代",
"description": "完成仅限第二世代的挑战"
},
"MONO_GEN_THREE": {
"name": "“水太多了”",
"description": "完成仅限第三世代的挑战"
},
"MONO_GEN_FOUR": {
"name": "她真是最强冠军吗?",
"description": "完成仅限第四世代的挑战"
},
"MONO_GEN_FIVE": {
"name": "完全原创",
"description": "完成仅限第五世代的挑战"
},
"MONO_GEN_SIX": {
"name": "女大公",
"description": "完成仅限第六世代的挑战"
},
"MONO_GEN_SEVEN": {
"name": "首届冠军",
"description": "完成仅限第七世代的挑战"
},
"MONO_GEN_EIGHT": {
"name": "冠军时刻!",
"description": "完成仅限第八世代的挑战"
},
"MONO_GEN_NINE": {
"name": "她又放水了",
"description": "完成仅限第九世代的挑战"
},
"MonoType": {
"description": "完成 {{type}} 单属性挑战"
},
"MONO_NORMAL": {
"name": "异乎寻常的寻常"
},
"MONO_FIGHTING": {
"name": "我有真功夫"
},
"MONO_FLYING": {
"name": "愤怒的小鸟"
},
"MONO_POISON": {
"name": "关都地区特色"
},
"MONO_GROUND": {
"name": "地震预报"
},
"MONO_ROCK": {
"name": "坚如磐石"
},
"MONO_BUG": {
"name": "音箱蟀侠"
},
"MONO_GHOST": {
"name": "捉鬼敢死队"
},
"MONO_STEEL": {
"name": "铁巨人"
},
"MONO_FIRE": {
"name": "搓火球解决一切"
},
"MONO_WATER": {
"name": "当雨来临,倾盆而下"
},
"MONO_GRASS": {
"name": "别踏这个青"
},
"MONO_ELECTRIC": {
"name": "瞄准大岩蛇的角!"
},
"MONO_PSYCHIC": {
"name": "脑洞大开"
},
"MONO_ICE": {
"name": "如履薄冰"
},
"MONO_DRAGON": {
"name": "准神俱乐部"
},
"MONO_DARK": {
"name": "总有叛逆期"
},
"MONO_FAIRY": {
"name": "林克,醒醒!"
},
"FRESH_START": {
"name": "初次尝试!",
"description": "完成初次尝试挑战"
},
"INVERSE_BATTLE": {
"name": "镜子子镜",
"description": "完成逆转之战挑战\n战挑战之转逆成完"
},
"BREEDERS_IN_SPACE": {
"name": "饲养员上太空?",
"description": "在太空地图中击败精英饲养员。"
}
}