summaryrefslogtreecommitdiff
path: root/resources/js/classes/Item.js
diff options
context:
space:
mode:
Diffstat (limited to 'resources/js/classes/Item.js')
-rw-r--r--resources/js/classes/Item.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/js/classes/Item.js b/resources/js/classes/Item.js
index 8a12b9a..9da6a92 100644
--- a/resources/js/classes/Item.js
+++ b/resources/js/classes/Item.js
@@ -4,7 +4,11 @@ class Item {
}
get name () {
- return slugToName(this.slug);
+ return translate(this.slug) || slugToName(this.slug);
+ }
+
+ get description () {
+ return translate(`${this.slug}_description`) || 'ITEM_DESCRIPTION_MISSING';
}
get category () {