pokerogue/src/enums
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
..
abilities.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
arena-tag-type.ts [Move] Fully Implement Plasma Fists (#4446) 2024-09-29 22:30:33 -04:00
battle-spec.ts Re-implement UI reskin with working legacy toggle 2024-03-31 21:14:35 -04:00
battle-style.ts [Refactor] Move enum BattleStyle into separated file (#1906) 2024-06-13 10:10:31 -04:00
battler-tag-type.ts [Move] Fully Implement Syrup Bomb (#4441) 2024-09-29 21:50:11 -04:00
berry-type.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
biome.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
buttons.ts Adds a Small Flyout Panel to the Battle Info Object (#1377) 2024-05-29 20:29:59 -04:00
challenges.ts [Challenge] Inverse battle challenge (#3525) 2024-08-29 19:59:33 +01:00
color.ts [UI] Update Challenge UI (#2393) 2024-06-19 20:40:08 +01:00
devices.ts Menu - Controls Rebind - Gamepad & Keyboard (Cleaner git log) (#1666) 2024-06-01 13:56:32 +01:00
ease-type.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
egg-source-types.ts [Feature] [Same species Egg] Egg class rewrite to enable fully parameterized eggs to generate same species eggs + Egg overrides (#1833) 2024-06-21 20:19:56 -04:00
egg-type.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
encounter-anims.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
exp-gains-speed.ts [Bug] Fix exp gains speed not applying properly (#4243) 2024-09-14 12:35:46 -04:00
exp-notification.ts [Refactor] Move enum ExpNotification into separated file (#1909) 2024-06-07 13:14:52 -04:00
gacha-types.ts [Feature] [Same species Egg] Egg class rewrite to enable fully parameterized eggs to generate same species eggs + Egg overrides (#1833) 2024-06-21 20:19:56 -04:00
game-data-type.ts [QoL][Feature] Hall of Fame + Run History (#3251) 2024-08-23 19:23:16 +01:00
money-format.ts Add setting to change money format (#1261) 2024-05-27 22:58:33 -04:00
moves.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
mystery-encounter-mode.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
mystery-encounter-option-mode.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
mystery-encounter-tier.ts [Feature] Add Mystery Encounters to the game (#3938) 2024-09-14 03:05:58 +01:00
mystery-encounter-type.ts [Feature] Adds Expert Pokemon Breeder Mystery Encounter to the game (#4328) 2024-09-19 22:46:27 +02:00
nature.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00
party-member-strength.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
passive.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
player-gender.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
pokeball.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00
pokemon-anim-type.ts [Move] Implement Substitute (#2559) 2024-09-13 12:46:22 -04:00
shop-cursor-target.ts [P1 Bug][UI/UX] Address shop cursor target feedbacks (#4009) 2024-09-04 01:07:56 +00:00
species-form-key.ts [Qol][Refactor] i18n lazy-loading (#4327) 2024-10-01 21:55:16 +01:00
species.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
stat.ts [Refactor/Bug/Move] Overhaul Stats and Battle Items, Implement Several Stat Moves (#2699) 2024-09-02 22:12:34 -04:00
status-effect.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00
switch-type.ts [Move] Implement Shed Tail (#4382) 2024-09-25 17:17:46 -07:00
time-of-day.ts [QoL] Reorganize Enum Locations (#2185) 2024-06-13 18:44:23 -04:00
trainer-type.ts [Enhancement] Add Team Star as potential evil team (#4019) 2024-09-20 18:17:44 -07:00
ui-theme.ts ESLint - The Essential Linter and Formatter for JavaScript and TypeScript (#1224) 2024-05-23 11:03:10 -04:00
variant-tier.ts [QOL] UI Improvement - Shiny Icon (#2372) 2024-06-25 13:48:48 -04:00
weather-type.ts Beta Merge 27/07 (#3141) 2024-07-28 00:47:00 +01:00