bug-gettext
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #50920] support Javascript template strings in xgettext


From: INVALID.NOREPLY
Subject: [bug #50920] support Javascript template strings in xgettext
Date: Tue, 19 May 2020 17:40:06 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0

Follow-up Comment #21, bug #50920 (project gettext):

The 0.20.2 release fixes the repro in comment #17 but the parsing
short-circuit still happens when the template literal lives inside a tag:


const App = () => (
  <div>
    _('one');
    {`${'foo'}`}
    _('two');
  </div>
)


Also fails as an attribute inside a tag:


_('one');
<div className={`${'foo'}`} />
_('two');


Should we reopen this ticket? Or I'd be happy to open a new ticket if you'd
prefer.

(And thank you for your time to get this working with newer JavaScript!)

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?50920>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]