Files
ueblueprint/js/entity/LocalizedTextEntity.js
2023-01-02 00:22:50 +01:00

28 lines
608 B
JavaScript
Executable File

import IEntity from "./IEntity"
import Utility from "../Utility"
export default class LocalizedTextEntity extends IEntity {
static lookbehind = "NSLOCTEXT"
static attributes = {
namespace: "",
key: "",
value: "",
}
static {
this.cleanupAttributes(this.attributes)
}
constructor(values) {
super(values)
/** @type {String} */ this.namespace
/** @type {String} */ this.key
/** @type {String} */ this.value
}
toString() {
return Utility.capitalFirstLetter(this.value)
}
}