-
Notifications
You must be signed in to change notification settings - Fork 4
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
Added localization support to name/description elements #108
Conversation
|
||
for (var prop in widgetConfig.name) { |
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.
Shouldn't this be a forEach?
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.
This is not actually an Array, so forEach is not available.
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.
OK then
@tracyli - can you test this soon as this needs to be in for tomorrows build? |
tested in mac with package build http://ci0000003863287:8080/hudson/job/BB10-Webworks-Packager-twg_next-name-localization/4/: |
@tracyli Can you please test @EricLeiLi change as part of this pull request. Shouldn't need to retest my stuff. |
@tracyli checkout blackberry#210 for details of packageLocale. You can contact me directly if you prefer. |
@tracyli I fixed the unit test. Let's wait for the next CI. |
} | ||
} | ||
|
||
if (tagData instanceof Array) { |
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.
Use Array.isArray
This requires a microsite issue |
for (locale in localeElements) { | ||
if (localeElements.hasOwnProperty(locale)) { | ||
//Don't add default locale and don't add locale if it already exists | ||
if (locale !== 'default' && locales.indexOf(locale) === -1) { |
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.
Please make 'default' a constant
+Hijacked data2mxl node module in order to fix a bug in their code. Thanks to @sleroux for a large portion of this work. Fixes blackberry#122
Removed @EricLeiLi commit. @jeffheifetz Can you r+ this before we get @tracyli to retest. |
Jake lint fails for me |
tested in winxp and mac with http://ci0000003863287:8080/hudson/job/BB10-Webworks-Packager-twg_next-name-localization/12/: smoke test got passed;'name' can change when localization language changes; |
r+ |
+Hijacked data2mxl node module in order to fix a bug in their code.
Thanks to @sleroux for a large portion of this work.
Fixes blackberry#122