Laravel 5.7验证电子邮件本地化 [英] Laravel 5.7 verify email localization
本文介绍了Laravel 5.7验证电子邮件本地化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Laravel通过使用app.config + lang
文件夹提供了使用其他语言的能力.但是,我没有在文档中找到有关如何翻译基本电子邮件的参考.
Laravel provides an ability to use different language by using app.config + lang
folder. However, I don't see any reference in the docs on how to translate base email.
我已启用电子邮件验证,但是电子邮件使用英语发送,这使我的用户感到困惑.我该如何翻译?
I've enabled email verification, however email is sent using English what confuses my users. How do I translate it?
推荐答案
So as described in https://laravel.com/docs/5.7/localization#defining-translation-strings, simply add a json file to lang folder, named with the desired language, using the strings that you want translate as keys of json object:
这篇关于Laravel 5.7验证电子邮件本地化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文