// How-to-use i18n(Internationalization) folder
// Rather than hard-coding strings into your project, you can use localized strings. Localized strings are replaced at runtime with values appropriate to the user's language. Titanium relies on resources files and string placeholders to accomplish this task.
Example :)
// Titanium provides two functions for obtaining a localized string from your resource files. Both take the key of the string requested as their first parameter. The
Helpful LINK : https://wiki.appcelerator.org/display/guides/Internationalization
LIKE
Sample code is available on GIT :)
// Rather than hard-coding strings into your project, you can use localized strings. Localized strings are replaced at runtime with values appropriate to the user's language. Titanium relies on resources files and string placeholders to accomplish this task.
Example :)
// Titanium provides two functions for obtaining a localized string from your resource files. Both take the key of the string requested as their first parameter. The
L()
macro is a short form for Ti.Locale.getString():Helpful LINK : https://wiki.appcelerator.org/display/guides/Internationalization
LIKE
var
str1 = L(
'welcome_message'
);
var
str2 = Ti.Locale.getString(
'welcome_message'
);
// str1 === str2
Sample code is available on GIT :)
https://github.com/dharmik/How-to-use-i18n-folder--