Closed khalwat closed 5 years ago
It'd be great if the "Add missing Translations" inspection worked with any combination of the following for Twig templates:
"somestring"|t("somecat") "somestring" |t("somecat") "somestring" | t("somecat")
"somestring"|t("somecat")
"somestring" |t("somecat")
"somestring" | t("somecat")
In other words, being agnostic about whitespace before/after the | -- I found that I wrote my translations like this in Twig:
|
...and it didn't pick any of them up. Took me some time to figure out what was going on!
Thanks for reading, and also for the plugin!
Thank you @khalwat, will be fixed in the next release.
Probably also worth checking for translate in addition to t as they are aliases.
translate
t
Fixed!
It'd be great if the "Add missing Translations" inspection worked with any combination of the following for Twig templates:
"somestring"|t("somecat")
"somestring" |t("somecat")
"somestring" | t("somecat")
In other words, being agnostic about whitespace before/after the
|
-- I found that I wrote my translations like this in Twig:"somestring" |t("somecat")
...and it didn't pick any of them up. Took me some time to figure out what was going on!
Thanks for reading, and also for the plugin!