A
A
Avguston2019-12-20 15:47:22
Internationalization and localization
Avguston, 2019-12-20 15:47:22

How to localize content on a Laravel site?

Good afternoon. Tell me, maybe someone came across.
There is a website in Lar - in Russian, we want to localize it, translate it into Japanese.
Subsequently, the translation will be in 5 other languages.
The question is how to make the localization of system moments understandable - this is easily done out of the box.
How to localize dynamic content is the question.
I heard there are JS - scripts that replace the text, depending on the locale.
But I'm not sure that this will have a good effect on the speed of the site.
Maybe there are ready-made libraries for the backend?
and how is it done in general? Manually translate all the text and upload it to the database and do the substitution depending on the locale?
And every time you add new material to the site - add it in 5 different languages? Is there a faster solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Vorotnev, 2019-12-20
@Avguston

https://github.com/spatie/laravel-translatable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question