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.
11 lines
361 B
11 lines
361 B
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) |