thesmythgroup / vue-toolkit

Completely style-able, fully accessible UI components, built with Vue.
https://thesmythgroup.github.io/vue-toolkit/
MIT License
2 stars 1 forks source link

I18n #3

Open justinlettau opened 3 years ago

justinlettau commented 3 years ago

Describe the Feature

Allow apps to configure the strings used in components. This solution should be agnostic of what (if any) library the apps are using for i18n support.

Suggested Solution

Possibly use module options to pass an object of strings? Something like:

Vue.use(Common, {
  i18n: {
    'paginator.next': 'Next',
    'paginator.prev': 'Previous',
  }
});

Other Information

n/a