[TIMOB-3480] Set application current language
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-06-07T22:45:33.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Deepak |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T03:45:44.000+0000 |
Updated | 2017-06-07T22:45:33.000+0000 |
Description
Recent i18n commits added lots of cool functionality but still there is no obvious method to setcurrentLanguage or something like this in Locale API. There are certain usecases when setcurrentLanguage would be interesting. IMO getcurrentLanguage should also have proper fallback system as follow:
- get language code from Properties
- If above fails then get language code from Phone
- If that fails then to default value
Now it is possible to change language at least for iPhone using this
Titanium.App.Properties.setList("AppleLanguages",["de", "en"]);
but there should be a method in Locale API
Closing ticket due to the time passed and lack of progress.