Closed loay closed 8 years ago
@superkhau @0candy PTAL
From CI it fails due to
assert.js:86
throw new assert.AssertionError({
^
AssertionError: *** setRootDir: Intl dir not found under: /mnt/jenkins/workspace/loopback-component-oauth2/6d9b883b/lib
It might be fixed by rerun
slt-globalize -e
and alt-globalize -l
each time before you commit your change.
@loay
I had a quick review; I see lots of unrelated changes in this PR; please revert back unrelated changes like adding extra blank lines or removing blank lines,...
@slnode test please
@superkhau @0candy PTAL again. Thanks.
@loay Please revert the debug statements.
All Fixed. PTAL again Thanks @0candy
@loay Basically whatever should not be translated like variable names you should skip them by using brackets: Example:
{{foo}}
You should revert this file lib/models/index.js
and test/middleware/authorization.test.js
Done more fixes. @superkhau @0candy PTAL again
@superkhau there is no bikeshedding. I am just trying to understand the logic behind it since changes in this repo are over 400 changes and I didn't want to start over. By the same logic of translation, I have actually fixed around 15-20 more words that the review did not catch.
@loay Sounds good, if you feel it is a valid concern, then we should get @Setogit to answer that question as he is the correct person to ask. Please update us/globalization.md with your findings so we don't all end up asking the same question again.
@loay left two comments, others LGTM 👍
@jannyHou @0candy Fixed both issues and rebased. Thanks
@superkhau concerning all the unrelated ones, when you add the globalization declaration on top of each file, it automatically deletes/adds a line. They actually cancel each other out, since it is -/+, but they are still there somehow. Anyways there is a linting PR ready to go once this one is merged.
@loay Bunch of nitpicks, but otherwise LGTM. As for the unrelated changes, maybe you should submit a PR running eslint, get that merged in, then rebase this PR so all those other edits will dissappear. Anyways, it's not a big deal since I looked at those changes during this review and they're all whitespace anyways. I'll leave it up to your discretion for what to do from here. :ship:
@superkhau Thanks. I know it was a long review :)
Connect to strongloop/loopback/issues/2422