laravel 9.30.1 翻译不生效可能是什么原因呢?
1. 运行环境#
MacOS 本地环境
1). 当前使用的 Laravel 版本?#
laravel 9.29.0
2). 当前使用的 php/php-fpm 版本?#
PHP 版本:PHP 8.1.4
2. 问题描述?#
翻译不生效。
我目前做的:#
config/app.php
内设置了'locale' => 'zh_CN',
根目录下存在 lang/zh_CN
, 语言包无误。
也尝试将 lang/zh_CN
放在 resources
下面。
也尝试 php artisan cache:clear
。
全部无效。翻译依旧无法生效。
乌鸦嘴社区 wyz.xyz 来玩。
推荐文章: