graphdb-workbench
Version:
The web application for GraphDB APIs
1 lines • 824 B
JavaScript
import{r as registerInstance,h,a as Host}from"./index-CGqARDX4.js";import{T as TranslationService}from"./translation.service-nljGIprK.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:"6f43411609ffbb55a072585c7c1bdd149422b066"},this.translatedLabel)}};TranslateLabel.style=translateLabelCss();export{TranslateLabel as translate_label};