This resulted in the related strings being extracted under the "undefined" namespace, rather than using the default which is expected. Similarly, using a variable causes the strings to be extracted to a namespace that matches the name of that variable, rather than a warning being emitted.
Does it fix an existing ticket?
No.
Checklist
[x] only relevant code is changed (make a diff before you submit the PR)
[x] tests are included and pass: yarn test (see details here)
Why am I submitting this PR
While working on localizing our project, we used some code along the lines of the following:
This resulted in the related strings being extracted under the "undefined" namespace, rather than using the default which is expected. Similarly, using a variable causes the strings to be extracted to a namespace that matches the name of that variable, rather than a warning being emitted.
Does it fix an existing ticket?
No.
Checklist
yarn test
(see details here)