Skip to content

Commit

Permalink
Merge pull request #32 from filib/issue-31
Browse files Browse the repository at this point in the history
Replace hyphens with underscores in locale var from DOM
  • Loading branch information
tboerger committed Jun 3, 2016
2 parents 8e8aabe + 3d88df8 commit 363f9ae
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/assets/javascripts/gettext/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
return;
}

locale = locale.replace(/-/g, "_");

var i18n = new Jed(locales[locale] || {});

window.__ = function() {
Expand Down

0 comments on commit 363f9ae

Please sign in to comment.