Comments (1)
// Load version strings for each language
$.i18n().load({
"en": $.extend(true, {}, version), // Create a new object for "en"
"nl": $.extend(true, {}, version), // Create a new object for "nl"
});
I think this will solve the following issue becuase it will create a deep copy of the version object for each language, preventing the original version object from being modified during the loading process. This way, each language will have its own distinct set of strings.
from jquery.i18n.
Related Issues (20)
- Comma at the end of translations file causes strange behaviour HOT 3
- Implement {{int:}} magic word
- Cannot get data-i18n to work
- Tool to convert from .po to banana file? HOT 4
- data-i18n change multiple attributes HOT 3
- Could you update jquery.i18n.parser.js on line 33 for $ problem HOT 4
- Load whole directory structure. HOT 1
- None existing key is replaced with the key name instead of the fallback text! HOT 4
- Number formatting HOT 2
- Merge multiple keys HOT 1
- How to load multiple json files in a .html file? HOT 1
- Failed in opening demo index page due to Chrome CORS policy. HOT 2
- New release? HOT 9
- Qunit upgrade causes tests to fail
- the `load` function does not fail the promise correctly HOT 1
- libs/CLDRPluralRuleParser missing from 1.0.8 package HOT 1
- Yo
- Misdafatma Alza Astrafiyah HOT 2
- How can I translate strings dynamically? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jquery.i18n.