7 Replies Latest reply on Jan 19, 2018 11:34 AM by pjoly RSS
    pjoly Apprentice

    GetCurrentUserLanguage() is returning empty string



    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)