From 1d29ee6d87d3794a9319bca5bf36afdfe176072c Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 1 Sep 2023 22:32:45 +0200 Subject: translations with fallback --- resources/js/classes/Technique.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'resources/js/classes/Technique.js') diff --git a/resources/js/classes/Technique.js b/resources/js/classes/Technique.js index 5f01e64..0fa31c9 100644 --- a/resources/js/classes/Technique.js +++ b/resources/js/classes/Technique.js @@ -14,11 +14,11 @@ class Technique { } get name () { - return translate(this.slug) || slugToName(this.slug); + return translate(this.slug); } get description () { - return translate(`${this.slug}_description`) || 'TECHNIQUE_DESCRIPTION_MISSING'; + return translate(`${this.slug}_description`); } get types () { -- cgit v1.2.3