简体   繁体   English

Laravel 5.7验证电子邮件本地化

[英]Laravel 5.7 verify email localization

Laravel provides an ability to use different language by using app.config + lang folder. Laravel通过使用app.config + lang文件夹提供了使用不同语言的能力。 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: 因此,如https://laravel.com/docs/5.7/localization#defining-translation-strings中所述 ,只需将要转换的字符串用作json键,即可将json文件添加到lang文件夹中,并用所需的语言命名。宾语:

lang文件夹中的json对象

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM