From c1fe94a630a88c4f7203d54f34985c109030791c Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sat, 19 Aug 2023 15:32:48 +0200 Subject: translations --- resources/js/classes/Technique.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'resources/js/classes/Technique.js') 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 () { -- cgit v1.2.3