"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const utils_1 = require("../utils");
const DEFAULT_LANGUAGE = 'en';
const OTHER_LANGUAGES = [];
const DEFAULT_NAMESPACE = 'common';
const LOCALE_PATH = 'public/static/locales';
const LOCALE_STRUCTURE = '{{lng}}/{{ns}}';
const LOCALE_EXTENSION = 'json';
exports.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: (value, format) => (format === 'uppercase' ? value.toUpperCase() : value)
    },
    browserLanguageDetection: true,
    serverLanguageDetection: true,
    ignoreRoutes: ['/_next/', '/static/', '/public/', '/api/'],
    customDetectors: [],
    detection: {
        lookupCookie: 'next-i18next',
        order: ['cookie', 'header', 'querystring'],
        caches: ['cookie']
    },
    react: {
        wait: true,
        useSuspense: false
    },
    strictMode: true,
    errorStackTraceLimit: 0,
    shallowRender: false,
    get initImmediate() {
        return !utils_1.isServer();
    }
};
