小编sas*_*arn的帖子

i18next::pluralResolver:您的环境似乎与 Intl API 不兼容,请使用 Intl.PluralRules 填充

请帮我。

错误 -

i18next::pluralResolver:您的环境似乎与 Intl API 不兼容,请使用 Intl.PluralRules 填充。将回退到兼容性JSON v3 格式处理

代码 -

    import i18n from "i18next";
    import english from './englist.json';
    import thai from './thai.json';
    import { initReactI18next } from "react-i18next";
    i18n.use(initReactI18next).init({
        lng:'th',
        fallbackLng: 'en',
        resources:{
            en:english,
            th:thai
        },
        interpolation: {
            escapeValue: false 
        },
        react:{
            useSuspense:false,
        }
    });
    export default i18n;
Run Code Online (Sandbox Code Playgroud)

i18next react-native

62
推荐指数
2
解决办法
3万
查看次数

标签 统计

i18next ×1

react-native ×1