summaryrefslogtreecommitdiff
path: root/resources/js/classes/Technique.js
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2023-08-19 15:32:48 +0200
committerDaniel Weipert <code@drogueronin.de>2023-08-19 15:32:48 +0200
commitc1fe94a630a88c4f7203d54f34985c109030791c (patch)
treee6e75fe468dddddcbe440cbd356ddaaaf605144f /resources/js/classes/Technique.js
parent218da95a4b387ee5ac25f168d1529419039f2e54 (diff)
translations
Diffstat (limited to 'resources/js/classes/Technique.js')
-rw-r--r--resources/js/classes/Technique.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/js/classes/Technique.js b/resources/js/classes/Technique.js
index 74783a2..5f01e64 100644
--- a/resources/js/classes/Technique.js
+++ b/resources/js/classes/Technique.js
@@ -14,7 +14,11 @@ class Technique {
}
get name () {
- return slugToName(this.slug);
+ return translate(this.slug) || slugToName(this.slug);
+ }
+
+ get description () {
+ return translate(`${this.slug}_description`) || 'TECHNIQUE_DESCRIPTION_MISSING';
}
get types () {