From 020dfce055cd5f114a612b23c72c66e744a6bcd2 Mon Sep 17 00:00:00 2001
From: Thijs Kinkhorst <thijs@kinkhorst.com>
Date: Mon, 6 Sep 2021 14:16:57 +0000
Subject: [PATCH] fallback to authsource id if the authsource has a name but
 not in current language

---
 modules/core/templates/login.twig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/core/templates/login.twig b/modules/core/templates/login.twig
index 1cb4ea126..70b2ad562 100644
--- a/modules/core/templates/login.twig
+++ b/modules/core/templates/login.twig
@@ -15,7 +15,7 @@
                 <li class="pure-menu-item">
                     <a href="{{ moduleURL('core/login/' ~ id|url_encode) }}" class="pure-menu-link">
                       {% if config.name is defined %}
-                        {{ config.name|translateFromArray }}
+                        {{ config.name|translateFromArray|default(id) }}
                       {% else %}
                         {{ id }}
                       {% endif %}
-- 
GitLab