Skip to content

Commit

Permalink
Bugfix, the moment locale filename is lowercase
Browse files Browse the repository at this point in the history
For example, TAPi18n.getLanguage() return "zh-CN" for Chinese, while the moment locale filename is zh-cn.js
  • Loading branch information
floatinghotpot committed Nov 26, 2015
1 parent 7c29eec commit 8ae9dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meteor/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if (Package['tap:i18n']) {
Meteor.startup(function() {
Tracker.autorun(function() {
var language = TAPi18n.getLanguage();
var localePath = 'packages/mquandalle_moment/locale/' + language + '.js';
var localePath = 'packages/mquandalle_moment/locale/' + language.toLowerCase() + '.js';
if (alreadyLoadedLanguages.indexOf(language) === -1) {
$.ajax({
url: Meteor.absoluteUrl(localePath),
Expand Down

0 comments on commit 8ae9dd8

Please sign in to comment.