TeaSpeak-Client/imports/shared-app/i18n/Repository.d.ts
WolverinDEV 48b53e9de5 Updates
2021-05-01 23:38:36 +02:00

27 lines
890 B
TypeScript

import { CountryFlag } from "svg-sprites/country-flags";
import { AbstractTranslationResolver } from "tc-shared/i18n/Translation";
export declare type I18NContributor = {
name: string;
email: string;
};
export declare type TranslationResolverCreateResult = {
status: "success";
resolver: AbstractTranslationResolver;
} | {
status: "error";
message: string;
};
export declare abstract class I18NTranslation {
abstract getId(): string;
abstract getName(): string;
abstract getCountry(): CountryFlag;
abstract getDescription(): string;
abstract getContributors(): I18NContributor[];
abstract createTranslationResolver(): Promise<TranslationResolverCreateResult>;
}
export declare abstract class I18NRepository {
abstract getName(): string;
abstract getDescription(): string;
abstract getTranslations(): Promise<I18NTranslation[]>;
}