Laravel 更改语言环境不起作用
本文介绍了Laravel 更改语言环境不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用由英语和荷兰语组成的语言下拉列表.
I am using a dropdown lists for the languages, consisting of english and dutch.
那么这是我的 routes.php,
Then this is my routes.php,
而且它不工作.
在我的项目中,路径是这样的
In my project, the path is like this
来自荷兰语(du) 'navigation.php'
From the Dutch(du) 'navigation.php'
对于英语(en)'navigation.php'
and for the English(en) 'navigation.php'
推荐答案
我从这篇文章中解决了我的问题 https://mydnic.be/post/laravel-5-and-his-fcking-non-persistent-app-setlocale
I solved my problem from this article https://mydnic.be/post/laravel-5-and-his-fcking-non-persistent-app-setlocale
感谢贡献非持久"一词的人们
Thanks to the people who contributed the word 'non persistent'
这篇关于Laravel 更改语言环境不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!