【问题标题】:How to translate html page using the plugin i18next?如何使用插件 i18next 翻译 html 页面?
【发布时间】:2016-04-01 18:08:39
【问题描述】:

我看到了示例页面How to use i18next? Problems with translations

但是在这段代码之后,我在控制台出现错误:未捕获的 ReferenceError: i18n is not defined

为什么???我在哪里可以下载 i18next.js 来转换 html 页面?

【问题讨论】:

    标签: i18next


    【解决方案1】:

    From the official site: 有两种可能性:使用repository 中的npm 安装它,或者

    https://github.com/i18next/i18next/blob/master/i18next.min.js

    【讨论】:

      【解决方案2】:

      在库的 2.x 版中,i18n 已被 i18next 替换,并且 API 发生了很大变化。

      【讨论】:

        猜你喜欢
        • 2016-04-24
        • 2021-06-06
        • 2012-10-11
        • 1970-01-01
        • 1970-01-01
        • 2013-04-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多