jquery.i18n
jquery.i18n copied to clipboard
A lightweight, internationalization (i18n) plugin based on jQuery.
请问如果翻译bootstrap弹框
就是webpack+jq+bootstrap+jquery.i18n使用的例子
有的时候,比如在一些动态生成dialog的时候,没法用这种格式,于是在(function ($) {})里加了一个函数,另外把i18nLang这个变量提到了函数外面方便i18nGet(key)调用。 ``` $.i18nGet = function (key) { if (i18nLang != {}) { if (i18nLang.hasOwnProperty(key)) return i18nLang[key]; else throw new Error("Key not exist"); } else throw new Error("Call i18n(option)...
I want to get the translated value and use the value for 'title' tag, js notice information, how can I use jquery.i1yn to realize it? Thank you!