import{r as registerInstance,h,a as Host}from"./index-BntG-4Sv.js";import{T as TranslationService}from"./translation.service-FB05Sh97.js";import"@ontotext/workbench-api";const translateLabelCss=":host{display:inline}",TranslateLabel=class{constructor(a){registerInstance(this,a),this.unsubscribeTranslationChanged=null,this.translationParameters=[]}connectedCallback(){this.unsubscribeTranslationChanged=TranslationService.onTranslate(this.labelKey,this.translationParameters,a=>this.translatedLabel=a)}disconnectedCallback(){this.unsubscribeTranslationChanged&&(this.unsubscribeTranslationChanged(),this.unsubscribeTranslationChanged=null)}render(){return h(Host,{key:"e14ed023755becfab8af466ba80b866d896037f2"},this.translatedLabel)}};TranslateLabel.style=translateLabelCss;export{TranslateLabel as translate_label};