5 Replies Latest reply on Nov 14, 2019 6:01 AM by user611775

    need to change portal language from a bean

    user611775

      i need to add a button on portal template to change portal language

      I have tried the below class but it does not help

       

              Locale locale = (Locale) JSFUtils.resolveExpression("#{facesContext.viewRoot.locale}");

              return locale != null && locale.getLanguage()

                                             .toLowerCase()

                                             .contains("ar");

       

       

      is there any sample code that i can use to change the langue other than using portal task flow.