Opened 12 years ago
Last modified 12 years ago
#10717 closed enhancement
js: make it unnecessary to call babel.format explicitly — at Initial Version
Reported by: | Christian Boos | Owned by: | Christian Boos |
---|---|---|---|
Priority: | normal | Milestone: | 1.0 |
Component: | i18n | Version: | 0.13dev |
Severity: | normal | Keywords: | babel javascript |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
On the topic of babel.format
, any reason why it couldn't be integrated in gettext
?
For example, writing:
title: _("Select ticket %(id)s for modification", {id: tId}),
instead of the cumbersome:
title: babel.format(_("Select ticket %(id)s for modification"), {id: tId}),
The change is fully backward compatible.
Now that Jun started to "customize" our babel.js in r11047… Ok, at some point someone should backport this to Babel:source:trunk/contrib/babel.js ;-)
Note:
See TracTickets
for help on using tickets.