Description

WARNING: The messages in this file will be moved to messages/messages-en.ts file on version 2.x.
Users are encouraged to include the messages/messages-en.js on their index.html even though for now it's an empty file to prevent breaking changes.

ABeamer allows to localize the name of functions and other functionalities such the names of tasks, flyovers and scene transitions.
The names can include non-latin characters.

Fill Localization with the localize data, and add it via ABeamer.pluginManager.addLocalization.

 

API

 

Localization

public export interface

export interface Localization{ }

Localization.locale

public property [Localization]

locale: string;

Localization.charRanges

public property [Localization]

charRanges?: [number, number][];

Localization.messages

public property [Localization]

messages?: { [srcMsg: string]: string };

Localization.functionalities

public property [Localization]

functionalities?: [Functionalities | string, { src: string, dst: string }[]][];
 

I8nParams

public export interface

export interface I8nParams{ }

i8nMsg()

public export function

export function i8nMsg(msg: string, params?: I8nParams): string;