coderifous / jquery-localize

a jQuery plugin that makes it easy to internationalize your web site.
465 stars 142 forks source link

Fix issue #47 #88

Closed oSoMoN closed 8 years ago

oSoMoN commented 8 years ago

When a language-country code was requested, do not fail early if the language only file doesn't exist.

As an example, "zh-CN" is a valid code, but "zh" alone isn’t, as there’s no generic Chinese.

oSoMoN commented 8 years ago

Note: the approach is slightly different from https://github.com/coderifous/jquery-localize/pull/48, although it aims at fixing the same issue.

coderifous commented 8 years ago

Thanks for contributing, @oSoMoN