I
I
Ilya T2018-02-09 11:39:10
Laravel
Ilya T, 2018-02-09 11:39:10

How to implement multilanguage in Laravel?

I found a lot of information, but it is all scattered, I would like to get a schematic representation of the points (where and how (prefixes, a separate field, etc.)) to store, how to handle and how to transfer to view), how to properly organize multilingualism with Laravel:
1. Static articles.
2. Menu items.
3. Forms and Validation.
Just like doing the language switching itself.
Thank you very much in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2018-02-09
@I-ilya

Articles (content) are usually in the database. Template elements (menus, forms, validation, etc.), in language files.
The documentation describes everything in detail https://laravel.com/docs/5.5/localization (including how to switch languages)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question