You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "sandstrom (JIRA)" <ji...@apache.org> on 2017/09/26 08:17:00 UTC

[jira] [Comment Edited] (CB-12723) Globalization - KEEP

    [ https://issues.apache.org/jira/browse/CB-12723?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16178989#comment-16178989 ] 

sandstrom edited comment on CB-12723 at 9/26/17 8:16 AM:
---------------------------------------------------------

I know this is late, but I think it would make more sense to remove this plugin or change its focus.

# Remove
JS-layer localization is advanced, and what this plugin provides isn't enough. Most people will instead us one of the i18n plugins available in Ember, Angular or some other SPA-framework, or something like moment.js. In its current state this is more like a JS-shim, it doesn't provide anything that's mobile/native related (it's sort of like having a cordova plugin that adds an ES6-shim, doesn't make sense).
# Change focus
Instead of removing it, one could also remove the JS-stuff and instead make it useful for native-level translations. Basically the stuff that goes into InfoPlist.strings (iOS) and strings.xml (Android). Things such as NSCameraUsageDescription and NSLocationUsageDescription need to be localized. Right now we handle this via a custom script wired into the build-hooks.




was (Author: sandstrom):
I know this is late, but I think it would make more sense to remove this plugin or change its focus.

# Remove
JS-layer localization is advanced, and what this plugin provides isn't enough. Most people will instead us one of the i18n plugins available in Ember, Angular or some other SPA-framework, or something like moment.js. In its current state this is more like a JS-shim, it doesn't provide anything that's mobile/native related (it's sort of like having a cordova plugin that adds an ES6-shim, doesn't make sense).

# Change focus
Instead of removing it, one could also remove the JS-stuff and instead make it useful for native-level translations. Basically the stuff that goes into InfoPlist.strings (iOS) and strings.xml (Android). Things such as NSCameraUsageDescription and NSLocationUsageDescription need to be localized. Right now we handle this via a custom script wired into the build-hooks.



> Globalization - KEEP
> --------------------
>
>                 Key: CB-12723
>                 URL: https://issues.apache.org/jira/browse/CB-12723
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: cordova-plugin-globalization
>            Reporter: Shazron Abdullah
>
> See parent issue.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org