Firebase认证错误用其他语言 [英] firebase authentication error in other languages

查看:87
本文介绍了Firebase认证错误用其他语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在使用Swift开发应用程序,并且已链接Firebase以供用户注册和登录.该应用程序应该是西班牙语的,但我找不到将身份验证错误转换为西班牙语的方法. firebase控制台中是否有启用其他语言或plist中的选项.感谢您的帮助.

I am currently developing an app in Swift and I have linked firebase in order for users to signup and login. The app is supposed to be in Spanish but I can't find a way to translate the authentication errors to Spanish. Is there an option in the firebase console to enable other languages or in the plist. Any help is appreciated.

推荐答案

Firebase错误未本地化.您可以通过Firebase支持请求此功能.

Firebase errors are not localized. You could request a feature for this via Firebase support.

您可以做的是根据提供的错误代码创建自己的本地化消息.这是FirebaseUI的作用:

What you could do instead is create your own localized messages based on the error codes provided. This is what FirebaseUI does:

FirebaseUI-web

或者您可以只使用FirebaseUI-ios.这样可以节省大量时间和精力.

Or you could just simply use FirebaseUI-ios. It would save you a lot of time and effort.

这篇关于Firebase认证错误用其他语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆