UNPKG

next-i18next

Version:

The easiest way to translate your NextJs apps.

56 lines (51 loc) 1.37 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultConfig = void 0; var _utils = require("../utils"); var DEFAULT_LANGUAGE = 'en'; var OTHER_LANGUAGES = []; var DEFAULT_NAMESPACE = 'common'; var LOCALE_PATH = '/public/static/locales'; var LOCALE_STRUCTURE = '{{lng}}/{{ns}}'; var LOCALE_EXTENSION = 'json'; var defaultConfig = { defaultLanguage: DEFAULT_LANGUAGE, otherLanguages: OTHER_LANGUAGES, load: 'currentOnly', localePath: LOCALE_PATH, localeStructure: LOCALE_STRUCTURE, localeExtension: LOCALE_EXTENSION, localeSubpaths: {}, use: [], defaultNS: DEFAULT_NAMESPACE, interpolation: { escapeValue: false, formatSeparator: ',', format: function format(value, _format) { return _format === 'uppercase' ? value.toUpperCase() : value; } }, browserLanguageDetection: true, serverLanguageDetection: true, ignoreRoutes: ['/_next/', '/static/', '/public/', '/api/'], customDetectors: [], detection: { caches: ['cookie'], cookieSameSite: 'strict', lookupCookie: 'next-i18next', order: ['cookie', 'header', 'querystring'] }, react: { wait: true, useSuspense: false }, strictMode: true, errorStackTraceLimit: 0, shallowRender: false, get initImmediate() { return !(0, _utils.isServer)(); } }; exports.defaultConfig = defaultConfig;