firebase / firebaseui-web

FirebaseUI is an open-source JavaScript library for Web that provides simple, customizable UI bindings on top of Firebase SDKs to eliminate boilerplate code and promote best practices.
https://firebase.google.com/
Apache License 2.0
4.58k stars 1.06k forks source link

Bug trying to set language #1011

Open YonatanZviLevy opened 1 year ago

YonatanZviLevy commented 1 year ago

I am trying to set the language through the start function, And nothing just happens, This is in React project version 18,

ui.start('#loginFireBase',{
        signInOptions: [
               //Entry possible...
        ],
        language: "he", //Setting the language to Hebrew
   });
angelcervera commented 1 year ago

Hi @YonatanZviLevy Looks like the only way to change the languages is importing libraries via CDN: https://github.com/firebase/firebaseui-web#localized-widget

I was not able to find another way. The worse is that looks you can not import it via npm.

This is a know and annoying limitation. Really disappointing.

bragma commented 1 year ago

What if I need to change the language in a SPA? Do I need to reload the page just for setting another language?