Conversation
e6eb1ea to
69a703f
Compare
|
@slnode test please |
lib/providers/apns.js
Outdated
|
|
||
| connection.on('transmissionError', function(code, notification, recipient) { | ||
| var err = new Error('Cannot send APNS notification: ' + code); | ||
| var err = new Error(g.f('Cannot send APNS notification: %s', code)); |
There was a problem hiding this comment.
We don't need translation for APNS put {{}} around it.
{{APNS}}
|
@0candy Updated, review again pls. |
|
|
||
| connection.on('transmissionError', function(code, notification, recipient) { | ||
| var err = new Error('Cannot send APNS notification: ' + code); | ||
| var err = new Error(g.f('Cannot send {{APNS}} notification: %s', code)); |
There was a problem hiding this comment.
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. |
| var loopback = require('loopback'); | ||
| var PushConnector = require('./lib/push-connector'); | ||
| exports = module.exports = PushConnector; | ||
| var SG = require('strong-globalize'); |
There was a problem hiding this comment.
Why not following strong-globalize coding guideline here?
https://www.npmjs.com/package/strong-globalize#autonomous-message-loading
Please study paragraphs after "For example, the following does not work as intended because the package sub calls SG.SetRootDir first:"
| // this file has no tests so avoid refactor and ignore jshint for now | ||
| /*jshint ignore: start */ | ||
| var serial,__hasProp = {}.hasOwnProperty; | ||
| var SG = require('strong-globalize'); |
There was a problem hiding this comment.
Why not following strong-globalize coding guideline here?
https://www.npmjs.com/package/strong-globalize#autonomous-message-loading
Please study paragraphs after "For example, the following does not work as intended because the package sub calls SG.SetRootDir first:"
|
For each JS module, please examine where `strong-globalize' is required and make sure the strong-globalize coding guideline is followed. |
|
test please |
|
ah sorry, missed that. Please fix Tetsuo's comment. |
|
@slnode test please |
Connect to strongloop/loopback#2422