7 Replies Latest reply on Oct 22, 2017 2:45 AM by pjoly RSS
    pjoly Apprentice

    GetCurrentUserLanguage() is returning empty string

    Hello

     

    I want to localize the return of a function depending of the current language of the session of the connected user.

     

    Everything is ok with the labels inot mashups using the "localization tables" but when i want to know the current language in a javascript I cannot get it

     

    I'm using this

     

    var Language = Resources["CurrentSessionInfo"].GetCurrentUserLanguage();
    

     

    but it is returning an empty string (the user has "fr" in the languages item

     

    any ideas

    (ThingWorx 7.3.2-b42)

     

     

    Thanks