pokerogue/public
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
..
audio [Enhancement] Add Team Star as potential evil team (#4019) 2024-09-20 18:17:44 -07:00
battle-anims [Bug][Move] Clanging Scales animation on incorrect sprite (#4290) 2024-09-17 15:58:49 +01:00
fonts [Localization] Update pkmnems font (#4329) 2024-09-19 15:13:37 -04:00
images [Beta][Bug] Major/minor ME bug fixes (#4451) 2024-09-26 18:43:28 -04:00
locales [Qol][Refactor] i18n lazy-loading (#4327) 2024-10-01 21:55:16 +01:00
.gitkeep Initial commit 2023-03-28 14:54:52 -04:00
exp-sprites.json [Sprite][Color][Anim] Various Pokemon Sprite Fixes (#4346) 2024-09-25 22:29:34 -04:00
logo128.png Fix PWA setup 2024-04-12 19:42:17 -04:00
logo512.png Fix PWA setup 2024-04-12 19:42:17 -04:00
manifest.webmanifest Prevent Fusion Status Errors +Fix Double Battle Issue (#472) 2024-05-04 22:16:59 -05:00
service-worker.js Move service-worker to public folder 2024-05-02 11:37:06 -04:00
starter-colors.json Add candy system for passives and value reductions 2024-04-13 18:59:58 -04:00
update-source-comments.py [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00