Add UI module translations to Modrinth App#5489
Add UI module translations to Modrinth App#5489Jerozgen wants to merge 3 commits intomodrinth:mainfrom
Conversation
|
Hi, in your PRs, are you using the |
|
Yea, I use |
|
The prepr actually fails on |
|
Would you mind quickly fixing that in another PR? Set it to |
|
|
||
| export const uiLocaleModulesEager = import.meta.glob<{ default: CrowdinMessages }>( | ||
| './locales/*/index.json', | ||
| { eager: true }, |
There was a problem hiding this comment.
This damages performance, should not be using eager at all :)
There was a problem hiding this comment.
The eager: true is used on the app-frontend module translations, so I've also used it on the ui translations. For the website, the ui translations are still loaded with eager: false
Do you want me to rewrite it in a similar way to the website i18n context injection?
No description provided.