[DAEMON-333] @appcd/plugin-titanium: ti i18n
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Medium |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | appcd-plugin-titanium, titaniumlib |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2020-03-04T05:14:12.000+0000 |
Updated | 2020-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 functionsL()
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.
No comments