@manuth/woltlab-compiler
Version:
A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components
34 lines • 958 B
JavaScript
import { NodeItem } from "../NodeSystem/NodeItem.js";
import { Localization } from "./Localization.js";
/**
* Represents a node which contains translations.
*/
export class LocalizationItem extends NodeItem {
/**
* Initializes a new instance of the {@link LocalizationItem `LocalizationItem`} class.
*
* @param node
* The node of the item.
*
* @param options
* The options for generating the object.
*/
constructor(node, options) {
super(node);
/**
* The translations of the node.
*/
this.translations = new Localization();
if ((options.Translations !== null) &&
(options.Translations !== undefined)) {
this.Translations.Load(options.Translations);
}
}
/**
* Gets the translations of the node.
*/
get Translations() {
return this.translations;
}
}
//# sourceMappingURL=LocalizationItem.js.map