Skip to content

Commit 3fa8b51

Browse files
author
Hayder Sharhan
committed
MAGETWO-44053: [GITHUB] Bug: i18n phrases with apostrophes (') in Knockout templates are untranslatable (and my fix) #1951
- Added fix to account for phrases with apostrophes in ko templates.
1 parent f920640 commit 3fa8b51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Translation/Model/Js/DataProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected function getPhrases($content)
129129
if ($result) {
130130
if (isset($matches[2])) {
131131
foreach ($matches[2] as $match) {
132-
$phrases[] = $match;
132+
$phrases[] = str_replace('\\\'', '\'', $match);
133133
}
134134
}
135135
}

0 commit comments

Comments
 (0)