graphdb-workbench
Version:
The web application for GraphDB APIs
1 lines • 818 B
JavaScript
import{r as registerInstance,h,a as Host}from"./index-I_gcXFWK.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:"a0e5e63d927b6e17c8e3d3634b71389408d28b61"},this.translatedLabel)}};TranslateLabel.style=translateLabelCss;export{TranslateLabel as translate_label};