commit 6ac5152575ab4597ff968e1732a1db600314c333
parent e5fbcb0ea8263bac1f635874e9a80a46bc93a6af
Author: triesap <tyson@radroots.org>
Date: Thu, 11 Jun 2026 15:14:09 -0700
i18n: load locale messages from lib workspace
- update the message loader path from packages/locales to lib/locales
- align dynamic imports with the current radroots-web submodule layout
- keep JSON message loading local to the mounted locales package
- verify app check, build, and dev server startup through radroots_scripts
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/src/lib/utils/i18n.ts b/app/src/lib/utils/i18n.ts
@@ -13,7 +13,7 @@ const i18n = i18n_conf<Locale>({
...locale_keys.map((locale) => [`common`, `countries`, `error`, `eula`, `icu`, `notification`, `products`, `units`].map(key => ({
locale,
key,
- loader: async () => (await import(`../../../../packages/locales/src/messages/${locale}/${key}.json`)).default
+ loader: async () => (await import(`../../../../lib/locales/src/messages/${locale}/${key}.json`)).default
}))),
].flat()
});