alenaksu / mdPickers

Material Design date/time pickers for Angular Material
MIT License
293 stars 216 forks source link

i18n [DISPLAY_FORMAT, LABEL_OK, LABEL_CANCEL] #164

Open FlorianBurgevin opened 7 years ago

FlorianBurgevin commented 7 years ago

Hello,

I want to translate my application dynamically with angular-translate

In provider, we can init "Strings" for DISPLAY_FORMAT,LABEL_OK, LABEL_CANCEL. with $mdpDatePickerProvider.setDisplayFormat('DD/MM/YYYY');

My question is how can I use angular-translate to replace those texts? The above line is used in .config of my module so I can't call $translate.

Do you have any solution?

Thanks