You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -156,6 +157,15 @@ If you want to hide the default locale but always show other locales in the url,
156
157
157
158
**IMPORTANT** - When `hideDefaultLocaleInURL` is set to true, the unlocalized root is treated as the applications default locale `app.locale`. Because of this language negotiation using the Accept-Language header will **NEVER** occur when `hideDefaultLocaleInURL` is true.
158
159
160
+
### Set current locale as view-base-path
161
+
162
+
To set the current locale as view-base-path, simply register the localeViewPath-middlware in your Kernel.php, like it is descriped above.
163
+
164
+
Now you can wrap your views in language-based folders like the translation files.
165
+
166
+
`resources/views/en/`, `resources/vies/fr`, ...
167
+
168
+
159
169
## Helpers
160
170
161
171
This package comes with some useful functions, like:
0 commit comments