Browse Source

rewrite with CommonJS

Yuki Takei 1 year ago
parent
commit
cf83c86d99
1 changed files with 7 additions and 2 deletions
  1. 7 2
      apps/app/config/i18next.config.js

+ 7 - 2
apps/app/config/i18next.config.js

@@ -1,11 +1,16 @@
 const { Lang, AllLang } = require('@growi/core');
 
 /** @type {Lang} */
-export const defaultLang = Lang.en_US;
+const defaultLang = Lang.en_US;
 
 /** @type {import('i18next').InitOptions} */
-export const initOptions = {
+const initOptions = {
   fallbackLng: defaultLang.toString(),
   supportedLngs: AllLang,
   defaultNS: 'translation',
 };
+
+module.exports = {
+  defaultLang,
+  initOptions,
+};