Open CurlyBraceTT opened 7 years ago
When setting non-exising locale (I set up 'idontexist') picker is not working. I understand, that it could be desireble behavior, but I don't have any ways to check if picker has a locale translate for my language. Tuned translate function a little:
var translate = function(locale, s) { if (typeof lang[locale] !== "undefined" && typeof lang[locale][s] !== "undefined"){ return lang[locale][s]; } return lang.en[s]; };
When setting non-exising locale (I set up 'idontexist') picker is not working. I understand, that it could be desireble behavior, but I don't have any ways to check if picker has a locale translate for my language. Tuned translate function a little: