asajs
Version:
Make your Minecraft JsonUI with ScriptingAPI
22 lines (21 loc) • 790 B
TypeScript
import { StaticUIInterface } from "../types/components/UIInterface";
import { Label } from "../types/objects/elements/Label";
import { UI } from "./UI";
interface LocalizeTextInterface {
[language: string]: {
[key: string]: string;
};
}
interface SetLocalizeTextInterface {
[language: string]: string;
}
export declare const localizeText: LocalizeTextInterface;
export declare class LocalizeText {
key: string;
constructor(key: string, value: string | SetLocalizeTextInterface);
createLabel(properties?: Omit<Label, "text">, identifier?: StaticUIInterface): UI<import("..").Types.Label>;
set(texts: SetLocalizeTextInterface): void;
get(): string;
static register(key: string, value: string | SetLocalizeTextInterface): LocalizeText;
}
export {};