[TIMOB-10834] iOS: when the device is set to Slovenian language (SL), Ti.Locale.getCurrentLanguage() returns SK (Slovak)
GitHub Issue | n/a |
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Not Our Bug |
Resolution Date | 2012-09-13T20:59:52.000+0000 |
Affected Version/s | Release 2.1.2 |
Fix Version/s | n/a |
Components | iOS |
Labels | api |
Reporter | Davide Cassenti |
Assignee | Neeraj Gupta |
Created | 2012-09-11T02:25:52.000+0000 |
Updated | 2017-03-09T23:46:23.000+0000 |
Description
Problem description
When the iOS device is set to Slovenian (SL), Ti.Locale.getCurrentLanguage() returns the code for Slovak (SK). This makes the i18n translation files unreadable by the app.
Steps to reproduce
- create the i18n folder and add a string for the Slovenian language (folder must be called 'sl')
- alert the L('sentence') value, or the Ti.Locale.getCurrentLanguage() response, in the app.js
Expected results
The app uses the correct langage code (SL) and the translation is displayed correctly.
Current result
The language code returned is SK, so the translation is not working properly.
Comments
JSON Source
This looks to be a problem with Apple: I've created a native app, and the Slovak language file is loaded when the device is set to Slovenian.
Closing this ticket as it is not our bug.