其他语言中的 firebase 身份验证错误 [英] firebase authentication error in other languages

查看:30
本文介绍了其他语言中的 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天全站免登陆