Is this something that we already use in Gaia? I agree it would be very helpful to have for many use-cases, for instance here:
https://github.com/mozilla-b2g/gaia/blob/master/apps/keyboard/js/settings/layout_item_view.js#L263-L291 https://github.com/mozilla-b2g/gaia/blob/master/apps/keyboard/locales/keyboard.en-US.properties#L79 Should we track this as a feature to add to l10n.js on current master? That might be great to introduce indeed. It will require some work in the Resolver, too. -stas On Mon, May 4, 2015 at 4:09 AM, Zibi Braniecki <[email protected] > wrote: > And another update, > > Tim brought a case for PropertyExpression, so I added it to > parser/serializer for python/JS. > > For now it's just handling computed property expression, so that this > works: > > <byteUnit { > B: 'Bytes', > KB: 'KB', > }> > > <preInstalledStatus "{{ $size }} {{ byteUnit[$unit] }}"> > > I don't want to enable more than I have to to make all major Gaia use > cases work, so I didn't add attribute expression or non-computed property > expression. > > zb. > _______________________________________________ > tools-l10n mailing list > [email protected] > https://lists.mozilla.org/listinfo/tools-l10n > _______________________________________________ tools-l10n mailing list [email protected] https://lists.mozilla.org/listinfo/tools-l10n
