mirror of https://github.com/qortal/qortal-ui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
442 B
12 lines
442 B
import { directive } from 'lit/directive.js' |
|
import { unsafeHTML } from 'lit/directives/unsafe-html.js' |
|
import { TranslateDirective } from './translate.js' |
|
import { get } from '../util.js' |
|
|
|
export class TranslateUnsafeHTMLDirective extends TranslateDirective { |
|
render(key, values, config) { |
|
return this.renderValue(() => unsafeHTML(get(key, values, config))) |
|
} |
|
} |
|
|
|
export const translateUnsafeHTML = directive(TranslateUnsafeHTMLDirective) |