J
J
jazzus2019-06-22 14:47:22
Laravel
jazzus, 2019-06-22 14:47:22

How to transfer a project in en to another domain?

The task is to translate/duplicate the Russian project into en. To another domain with its own server and database. But with shared files. Those. 2 different sites -ru/en with their own databases and servers, but it will be one Laravel project. I plan to deploy in Laravel Forge for two different servers from one git. The sites will differ not only in translation, but also in some modules.
As I think to do. APP_LOCALE = ru/en in env. Specify in the config For the front (VUE) to collect translations on the server into one variable and prescribe texts.title in the templates. For modules to do check before launch
'locale' => env('APP_LOCALE'),

if (App::isLocale('en')) {
    // модуль для en
}

Never worked with locale. Is this the norm for a simple version? Do all ru/en checks through env. Or I missed something. Thank you.

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