Envoc / envoc.directives

7 stars 1 forks source link

Feat language config #17

Closed justinobney closed 9 years ago

justinobney commented 9 years ago

In: Config

module.config(function(oTableConfigProvider) {
  oTableConfigProvider.addLangConfig('fr', {
    show: 'Le Show',
    entries: 'Le entries',
    nextText: 'Le Next',
    previousText: 'Le Previous'
  })
})

in: run

module.run(function(oTableConfig) {
  oTableConfig.addLangConfig('fr', {
    show: 'Le Show',
    entries: 'Le entries',
    nextText: 'Le Next',
    previousText: 'Le Previous'
  })
})

in controller

vm.oTable.setLang(sessionService.user.prefs.language);