UNPKG

graphdb-workbench

Version:
1 lines 736 B
import{r as registerInstance,h,a as Host}from"./index-I_gcXFWK.js";import{T as TranslationService}from"./translation.service-Hf6024E7.js";import"@ontotext/workbench-api";const translateLabelCss=":host{display:inline}",TranslateLabel=class{constructor(a){registerInstance(this,a),this.translationParameters=[]}connectedCallback(){this.unsubscribeTranslationChanged=TranslationService.onTranslate(this.labelKey,this.translationParameters,a=>this.translatedLabel=a)}disconnectedCallback(){this.unsubscribeTranslationChanged&&this.unsubscribeTranslationChanged()}render(){return h(Host,{key:"379e2bf98a702473ef9753bde148d608f2b27509"},this.translatedLabel)}};TranslateLabel.style=translateLabelCss;export{TranslateLabel as translate_label};