Review Request #11001 — Created April 10, 2020 and submitted — Latest diff uploaded
This makes use of the new babel-plugin-django-gettext template literal
especially when long strings are concerned.
We can now use the new
_prefix and break strings into multiple lines,
and the plugin will take care to clean up the whitespace and turn them
back into single-line
gettext()calls. We can also reference variables
in template literals, and the plugin will turn them into
calls (though we don't make use of that currently int his codebase).
There are still files that aren't converted to ES6 in this codebase, and
there are likely a lot of unlocalized strings, but this change doesn't
tackle either. It's really the changes that were being tested during the
development of the plugin.
Built a package and compared the generated code to the source code.
Saw that each and every new-style localization was converted to an
gettext(), with the expected strings.