@@ -191,7 +191,7 @@ public function configDataProvider(): array
191
191
[
192
192
'patterns ' => [
193
193
'~\$\.mage\.__\(([ \'"])(.+?)\1\)~ ' ,
194
- '~i18n\:\ s*([" \'])(.*?)(?<! \\\)\1~ ' ,
194
+ '~(?: i18n\:|_\.i18n\()\ s*([" \'])(.*?)(?<! \ \\\)\1~ ' ,
195
195
'~translate\=(" \')([^ \'].*?) \'\"~ ' ,
196
196
'~(?s)\$t\(\s*([ \'"])(\?\<translate\>.+?)(?<! \\\)\1\s*(*SKIP)\)(?s)~ ' ,
197
197
'~translate args\=("| \'|" \'| \\\" \')([^ \'].*?)( \'\\\"| \'"| \'|")~ ' ,
@@ -201,18 +201,22 @@ public function configDataProvider(): array
201
201
'hello2 ' => 'hello2translated ' ,
202
202
'hello3 ' => 'hello3translated ' ,
203
203
'hello4 ' => 'hello4translated ' ,
204
+ 'ko i18 ' => 'ko i18 translated ' ,
205
+ 'underscore i18 ' => 'underscore i18 translated ' ,
204
206
],
205
207
'contentsMap ' => [
206
208
'content1$.mage.__("hello1")content1 ' ,
207
209
'content2$.mage.__("hello2")content2 ' ,
208
- 'content2$.mage.__("hello4")content4 ' ,
209
- 'content2$.mage.__("hello3")content3 ' ,
210
+ 'content2$.mage.__("hello4")content4 <!-- ko i18n: "ko i18" --><!-- /ko --> ' ,
211
+ 'content2$.mage.__("hello3")content3 <% _.i18n("underscore i18") %> ' ,
210
212
],
211
213
'translateMap ' => [
212
214
[['hello1 ' ], [], 'hello1translated ' ],
213
215
[['hello2 ' ], [], 'hello2translated ' ],
214
216
[['hello3 ' ], [], 'hello3translated ' ],
215
217
[['hello4 ' ], [], 'hello4translated ' ],
218
+ [['ko i18 ' ], [], 'ko i18 translated ' ],
219
+ [['underscore i18 ' ], [], 'underscore i18 translated ' ],
216
220
]
217
221
],
218
222
]
0 commit comments