Skip to main content
Version: Next

TranslationApi

Home > @backstage/frontend-plugin-api > TranslationApi

Signature:

export type TranslationApi = {
getTranslation<TMessages extends {
[key in string]: string;
}>(translationRef: TranslationRef<string, TMessages>): TranslationSnapshot<TMessages>;
translation$<TMessages extends {
[key in string]: string;
}>(translationRef: TranslationRef<string, TMessages>): Observable<TranslationSnapshot<TMessages>>;
};

References: TranslationRef, TranslationSnapshot, Observable