mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
28 lines
608 B
JavaScript
Executable File
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)
|
|
}
|
|
}
|