Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-3480] Set application current language

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-07T22:45:33.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterDeepak
AssigneeIngo Muschenetz
Created2011-04-15T03:45:44.000+0000
Updated2017-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:

  1. get language code from Properties
  2. If above fails then get language code from Phone
  3. 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

Comments

  1. Lee Morris 2017-06-07

    Closing ticket due to the time passed and lack of progress.

JSON Source