Yuki Takei 3 лет назад
Родитель
Сommit
9e11f9ea48
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      packages/app/src/next-i18next.config.ts

+ 3 - 0
packages/app/src/next-i18next.config.ts

@@ -1,3 +1,5 @@
+import path from 'path';
+
 import I18nextChainedBackend from 'i18next-chained-backend';
 import I18nextChainedBackend from 'i18next-chained-backend';
 import I18nextBrowserLanguageDetector from 'i18next-browser-languagedetector';
 import I18nextBrowserLanguageDetector from 'i18next-browser-languagedetector';
 import I18NextHttpBackend from 'i18next-http-backend';
 import I18NextHttpBackend from 'i18next-http-backend';
@@ -11,6 +13,7 @@ export const
     locales: ['en_US', 'ja_JP', 'zh_CN'],
     locales: ['en_US', 'ja_JP', 'zh_CN'],
   };
   };
 export const defaultNS = 'translation';
 export const defaultNS = 'translation';
+export const localePath = path.resolve('./public/static/locales');
 
 
 export const serializeConfig = false;
 export const serializeConfig = false;
 export const use = isServer ? [] : [I18nextChainedBackend];
 export const use = isServer ? [] : [I18nextChainedBackend];