#Laravel Translation Strings

5 messages · Page 1 of 1 (latest)

lunar moss
#

I'm working on laravel translation strings for the first name. I got them in the lang directory with php artisan lang:publish , i have done that in my recources directory.

I have wrote messages.php in the english directory and in the netherlands / Dutch directory ( nl ).

Might be very stupid to ask this, but where can I now make sure it will show dutch messages ?

As right now it only shows the english messages.

low olive
#

The default locale can be changed in config/app.php. It's also possible to switch locale dynamically by calling App::setLocale(). This is usually done in a custom Middleware.

lunar moss
#

So if i change the locale to nl that should be it?

low olive
#

Yes.

#

By the way, since your translations are in resources/lang/ make sure you don't also have a lang/ folder in the project root. Otherwise Laravel gets confused 🙂