Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
feat(dependencies): update to messageformat 1.0.2
Browse files Browse the repository at this point in the history
Solves #1586
Solves #1644
  • Loading branch information
knalli committed Feb 6, 2017
1 parent 776993b commit d4a0468
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"angular-mocks": "~1.2.26",
"angular-cookies": "~1.2.26",
"angular-sanitize": "~1.2.26",
"messageformat": "~0.3.1"
"messageformat": "~1.0.2"
},
"resolutions": {
"angular": "~1.2.26"
Expand Down
9 changes: 3 additions & 6 deletions test/unit/service/messageformat-interpolation.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ describe('pascalprecht.translate', function () {
it('should support PluralFormat - offset extension', function () {
expect($translateMessageFormatInterpolation.interpolate(
'You {NUM_ADDS, plural, offset:1' +
'=0{didnt add this to your profile}' + // Number literals, with a `=` do **NOT** use
'zero{added this to your profile}' + // the offset value
'=0{didnt add this to your profile}' +
'one{and one other person added this to their profile}' +
'other{and # others added this to their profiles}' +
'}.',
Expand All @@ -109,8 +108,7 @@ describe('pascalprecht.translate', function () {

expect($translateMessageFormatInterpolation.interpolate(
'You {NUM_ADDS, plural, offset:1' +
'=0{didnt add this to your profile}' + // Number literals, with a `=` do **NOT** use
'zero{added this to your profile}' + // the offset value
'=0{didnt add this to your profile}' +
'one{and one other person added this to their profile}' +
'other{and # others added this to their profiles}' +
'}.',
Expand All @@ -120,8 +118,7 @@ describe('pascalprecht.translate', function () {

expect($translateMessageFormatInterpolation.interpolate(
'You {NUM_ADDS, plural, offset:1' +
'=0{didnt add this to your profile}' + // Number literals, with a `=` do **NOT** use
'zero{added this to your profile}' + // the offset value
'=0{didnt add this to your profile}' +
'one{and one other person added this to their profile}' +
'other{and # others added this to their profiles}' +
'}.',
Expand Down
3 changes: 1 addition & 2 deletions test/unit/service/translate.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1731,8 +1731,7 @@ describe('pascalprecht.translate', function () {
'SELECT_FORMAT': '{GENDER, select, male{He} female{She} other{They}} liked this.',
'PLURAL_FORMAT': 'There {NUM_RESULTS, plural, one{is one result} other{are # results}}.',
'PLURAL_FORMAT_OFFSET': 'You {NUM_ADDS, plural, offset:1' +
'=0{didnt add this to your profile}' + // Number literals, with a `=` do **NOT** use
'zero{added this to your profile}' + // the offset value
'=0{didnt add this to your profile}' +
'one{and one other person added this to their profile}' +
'other{and # others added this to their profiles}' +
'}.'
Expand Down
2 changes: 1 addition & 1 deletion test_scopes/angular_1.2.x/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"angular-mocks": "~1.2.0",
"angular-cookies": "~1.2.0",
"angular-sanitize": "~1.2.0",
"messageformat": "~0.3.1"
"messageformat": "~1.0.2"
},
"resolutions": {
"angular": "~1.2.0"
Expand Down
2 changes: 1 addition & 1 deletion test_scopes/angular_1.3.x/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"angular-mocks": "~1.3.0",
"angular-cookies": "~1.3.0",
"angular-sanitize": "~1.3.0",
"messageformat": "~0.3.1"
"messageformat": "~1.0.2"
},
"resolutions": {
"angular": "~1.3.0"
Expand Down
2 changes: 1 addition & 1 deletion test_scopes/angular_1.4.x/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"angular-mocks": "~1.4.0",
"angular-cookies": "~1.4.0",
"angular-sanitize": "~1.4.0",
"messageformat": "~0.3.1"
"messageformat": "~1.0.2"
},
"resolutions": {
"angular": "~1.4.0"
Expand Down
2 changes: 1 addition & 1 deletion test_scopes/angular_1.5.x/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"angular-mocks": "~1.5.0",
"angular-cookies": "~1.5.0",
"angular-sanitize": "~1.5.0",
"messageformat": "~0.3.1"
"messageformat": "~1.0.2"
},
"resolutions": {
"angular": "~1.5.0"
Expand Down
2 changes: 1 addition & 1 deletion test_scopes/angular_1.6.x/bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"angular-mocks": "~1.6.0",
"angular-cookies": "~1.6.0",
"angular-sanitize": "~1.6.0",
"messageformat": "~0.3.1"
"messageformat": "~1.0.2"
},
"resolutions": {
"angular": "~1.6.0"
Expand Down

0 comments on commit d4a0468

Please sign in to comment.