nehakadam / AnyPicker

jQuery Picker Library for Android, iOS & Windows Phone. eg Date Picker, Time Picker, DateTime Picker, Custom Select etc
https://nehakadam.github.io/AnyPicker/
MIT License
116 stars 37 forks source link

How I can use only one language? #3

Closed 1304654 closed 8 years ago

1304654 commented 8 years ago

There is a possibility only use one i18n eg de-DE against downloading all languages? eg;

$("#ip-de").AnyPicker( { mode: "datetime", dateTimeFormat: "MMM dd, yyyy", lang: "de-DE", onInit: function()

Because it does not work.

nehakadam commented 8 years ago

You can use "dist/i18n/anypicker-i18n-de.js" to include only "de" language and set

$("#ip-de").AnyPicker(
{
    mode: "datetime",
    dateTimeFormat: "MMM dd, yyyy",
    lang: "de",
});
1304654 commented 8 years ago

There is the possibility of adding cultures?

nehakadam commented 8 years ago

Do you want to add language variation based on culture? For example, in AnyPicker there is Austrian German as "de-at". So you can add a variation and you can even change name of language in i18n files. So you can add any string as per cultural variation. Replace "de"in "anypicker-i18n-de.js" with a string you want and use the same string in plugin initialization.