Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/enricodeleo/cordova-plugin-ios-localized-strings
An helper plugin that exposes supported languages for the iOS app for the App Store (iTunes)
https://github.com/enricodeleo/cordova-plugin-ios-localized-strings
appstore cordova cordova-ios cordova-plugin i18n ios itunes languages
Last synced: 2 months ago
JSON representation
An helper plugin that exposes supported languages for the iOS app for the App Store (iTunes)
- Host: GitHub
- URL: https://github.com/enricodeleo/cordova-plugin-ios-localized-strings
- Owner: enricodeleo
- License: mit
- Created: 2017-02-15T14:23:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-11T16:59:46.000Z (4 months ago)
- Last Synced: 2024-11-12T09:18:19.131Z (3 months ago)
- Topics: appstore, cordova, cordova-ios, cordova-plugin, i18n, ios, itunes, languages
- Language: JavaScript
- Size: 11.7 KB
- Stars: 6
- Watchers: 2
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Supported languages iOS Apache Cordova
**Cordova / PhoneGap Plugin that exposes supported languages to the App Store
(iTunes).**On iOS, Cordova declares (just) english as supported language. Since most of the
i18n solutions that developers use for their translation/internazionalizations
support are javascript based there is no way to say to app store that anoter
language is also supported. You need to explicitly declare those languages
within the `info.plist` file.Since I'm lazy I prefer letting a plugin do this job (avoiding the need to
re-edit the file everytime I do a fresh build from the cordova cli). Hope you
find it useful as well.## Install
### Latest published version on npm (with Cordova CLI >= 5.0.0)
```
cordova plugin add cordova-plugin-ios-localized-strings --variable MAIN_LANGUAGE=English --variable ADDITIONAL_LANGUAGES=it,fr,de
```### Latest version from GitHub
```
cordova plugin add https://github.com/enricodeleo/cordova-plugin-ios-localized-strings.git --variable MAIN_LANGUAGE=English --variable ADDITIONAL_LANGUAGES=it,fr,de
```### Language Codes
The following language codes are valid options for the `ADDITIONAL_LANGUAGES` variables
- no
- en-US
- en-CA
- fi
- ru
- zh-Hans
- nl-NL
- zh-Hant
- en-AU
- id
- de-DE
- sv
- ko
- ms
- pt-BR
- el
- es-ES
- it
- fr-CA
- es-MX
- pt-PT
- vi
- th
- ja
- fr-FR
- da
- tr
- en-GB## Platforms
Applies to iOS only.
## Bonus
For ionic/angular v1.x based projects I really like
[gabegorelick/gulp-angular-gettext](https://github.com/gabegorelick/gulp-angular-gettext).## License
[MIT License](http://ilee.mit-license.org)