@senspark/ee
Version:
utility library for cocos creator
32 lines (31 loc) • 984 B
TypeScript
/// <reference types="cocos-api" />
export declare class LanguageComponent extends cc.Component {
private static counter;
/** Gets or sets the multilingual key. */
_key: string;
key: string;
/** Gets the multilingual format corresponding to the current key. */
readonly format: string;
private _paramValues;
/** Gets the multilingual parameter keys. */
readonly paramKeys: string[];
/** Gets or sets the multilingual parameter values. */
paramValues: string[];
/** Gets the translated string. */
readonly string: string | undefined;
private config;
private readonly languages;
private language;
/** Unique ID for each language component. */
private componentId;
/** Associated label component. */
private label;
private manager?;
constructor();
private getLanguageManager;
onEnable(): void;
onDisable(): void;
update(): void;
private updateText;
private parseParamKeys;
}