Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-existing locale error #190

Open
CurlyBraceTT opened this issue Mar 28, 2017 · 0 comments
Open

Non-existing locale error #190

CurlyBraceTT opened this issue Mar 28, 2017 · 0 comments

Comments

@CurlyBraceTT
Copy link

CurlyBraceTT commented Mar 28, 2017

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];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant