#31341: makemessages doesn't parse correctly/completely ES6 template strings
--------------------------------------------+------------------------
               Reporter:  Cédric Eberhardt  |          Owner:  nobody
                   Type:  Uncategorized     |         Status:  new
              Component:  Uncategorized     |        Version:  3.0
               Severity:  Normal            |       Keywords:
           Triage Stage:  Unreviewed        |      Has patch:  0
    Needs documentation:  0                 |    Needs tests:  0
Patch needs improvement:  0                 |  Easy pickings:  0
                  UI/UX:  0                 |
--------------------------------------------+------------------------
 Hello,

 Before I start, it's different than the #29175 issue.

 The template strings are parsed, but partially.
 For instance, in this code, "Home" is never discovered.

 {{{
 function create_fragment$4(ctx) {
         return {
                 c() {
                         div2.textContent = `${window.gettext("Customized
 Champagne")}`;
                         attr(a0, "aria-label", a0_aria_label_value =
 window.gettext("Home"));
 }}}

 If I remove the textContent line, then "Home" is found.

 I've also found other examples where when I remove a previous template
 string line, the next gettext (not necessarily within a template string)
 is discovered again.

 Thanks.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31341>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/050.02b18d093d219debb557393916d74880%40djangoproject.com.

Reply via email to