TeaSpeak-Client/imports/shared-app/i18n/Translation.d.ts

19 lines
554 B
TypeScript
Raw Normal View History

2021-05-01 17:38:36 -04:00
export declare abstract class AbstractTranslationResolver {
private translationCache;
protected constructor();
/**
* Translate the target message.
* @param message
*/
translateMessage(message: string): any;
protected invalidateCache(): void;
/**
* Register a translation into the cache.
* @param message
* @param translation
* @protected
*/
protected registerTranslation(message: string, translation: string): void;
protected abstract resolveTranslation(message: string): string;
}