Files
Homarr/next-i18next.config.js
2023-10-31 09:18:57 +01:00

46 lines
742 B
JavaScript

const path = require('path');
module.exports = {
// https://www.i18next.com/overview/configuration-options#logging
i18n: {
defaultLocale: 'en',
locales: [
'en',
'cr',
'da',
'he',
'de',
'es',
'fr',
'it',
'ja',
'ko',
'lol',
'nl',
'pl',
'pt',
'ru',
'sl',
'sv',
'vi',
'uk',
'zh',
'zh-tw',
'el',
'sk',
'no',
'tr',
'lv',
'hr',
'hu'
],
localeDetection: false,
},
returnEmptyString: false,
appendNamespaceToCIMode: true,
reloadOnPrerender: process.env.NODE_ENV === 'development',
fallbackLng: 'en',
localePath: path.resolve('./public/locales'),
};