Translate messages emited by the other modules.
config.translations
is an object in the following format:
Example:
{
"I am.": "Je suis.",
"You are.": {
"fr": "Tu es.",
"ro": "Tu ești."
},
...
}
config.translates
is an array of miids that emit the message
event.
config.translations
is an array of objects in the following format:
Example:
[
{
"old": "I am.",
"new": "Je suis."
},
{
"old": "You are.",
"new": {
"fr": "Tu es.",
"ro": "Tu ești."
}
},
...
]
config.listen
is an array of miids that emit the message
event.
- transferred the module to the new jxMono organization
- updated Bind to
v0.4.0
, Events tov0.4.0
- Updated deps
- Updated to Events v0.1.8 and Bind v0.2.1
- Update to Bind
v0.1.7
- We don't accept JSON booleans, numbers and so on, but only objects.
- Dynamically add miids to listen to using
listenTo
function.
- Update to Bind
v0.2.0
- Update to Events
v0.1.4
and Bindv0.1.5
- Fixed translating of messages that are not in
config.translations
.
- Update to Events
v0.1.3
and Bindv0.1.3
- Renamed
main.js
intoi18n.js
- New format of
config.translations
: object instead of array - Renamed
config.listen
intoconfig.translates
to prevent overwriting of Events configuration (that usesconfig.listen
).
- Replace
config.translations
array with an object, like described in How to use section - Replace
config.listen
withconfig.translates
- Fixed translating strings.
- Initial release