Internationalize Time
This release adds changes so that the time and time elapsed that is displayed on transaction notifications will now be internationalized along with transaction messages. The time and time elapsed numbers will be automatically set to the locale of the clientLocale
value that is set automatically when the app loads or when it is set via initialization or via the config
function.
You can also internationalize the time elapsed units by passing in a time
object as part of the notifyMessages
object:
notify.config({
notifyMessages: {
'es': {
time: {
seconds: 'TRANSLATED_SEC', // default 'sec'
minutes: 'TRANSLATED_MIN' // default 'min'
}
}
}
})
Changelog: