mirror of
https://github.com/Qortal/qortal-ui.git
synced 2025-02-12 02:05:51 +00:00
11 lines
373 B
JavaScript
11 lines
373 B
JavaScript
import { directive } from 'lit/directive.js'
|
|
import { get } from '../util.js'
|
|
import { LangChangedDirectiveBase } from './lang-changed-base.js'
|
|
|
|
export class TranslateDirective extends LangChangedDirectiveBase {
|
|
render(key, values, config) {
|
|
return this.renderValue(() => get(key, values, config))
|
|
}
|
|
}
|
|
|
|
export const translate = directive(TranslateDirective) |