Skip to content

Internationalize Time

Compare
Choose a tag to compare
@lnbc1QWFyb24 lnbc1QWFyb24 released this 30 Jul 03:47
· 123 commits to master since this release
7781629

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:

  • Enhancement: Convert to new svelte-typescript template (#146)
  • Enhancement: Internationalize time (#148)
  • Enhancement: Update svelte files (#149)
  • Fix: Update validation (#150)
  • Fix: Exported types(#151)