Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1483] Support composite use of L(key) and strings in XML attribute values

GitHub Issuen/a
TypeNew Feature
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsXML
Labelsn/a
ReporterFokke Zandbergen
AssigneeBruce Wayne
Created2016-04-01T11:25:27.000+0000
Updated2016-04-01T11:25:27.000+0000

Description

I'd like to be able to do:
<Alloy>
  <Label text="L('key') :" />
</Alloy>
Currently this compiles to:
    $.__views.__alloyId0 = Ti.UI.createLabel({
        text: 'L("time") :',
        id: "__alloyId0"
    });
While I'd like it to be:
    $.__views.__alloyId0 = Ti.UI.createLabel({
        text: L("time") + ' :',
        id: "__alloyId0"
    });

Comments

No comments

JSON Source