mirror of
https://github.com/perfect-panel/ppanel-web.git
synced 2026-02-14 20:31:10 -05:00
🐛 fix(locales): Removed language file import to clean up unnecessary language support
This commit is contained in:
parent
ca642c2001
commit
68f6ab2e6c
@ -10,7 +10,6 @@ export default getRequestConfig(async () => {
|
|||||||
const locale = cookieLocale || defaultLocale || NEXT_PUBLIC_DEFAULT_LANGUAGE;
|
const locale = cookieLocale || defaultLocale || NEXT_PUBLIC_DEFAULT_LANGUAGE;
|
||||||
|
|
||||||
const messages = {
|
const messages = {
|
||||||
'language': (await import(`./${locale}/language.json`)).default,
|
|
||||||
'menu': (await import(`./${locale}/menu.json`)).default,
|
'menu': (await import(`./${locale}/menu.json`)).default,
|
||||||
'auth': (await import(`./${locale}/auth.json`)).default,
|
'auth': (await import(`./${locale}/auth.json`)).default,
|
||||||
'common': (await import(`./${locale}/common.json`)).default,
|
'common': (await import(`./${locale}/common.json`)).default,
|
||||||
|
|||||||
@ -10,7 +10,6 @@ export default getRequestConfig(async () => {
|
|||||||
const locale = cookieLocale || defaultLocale || NEXT_PUBLIC_DEFAULT_LANGUAGE;
|
const locale = cookieLocale || defaultLocale || NEXT_PUBLIC_DEFAULT_LANGUAGE;
|
||||||
|
|
||||||
const messages = {
|
const messages = {
|
||||||
language: (await import(`./${locale}/language.json`)).default,
|
|
||||||
menu: (await import(`./${locale}/menu.json`)).default,
|
menu: (await import(`./${locale}/menu.json`)).default,
|
||||||
auth: (await import(`./${locale}/auth.json`)).default,
|
auth: (await import(`./${locale}/auth.json`)).default,
|
||||||
common: (await import(`./${locale}/common.json`)).default,
|
common: (await import(`./${locale}/common.json`)).default,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user