rkit / react-select2-wrapper

Wrapper for Select2
MIT License
163 stars 97 forks source link

How to dynamically load translations? #64

Closed mfdolarea closed 7 years ago

mfdolarea commented 7 years ago

Which is the proper way to apply a different translation file (eg: i18n/es.js) ?

rkit commented 7 years ago

As for as I know, you should include the translation (import 'select2/dist/js/i18n/es) and to change language through options.language

mfdolarea commented 7 years ago

Yep, that's it! Thanks

fsabreu commented 6 years ago

@rkit I'm with same problema. Can you give an example?

Thanks