Skip to content

Commit

Permalink
Disable html encoding of translated copy
Browse files Browse the repository at this point in the history
  • Loading branch information
mellelieuwes committed Nov 15, 2022
1 parent 8814b3a commit 09a43d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/framework/translator.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import _ from 'lodash';
import { isTranslatable } from './types/elements';
export var Translator = (function () {
var defaultLocale = 'nl';
Expand All @@ -7,7 +6,7 @@ export var Translator = (function () {
return text;
}
if (isTranslatable(text)) {
return _.escape(resolve(text, locale));
return resolve(text, locale);
}
throw new TypeError('Unknown text type');
}
Expand Down
3 changes: 1 addition & 2 deletions src/framework/translator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import _ from 'lodash'
import { isTranslatable, Text, Translatable } from './types/elements'

export const Translator = (function () {
Expand All @@ -9,7 +8,7 @@ export const Translator = (function () {
return text
}
if (isTranslatable(text)) {
return _.escape(resolve(text, locale))
return resolve(text, locale)
}
throw new TypeError('Unknown text type')
}
Expand Down

0 comments on commit 09a43d7

Please sign in to comment.