Select your text on Laravel files and hit a command / key to turn into translatable content.
- You can use the command "laravel_lang" anywhere (or with new keybind).
We will try to find the best function for your file:
- Blade:
{{ __() }} - PHP:
__() - JS:
__()
We now JS is not standard, but you can create your own translation implementation.
Make sure you have Package Control installed. Search for "Laravel Lang".
If you are using @lang directive you can replace using regex:
- Search for
@lang(\(.*\)) - Replace for
{{ __$1 }}
Licensed under the MIT license. License text