-
Notifications
You must be signed in to change notification settings - Fork 99
Add globalization #170
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
Add globalization #170
Conversation
|
@slnode test please |
example/hidden.js
Outdated
| explorer(app, { basePath: apiPath }); | ||
| app.use(apiPath, loopback.rest()); | ||
| console.log('Explorer mounted at localhost:' + port + '/explorer'); | ||
| console.log(g.f('Explorer mounted at localhost:%s/explorer', port)); |
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.
Should add {{}} around the url
|
@0candy Updated, review again pls. |
example/hidden.js
Outdated
| explorer(app, { basePath: apiPath }); | ||
| app.use(apiPath, loopback.rest()); | ||
| console.log('Explorer mounted at localhost:' + port + '/explorer'); | ||
| console.log(g.f('Explorer mounted at {{localhost:%s/explorer}}', port)); |
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.
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.
I don't think Explorer should be translated, should it?
|
@0candy Updated, PTAL again. |
|
Please make sure |
98fc894 to
8c18d0b
Compare
|
@slnode test please |
4e1f0f8 to
72cde0d
Compare
|
Actually sorry @Amir-61 @loay, I looked up the wrong repo owners. @gunjpan @richardpringle PTAL instead. 💪 Updated using latest conventions. |
example/simple.js
Outdated
| explorer(app, { basePath: apiPath }); | ||
| app.use(apiPath, loopback.rest()); | ||
| console.log('Explorer mounted at http://localhost:' + port + '/explorer'); | ||
| console.log(g.f('Explorer mounted at {{http://localhost:%s/explorer}}', port)); |
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.
same comment as before,
I think it should be {{Explorer}}.
|
@superkhau, left a couple comments. |
|
@gunjpan @richardpringle Fixed up based on feedback. PTAL again. |
| explorer(app, { basePath: apiPath }); | ||
| app.use(apiPath, loopback.rest()); | ||
| console.log('Explorer mounted at localhost:' + port + '/explorer'); | ||
| g.log('{{Explorer}} mounted at {{localhost:%s/explorer}}', port); |
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.
👍
@0candy, it was said somewhere that words with an uppercase letter to not get translated, does that include words at the beginning of a sentence?
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.
@richardpringle It is only for words with ALL caps. ie. API that don't get translated or any words you put within the double brace. In your case, both Explorer and the url will not be translated.
|
@richardpringle Please leave LGTM next time. I assume all the thumbs ups means 🚢? |
8207465 to
35c93eb
Compare
Connect to strongloop/loopback/issues/2422