t-baby / jquery.i18n Goto Github PK
View Code? Open in Web Editor NEWA lightweight, internationalization (i18n) plugin based on jQuery.
License: Apache License 2.0
A lightweight, internationalization (i18n) plugin based on jQuery.
License: Apache License 2.0
就是webpack+jq+bootstrap+jquery.i18n使用的例子
本来想改您的代码,后来试了下动态调用Init函数也可以起到切换语言的效果
有的时候,比如在一些动态生成dialog的时候,没法用<i18n="">这种格式,于是在(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) first");
};
请问如果翻译bootstrap弹框
克隆后 源码里面的 demo 不能正常使用
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.