Files
Homarr/next-i18next.config.js

36 lines
615 B
JavaScript
Raw Normal View History

2023-01-18 17:54:18 +09:00
const path = require('path');
2022-08-22 09:50:54 +02:00
module.exports = {
// https://www.i18next.com/overview/configuration-options#logging
i18n: {
defaultLocale: 'en',
locales: [
'en',
2022-10-24 20:16:11 +09:00
'da',
'he',
'de',
'es',
'fr',
'it',
'ja',
'ko',
'lol',
'nl',
'pl',
'pt',
'ru',
'sl',
'sv',
'vi',
'uk',
2022-09-16 09:36:13 +09:00
'zh',
2023-01-23 01:47:13 +09:00
'el',
],
2023-01-18 17:54:18 +09:00
localePath: path.resolve('./public/locales'),
2022-08-28 16:28:17 +02:00
fallbackLng: 'en',
2022-08-24 17:58:14 +02:00
localeDetection: true,
returnEmptyString: false,
2022-08-22 09:50:54 +02:00
},
reloadOnPrerender: process.env.NODE_ENV === 'development',
};