Add UI module translations to Modrinth App (#5489)
* Add UI module translations to Modrinth App * Replace `await` with `eager: true` --------- Co-authored-by: Calum H. <calum@modrinth.com>
This commit is contained in:
6
packages/ui/src/locales.eager.ts
Normal file
6
packages/ui/src/locales.eager.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { CrowdinMessages } from './composables/i18n'
|
||||
|
||||
export const uiLocaleModulesEager = import.meta.glob<{ default: CrowdinMessages }>(
|
||||
'./locales/*/index.json',
|
||||
{ eager: true },
|
||||
)
|
||||
Reference in New Issue
Block a user