UserDashboard/ni18n.config.ts.js
2025-02-21 19:54:48 +08:00

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`),
},
};