firebaseui-web icon indicating copy to clipboard operation
firebaseui-web copied to clipboard

Language Settings in Firebase UI When Using Vue

Open 54Yunyun opened this issue 4 months ago • 0 comments

Dear Developer Team,

I am experiencing an issue with the Firebase UI when using Vue. Despite setting the language to Chinese, the interface does not reflect this change and defaults to English.

Here is a brief overview of the situation:

I have configured the lang="zh-TW" attribute in the

element in the DOM. However, when I load the interface, the language setting automatically reverts to English. Here is the relevant code snippet from my application:

javascript Copy code

const ui = firebaseui.auth.AuthUI.getInstance() || new firebaseui.auth.AuthUI(firebase.auth());
ui.languageCode = "zh-TW"; 

Despite the explicit language setting (ui.languageCode = 'zh-TW';), the UI reverts to English when loaded. I suspect there might be a problem with how the language settings are being applied or overridden within the Firebase UI configuration when used in a Vue application. Could you please provide guidance on how to ensure the UI consistently respects the set language preference?

Thank you for your attention to this matter. I look forward to your prompt response and a possible solution.

Best regards, Yuna

54Yunyun avatar Apr 25 '24 09:04 54Yunyun