coderifous / jquery-localize

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

Update jquery.localize.coffee #51

Closed fffw closed 8 years ago

fffw commented 9 years ago

Add a checking so that if language is en-US and en.json doesn't exist, it can still find en-US.json

coderifous commented 8 years ago

This change breaks the test suite. I'm also not sure this is a use-case I endorse. The region language packs are meant to be refinements on the higher level ones.

For PR merge, please address test suite and explain context for why this use pattern is a thing people should be doing.