首页 文章

如何翻译Laravel 5.7电子邮件验证? [重复]

提问于
浏览
3

这个问题在这里已有答案:

如何翻译Laravel电子邮件验证?

某些软件包可能附带自己的语言文件 . 您可以通过将文件放在resources / lang / vendor / / 目录中来覆盖它们,而不是更改软件包的核心文件来调整这些行 . https://laravel.com/docs/5.7/localization#overriding-package-language-files

如果我们检查本地化文档:https://laravel.com/docs/5.7/localization#using-translation-strings-as-keys

和VerifyEmail类:https://github.com/laravel/framework/blob/5.7/src/Illuminate/Auth/Notifications/VerifyEmail.php#L44

然后我们必须使用以下内容创建此文件resources / lang / vendor / Auth / de.json:

{
   "Verify Email Address": "Email Adresse bestätigen"
}

但这不起作用 . 我的Laravel版本是5.7.15 . 不要与Laravel 5.7 verify email localization混淆,这是为了查看,而不是电子邮件 . 任何的想法?

1 回答

相关问题