Add Omorphia locale files loading (#1447)

Implements loading of all locale files shipped with Omorphia package by
globbing and registering them during the `vintl:extendOptions` hook.

Also updated VIntl for Nuxt to ensure those files are properly loaded.
Previous version of VIntl for Nuxt had a somewhat broken module ID
tracking, preventing Omorphia locale files to be properly transformed
during the build; at least on systems like Windows, don't know about
*nix. The tracking approach was replaced in 1.8.0, and it seems to be
working now.
This commit is contained in:
Sasha Sorokin
2023-12-05 13:48:12 +11:00
committed by GitHub
parent accc53c5dd
commit 6d70ced93a
3 changed files with 221 additions and 469 deletions

View File

@@ -21,7 +21,7 @@
"@typescript-eslint/parser": "^5.59.8",
"@vintl/compact-number": "^2.0.5",
"@vintl/how-ago": "^3.0.1",
"@vintl/nuxt": "^1.7.0",
"@vintl/nuxt": "^1.8.0",
"eslint": "^8.41.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.5.5",