From 1241493e0101528db56f00358aeca5f3407f6bfd Mon Sep 17 00:00:00 2001 From: alaa smadi Date: Wed, 11 Dec 2024 00:33:21 +0300 Subject: [PATCH] feat(widget): add unknown user name to language tab add unknown user name to language tab --- resources/languages.json | 8 ++++++++ widget/controllers/widget.home.controller.js | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/resources/languages.json b/resources/languages.json index 79d8750..6d44950 100644 --- a/resources/languages.json +++ b/resources/languages.json @@ -93,6 +93,14 @@ "inputType": "text", "toolTip": "", "placeholder": "Purchase Not Available On Browser" + }, + "unknownUser": { + "title": "Unknown User", + "defaultValue": "Someone", + "inputType": "text", + "maxLength": 20, + "toolTip": "", + "placeholder": "Someone" } } }, diff --git a/widget/controllers/widget.home.controller.js b/widget/controllers/widget.home.controller.js index d38f9d1..5489c21 100644 --- a/widget/controllers/widget.home.controller.js +++ b/widget/controllers/widget.home.controller.js @@ -165,7 +165,7 @@ var config = {}; (user.lastName ? user.lastName : '') ); } else { - return 'Someone'; + return getLanguageString('mainScreen.unknownUser') || 'Someone'; } } }