We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0882647 commit b33c743Copy full SHA for b33c743
Tests/Translation/TwigExtractorTest.php
@@ -82,7 +82,7 @@ public function getExtractData()
82
['{{ ("another " ~ "new " ~ "key") | trans() }}', ['another new key' => 'messages']],
83
['{{ ("new" ~ " key") | trans(domain="domain") }}', ['new key' => 'domain']],
84
['{{ ("another " ~ "new " ~ "key") | trans(domain="domain") }}', ['another new key' => 'domain']],
85
- // if it has a variable or other expression, we can not extract it
+ // if it has a variable or other expression, we cannot extract it
86
['{% set foo = "new" %} {{ ("new " ~ foo ~ "key") | trans() }}', []],
87
['{{ ("foo " ~ "new"|trans ~ "key") | trans() }}', ['new' => 'messages']],
88
];
0 commit comments