Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anykeyh/simple-i18n-javascript
Very simple internationalization system for javascript.
https://github.com/anykeyh/simple-i18n-javascript
Last synced: 11 days ago
JSON representation
Very simple internationalization system for javascript.
- Host: GitHub
- URL: https://github.com/anykeyh/simple-i18n-javascript
- Owner: anykeyh
- Created: 2015-05-12T05:04:01.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-12T05:10:21.000Z (over 9 years ago)
- Last Synced: 2024-10-25T01:31:41.619Z (about 2 months ago)
- Language: CoffeeScript
- Size: 129 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simple-i18n-javascript
Very simple internationalization system for javascript.```javascript
//Set a key:
I18n.add {
fr: {
path: {
to: {
key: "Hello :)"
}
}
}
}//Set a locale (default=en)
I18n.locale = 'fr'//Get a key
I18n("path.to.key")//With default value:
I18n("path.to.otherkey", "not found")```
Yeah that's simple.
# TODO:
Adding the cultural stuff (ex: en-UK / en-US )