Skip to content
This repository has been archived by the owner on Jun 13, 2023. It is now read-only.

[i18n] add missing meteor package; improve error message #357

Merged
merged 1 commit into from
Apr 5, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/.meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ ethereum:web3
ethereum:blocks
ethereum:accounts
ethereum:dapp-styles
numeral:numeral
jrudio:bluebird
tap:i18n-bundler
numeral:numeral
numeral:languages
1 change: 1 addition & 0 deletions app/.meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ mongo@1.1.7
mongo-id@1.0.4
mrt:qrcodesvg@0.1.0
npm-mongo@1.4.43
numeral:languages@1.5.3
numeral:numeral@1.5.3_1
observe-sequence@1.0.11
ordered-dict@1.0.7
Expand Down
6 changes: 5 additions & 1 deletion app/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ Meteor.startup(function() {
if(_.isString(TAPi18n.getLanguage())) {
var lang = TAPi18n.getLanguage().substr(0,2);
moment.locale(lang);
numeral.language(lang);
try {
numeral.language(lang);
} catch (err) {
console.error(`numeral.js couldn't set number formating: ${err.message}`);
}
EthTools.setLocale(lang);
}

Expand Down