﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
29175	makemessages doesn't parse ES6 template strings	Artem Skoretskiy	nobody	"ECMAScript 6 introduced template strings, that are easy to use https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals

But Django 2.0.2 does not recognize it when it tries to extract translations into PO file. It also gives you a warning in some cases.

Demo:

{{{
# main.js

let header = `${_(""Header"")}`;

const get_url = id => `/my_user/${id}/`;

let header_old = _(""Header old"");
}}}

Run:
{{{
./manage.py makemessages -d djangojs -a
}}}

PO file would contain only ""Header old"".

This is a synthetic example, you could see real-life file attached. It would generate following warnings:

{{{
api.js:90: warning: unterminated string
api.js:139: warning: RegExp literal terminated too early
}}}

As far as I get, it ignores back-ticks and treats content as regular expression here."	Cleanup/optimization	closed	Documentation	2.0	Normal	fixed		Artem Skoretskiy	Accepted	1	0	0	0	0	0
