Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

261
Vistas
How to change Firebase UI Phone Auth language in NextJs?

Basically, I have added a Firebase UI widget to my NextJs application.

I can't change the default language of this widget.

Before post this question, I try to apply this solution from Firebase docs, but not working for me.

<script src="https://www.gstatic.com/firebasejs/ui/3.4.0/firebase-ui-auth__{LANGUAGE_CODE}.js"></script>
<link type="text/css" rel="stylesheet" href="https://www.gstatic.com/firebasejs/ui/3.4.0/firebase-ui-auth.css" />

Below is exactly what I have implemented:

componentDidMount() {
    firebase.auth.languageCode = 'vi';
    const uiConfig = {
      signInSuccessUrl: '/', //This URL is used to return to that page when we got success response for phone authentication.
      signInOptions: [
        {
          provider: firebase.auth.PhoneAuthProvider.PROVIDER_ID,
        },
      ],
      tosUrl: '/',
    };
    var ui = new firebaseui.auth.AuthUI(firebase.auth());
    ui.start('#firebaseui-auth-container', uiConfig);
  }
  render() {
    return (
      <>
        <Head>
          <script
            async
            src="https://www.gstatic.com/firebasejs/ui/5.0.0/firebase-ui-auth__vi.js"
          ></script>
          <link
            type="text/css"
            rel="stylesheet"
            href="https://www.gstatic.com/firebasejs/ui/5.0.0/firebase-ui-auth.css"
          />
        </Head>
        <div id="firebaseui-auth-container"></div>
      </>
    );
  }

I can't change the default language from English to Vietnamese.

Any help is appreciated!

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda