Skip to content

Conversation

@superkhau
Copy link
Contributor

@superkhau
Copy link
Contributor Author

@slnode test please

@0candy 0candy removed their assignment Jul 22, 2016
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));
Copy link
Contributor

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

@superkhau superkhau assigned 0candy and unassigned superkhau Jul 23, 2016
@superkhau
Copy link
Contributor Author

@0candy Updated, review again pls.

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));
Copy link
Contributor

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.

Copy link
Contributor

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?

@superkhau
Copy link
Contributor Author

@0candy Updated, PTAL again.

@0candy
Copy link
Contributor

0candy commented Jul 26, 2016

Please make sure var SG = require('strong-globalize'); is at the beginning of the file.

@0candy 0candy assigned superkhau and unassigned 0candy Jul 27, 2016
@superkhau superkhau force-pushed the globalization branch 3 times, most recently from 98fc894 to 8c18d0b Compare July 27, 2016 22:46
@superkhau
Copy link
Contributor Author

@slnode test please

@superkhau superkhau force-pushed the globalization branch 2 times, most recently from 4e1f0f8 to 72cde0d Compare July 28, 2016 20:13
@superkhau
Copy link
Contributor Author

@Amir-61 @loay PTAL

@superkhau
Copy link
Contributor Author

superkhau commented Jul 28, 2016

Actually sorry @Amir-61 @loay, I looked up the wrong repo owners.

@gunjpan @richardpringle PTAL instead. 💪 Updated using latest conventions.

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));
Copy link
Contributor

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}}.

@richardpringle
Copy link
Contributor

@superkhau, left a couple comments.

@superkhau
Copy link
Contributor Author

@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);
Copy link
Contributor

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?

Copy link
Contributor

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.

@superkhau
Copy link
Contributor Author

@richardpringle Please leave LGTM next time. I assume all the thumbs ups means 🚢?

@superkhau superkhau merged commit 4ebd792 into master Aug 4, 2016
@superkhau superkhau deleted the globalization branch August 4, 2016 07:52
@superkhau superkhau removed the #review label Aug 4, 2016
@richardpringle richardpringle removed their assignment Aug 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants