/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2025-2025. All rights reserved.
 */

import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import { exampleEn, exampleZh } from './Example';
import en from './en.json';
import zh from './zh.json';

const resources = {
    enUS: {
        ...en,
        ...exampleEn,
    },
    zhCN: {
        ...zh,
        ...exampleZh,
    }
};

i18n.use(initReactI18next).init({
    resources,
    lng: 'enUS',
    interpolation: {
        escapeValue: false,
    },
});

export default i18n;