@manuth/woltlab-compiler
Version:
A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components
39 lines (38 loc) • 976 B
TypeScript
/**
* Represents a localization.
*/
export declare class Localization {
/**
* The translations of this localization mapped to their corresponding locale.
*/
private data;
/**
* Initializes a new instance of the {@link Localization `Localization`} class.
*/
constructor();
/**
* Gets the translations of this localization mapped to their corresponding locale.
*/
get Data(): Map<string, string>;
/**
* Loads localizations from the {@link values `values`}.
*
* @param values
* The values to load.
*/
Load(values: Record<string, string>): void;
/**
* Gets the locales of the translations.
*
* @returns
* The locales of the localization.
*/
GetLocales(): string[];
/**
* Creates an object which represents this localization.
*
* @returns
* An object which represents this localization.
*/
ToJSON(): Record<string, string>;
}