@manuth/woltlab-compiler
Version:
A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components
85 lines • 1.94 kB
JavaScript
import { LocalizationInstruction } from "./LocalizationInstruction.js";
/**
* Provides the functionality to expose an {@link ILocalizationInstruction `ILocalizationInstruction`}s translations.
*/
export class LocalizationProviderInstruction {
/**
* Initializes a new instance of the {@link LocalizationProviderInstruction `LocalizationProviderInstruction`} class.
*
* @param instruction
* The instruction containing the localized messages.
*/
constructor(instruction) {
this.instruction = instruction;
}
/**
* Gets the instruction containing the localized messages.
*/
get Instruction() {
return this.instruction;
}
/**
* @inheritdoc
*/
get Type() {
return LocalizationInstruction.LOCALIZATION_INSTRUCTION_TYPE;
}
/**
* @inheritdoc
*/
get Collection() {
return this.Instruction.Collection;
}
/**
* @inheritdoc
*/
get Package() {
return this.Instruction.Package;
}
/**
* @inheritdoc
*/
get DestinationRoot() {
return this.Instruction.DestinationRoot;
}
/**
* @inheritdoc
*/
get FileName() {
return this.Instruction.FileName;
}
/**
* @inheritdoc
*/
get FullName() {
return this.Instruction.FullName;
}
/**
* @inheritdoc
*/
get Standalone() {
return this.Instruction.Standalone;
}
/**
* @inheritdoc
*/
get ObjectsByID() {
return this.Instruction.ObjectsByID;
}
/**
* @inheritdoc
*/
get TranslationDirectory() {
return this.Instruction.TranslationDirectory;
}
/**
* @inheritdoc
*
* @returns
* The messages of the options-instruction.
*/
GetMessages() {
return this.Instruction.GetMessages();
}
}
//# sourceMappingURL=LocalizationProviderInstruction.js.map