Managing multiple languages with Appcelerator Titanium
Titanium provides a number of JavaScript functions in the Titanium.Locale
namespace for use in localization. You can even internationalize the name of your app itself. Titanium also allows you to define internationalization files and automatically chooses the correct one based on device locale settings. But what if you want to allow the user to choose the language for the app from within the application settings? To provide this functionality in an app built with Titanium, we would need to override the function L()
that Titanium uses to retrieve localized strings from one of the XML files.
Read the full solution here.
Written by Pulkit Goyal
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Android
Authors
Related Tags
#android
#language
#appcelerator
#settings
#ios
#titanium
#localization
#internationalization
#javascript
#string.xml
Filed Under
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#