ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Laravel Lang

by mariovalney ALL

A simple tool to help translate your Laravel project.

Details

Installs

  • Total 214
  • Win 150
  • Mac 22
  • Linux 42
Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19
Windows 1 6 2 3 1 6 3 5 6 2 8 5 4 4 3 0 2 3 3 4 5 3 6 8 4 3 5 2 1 2 1 7 3 4 4 11 2 4 4 3 0 0 0 0 0
Mac 0 0 0 0 1 0 0 2 2 0 1 0 0 0 1 1 1 0 1 1 0 1 1 1 0 0 1 1 0 0 0 0 0 0 1 1 1 1 0 2 0 0 0 0 0
Linux 0 2 1 3 0 2 3 1 1 0 2 0 1 4 0 2 0 1 1 0 2 0 1 1 2 2 1 0 2 1 2 0 1 2 1 0 0 1 1 0 1 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Laravel Lang for Sublime Text 3

Select your text on Laravel files and hit a command / key to turn into translatable content.

Features

  • You can use the command “laravel_lang” anywhere (or with new keybind).

L10n functions

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.

How to install

Make sure you have Package Control installed. Search for “Laravel Lang”.

Tips

If you are using @lang directive you can replace using regex:

  • Search for @lang(\(.*\))
  • Replace for {{ __$1 }}

License

Licensed under the MIT license. License text