Edgewall Software

Opened 10 years ago

Last modified 9 years ago

#10717 closed enhancement

js: make it unnecessary to call babel.format explicitly — at Version 1

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 (last modified by Christian Boos)

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 ;-)

Related branches

Change History (1)

comment:1 by Christian Boos, 10 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.