You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -10,10 +8,10 @@ This package convert all your localization messages from your Laravel app to Jav
10
8
11
9
## Features
12
10
13
-
- Support Laravel 4.2, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 6.x, 7.x and 8.x!
14
-
- Includes [Lang.js](https://github.com/rmariuzzo/lang.js) (a thin library highly inspired on Laravel's [`Translator`](https://laravel.com/api/5.4/Illuminate/Translation/Translator.html) class).
11
+
- Support Laravel 11.x and 12.x!
12
+
- Includes [Lang.js](https://github.com/rmariuzzo/lang.js)
13
+
- Lang.js API is based on Laravel's [`Translator`](https://api.laravel.com/docs/master/Illuminate/Translation/Translator.html) class. No need to learn a whole API.
15
14
- Allow to specify desired lang files to be converted to JS.
16
-
- Lang.js API is based on Laravel's [`Translator`](https://laravel.com/api/5.4/Illuminate/Translation/Translator.html) class. No need to learn a whole API.
17
15
18
16
<table><tbody><tr><td>
19
17
@@ -28,15 +26,9 @@ This package convert all your localization messages from your Laravel app to Jav
28
26
composer require mariuzzo/laravel-js-localization
29
27
```
30
28
31
-
In your Laravel app go to `config/app.php` and add the following service provider:
The `Laravel-JS-Localization` package provides a command that generate the JavaScript version of all your messages found at: `app/lang`(Laravel 4) or `resources/lang` (Laravel 5) directory. The resulting JavaScript file will contain all your messages plus [Lang.js](https://github.com/rmariuzzo/lang.js) (a thin library highly inspired on Laravel's [`Translator`](https://laravel.com/api/5.4/Illuminate/Translation/Translator.html) class).
31
+
The `Laravel-JS-Localization` package provides a command that generate the JavaScript version of all your messages found at: `lang` directory. The resulting JavaScript file will contain all your messages plus [Lang.js](https://github.com/rmariuzzo/lang.js) (a thin library highly inspired on Laravel's [`Translator`](https://api.laravel.com/docs/master/Illuminate/Translation/Translator.html) class).
40
32
41
33
### Generating JS messages
42
34
@@ -93,46 +85,6 @@ return [
93
85
];
94
86
```
95
87
96
-
### Using [gulp](http://gulpjs.com/) (optional)
97
-
98
-
Install [`gulp-shell`](https://github.com/sun-zheng-an/gulp-shell) and then run it directly in your `gulpfile.js`:
### Using [Laravel's Mix](https://laravel.com/docs/5.4/mix) with Laravel 5.4+ (optional)
137
89
138
90
Add "[webpack-shell-plugin-next](https://www.npmjs.com/package/webpack-shell-plugin-next)" to package.json's "devDependencies" section.
@@ -153,7 +105,7 @@ mix.webpackConfig({
153
105
154
106
## Documentation
155
107
156
-
This is a quick documentation regarding [Lang.js](https://github.com/rmariuzzo/lang.js) (the thin JavaScript library included by `Laravel-JS-Localization`). The [Lang.js](https://github.com/rmariuzzo/lang.js) (a thin library highly inspired on Laravel's [`Translator`](https://laravel.com/api/5.3/Illuminate/Translation/Translator.html) class).
108
+
This is a quick documentation regarding [Lang.js](https://github.com/rmariuzzo/lang.js) (the thin JavaScript library included by `Laravel-JS-Localization`). The [Lang.js](https://github.com/rmariuzzo/lang.js) (a thin library highly inspired on Laravel's [`Translator`](https://api.laravel.com/docs/master/Illuminate/Translation/Translator.html) class).
157
109
158
110
> 💁 Go to [Lang.js documentation]([Lang.js](https://github.com/rmariuzzo/lang.js)) to see all available methods.
0 commit comments