Skip to content

Commit

Permalink
Hotfix Safari < 14 and Chrome < 85
Browse files Browse the repository at this point in the history
Must investigate why there is no polyfill applied
  • Loading branch information
Bruno Besson committed Apr 14, 2021
1 parent 2790a93 commit 4f3addc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/vue-plugins/gettext-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ export default function install(Vue) {

gettext(msgid, msgctxt) {
return getTranslation(this.translations[this.current], msgid, msgctxt)
.replaceAll('&quot;', '"')
.replaceAll('&#x5C;', '\\');
.replace(/&quot;/g, '"')
.replace(/&#x5C;/gi, '\\');
},

getIANALanguageSubtag(lang) {
Expand Down

0 comments on commit 4f3addc

Please sign in to comment.