mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-04 08:50:33 +08:00
24 lines
555 B
JavaScript
Executable File
24 lines
555 B
JavaScript
Executable File
import IEntity from "./IEntity"
|
|
import Utility from "../Utility"
|
|
|
|
export default class LocalizedTextEntity extends IEntity {
|
|
|
|
static lookbehind = "NSLOCTEXT"
|
|
static attributes = {
|
|
namespace: String,
|
|
key: String,
|
|
value: String,
|
|
}
|
|
|
|
constructor(options = {}) {
|
|
super(options)
|
|
/** @type {String} */ this.namespace
|
|
/** @type {String} */ this.key
|
|
/** @type {String} */ this.value
|
|
}
|
|
|
|
toString() {
|
|
return Utility.capitalFirstLetter(this.value)
|
|
}
|
|
}
|