Files
Homarr/next-i18next.config.js
Thomas Camlong 85beb7fe43 Merge pull request #697 from ajnart/add-norwegian-slovak
🌐 Add Norwegian and Slovak
2023-02-11 08:38:35 +09:00

39 lines
690 B
JavaScript

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