[js-embedded-discovery] branch main updated: EDS-93 Default langage is used instead of user provided language for IDP description when the language has no subtag

Rod Widdowson rdw at steadingsoftware.com
Wed Jan 31 13:42:06 UTC 2024


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch main
in repository js-embedded-discovery.

View the commit online:
http://git.shibboleth.net/view/?p=js-embedded-discovery.git;a=commit;h=6cdff59ba44586f28a424f08e132dc7aedc51562

The following commit(s) were added to refs/heads/main by this push:
     new 6cdff59  EDS-93 Default langage is used instead of user provided language for IDP description when the language has no subtag
6cdff59 is described below

commit 6cdff59ba44586f28a424f08e132dc7aedc51562
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Wed Jan 31 13:40:39 2024 +0000

    EDS-93 Default langage is used instead of user provided language for IDP description when the language has no subtag
    
    https://shibboleth.atlassian.net/browse/EDS-93
    
    Add a stanza to handle when the locale has no subtag
    
    Author: Colin Bontemps
---
 src/javascript/idpselect.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/javascript/idpselect.js b/src/javascript/idpselect.js
index 8012a1f..199e987 100644
--- a/src/javascript/idpselect.js
+++ b/src/javascript/idpselect.js
@@ -207,6 +207,8 @@ function IdPSelectUI() {
 
         if (lang.indexOf('-') > 0) {
             majorLang = lang.substring(0, lang.indexOf('-'));
+        } else {
+            majorLang = lang;
         }
 
         var providedLangs = new IdPSelectLanguages();

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list