13 lines
427 B
JavaScript
13 lines
427 B
JavaScript
const path = require('path');
|
|
const supportedLngs = ['da', 'de', 'el', 'en', 'es', 'fr', 'hu', 'it', 'ja', 'pl', 'pt', 'ru', 'sv', 'tr', 'zh', 'ae'];
|
|
import themeConfig from 'theme.config';
|
|
export const ni18nConfig = {
|
|
fallbackLng: [themeConfig.locale || 'en'],
|
|
supportedLngs,
|
|
ns: ['translation'],
|
|
react: { useSuspense: false },
|
|
backend: {
|
|
loadPath: path.resolve(`/locales/{{lng}}.json`),
|
|
},
|
|
};
|