I
I
Ivan Vovchok2020-08-13 12:12:21
Laravel
Ivan Vovchok, 2020-08-13 12:12:21

What is the best way to implement multilingualism in a large project?

Hello There is a large application for working with various data, where the Backpack
admin panel is used on top of Laravel . The admin panel has built-in functionality for implementing support for several languages, but for each word, phrase or sentence that needs to be translated, you need to call the translation method with the label of this word/phrase and, depending on the user's chosen locale, it will look for a translation in the corresponding dictionary. That is, it turns out that on a page where, for example, there are 50 separate words / phrases, I call the same method 50 times, but with different arguments. I realized that this is not good, but, unfortunately, only after I did everything. Interested in how it is generally most competent to organize multilingualism in my conditions.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question