restorando / angular-pickadate

A simple and fluid inline datepicker for AngularJS with no extra dependencies.
MIT License
273 stars 91 forks source link

to be language independent use symbols instead of terms #14

Closed didlich closed 10 years ago

didlich commented 10 years ago

a simple way to use the datepicker without a specific language assumption

gschammah commented 10 years ago

Hi @didlich, thanks for your contribution.

I just pushed to master a new version that allows you to configure the prev and next translations.

This is how you do it:

angular.module('testApp', ['pickadate'])

    .config(function(pickadateI18nProvider) {
        pickadateI18nProvider.translations = {
            prev: 'ant',
            next: 'sig'
        }
    });

Best, Gabriel

chmartinez commented 9 years ago

And what about dayNames or monthNames? How can we change them? Is there any examples of that? Thanks

UPDATE: Nevermind, I read the docs and solved my issue. Just add the appropriate i18n resource and that's it.