S
S
Sergey delphinpro2021-12-24 11:17:09
Laravel
Sergey delphinpro, 2021-12-24 11:17:09

Is it possible to generate lang files in laravel from code?

Maybe there is a plugin for phpStorm, or a console tool.
The idea is - we write in the code __('Welcome'), click something, and I have lang/*jsona line in all the files I have . Similarly with keys => magic => and corresponding lines appear in all files . I'm tired of adding these lines to translations =) "Welcome": "Welcome"
__('validation.elcome')lang/*/validation.php

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jazzus, 2021-12-24
@delphinpro

Automatically adds keys to all translations https://github.com/barryvdh/laravel-translation-manager

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question