Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-333] @appcd/plugin-titanium: ti i18n

GitHub Issuen/a
TypeStory
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
Componentsappcd-plugin-titanium, titaniumlib
Labelsn/a
ReporterChris Barber
AssigneeChris Barber
Created2020-03-04T05:14:12.000+0000
Updated2020-03-04T05:14:22.000+0000

Description

The "ti i18n" command provides the ability to extract strings from source code and generate native i18n files.

Extracting Strings

The "extract" subcommand will locale all calls to the i18n functions L() and Ti.Locale.getString(). The strings can either be output as .json to stdout or a file or appended to the native i18n string files for the language defined by the --language option (defaults to "en"). This subcommand replaces alloy i18n-extract.

Generate i18n Files

The "generate" subcommand will take a .json file and append them to the native i18n files for the language defined by the --language option. This is based on TIMOB-18577.

Comments

No comments

JSON Source