-
Notifications
You must be signed in to change notification settings - Fork 7
Add globalization #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@slnode test please |
lib/phase-list.js
Outdated
|
|
||
| if(!phase.__isPhase__) { | ||
| throw new Error('Cannot add a non phase object to a PhaseList'); | ||
| throw new Error(g.t('Cannot add a non phase object to a PhaseList')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add {{}} for {{PhaseList}}
package.json
Outdated
| "async": "^0.9.0", | ||
| "debug": "^2.1.0" | ||
| "debug": "^2.1.0", | ||
| "strong-globalize": "^2.5.5" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2.5.6 fixed the swagger-client bug you were seeing yesterday
|
@0candy Updated, review again pls. |
lib/phase-list.js
Outdated
|
|
||
| if(!phase.__isPhase__) { | ||
| throw new Error('Cannot add a non phase object to a PhaseList'); | ||
| throw new Error(g.t('Cannot add a non phase object to a {{PhaseList}}')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have to run slt-globalize -e again for intl/en/messages.json to get updated with the brackets change.
|
@0candy Updated, PTAL again. |
|
The change itself LGTM. So please don't merge yet. |
|
Please fix this too: strongloop/loopback-component-push#118 (comment) |
|
@slnode test please |
|
@0candy the strong-globalize problem has been resolved. This PR is now failing on one of the tests, which looks like it needs to be updated to accept the translated string: |
|
@superkhau Please fix the line that @rmg pointed out. Thanks. |
817b3fa to
bcf77a4
Compare
|
@gunjpan @richardpringle PTAL, updated with latest conventions. |
|
@rmg Tons of unrelated failures in this PR. Can you provide some insight? It seems like some NPM registry doesn't contain |
|
@slnode test please |
|
@superkhau they look like they are probably related to high load. Looking at the file dump from the ephemeral registry they were using, there were 6 partial copies of loopback mid-cache, so I think it just sort of choked on all the downstream jobs running at the same time. On the upside, if you look at the |
👍 That's a definition plus as the ones actually failing are unrelated and the ones I care about are passing on |
lib/phase-list.js
Outdated
| var ix = this.getPhaseNames().indexOf(after); | ||
| if (ix === -1) { | ||
| throw new Error('Unknown phase: "' + after + '"'); | ||
| throw new Error(g.f('Unknown phase: %', after)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@superkhau : this should be:
throw new Error(g.f('Unknown phase: %s', after));
|
@superkhau: Reviewed. Few nit-picks, otherwise, LGTM. |
|
@gunjpan @richardpringle Updated. PTAL again. |
|
LGTM |
75f0e3e to
0ffb00f
Compare
Connect to strongloop/loopback/issues/2422