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
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,8 @@ The available extractors are the following:
126
126
*`Gettext\Extractors\JsCode` - To scan a javascript file looking for all gettext functions (the same than PhpCode but for javascript)
127
127
*`Gettext\Extractors\PhpArray` - To get the translations from a php file that returns an array
128
128
*`Gettext\Extractors\Jed` - To scan a json file compatible with the [Jed library](http://slexaxton.github.com/Jed/)
129
-
*`Gettext\Extractors\Blade` - To scan a Blade template (For laravel users. Thanks @eusonlito)
129
+
*`Gettext\Extractors\Blade` - To scan a Blade template (For laravel users. Thanks [@eusonlito](https://github.com/eusonlito))
130
+
*`Gettext\Extractors\JsonDictionary` - To get translations from a plain json file with the format `{"original": "translation"}`
130
131
131
132
## Generators
132
133
@@ -147,6 +148,7 @@ The available generators are:
147
148
*`Gettext\Generators\Po` - Exports to Po format
148
149
*`Gettext\Generators\PhpArray` - Exports to php code that returns an array with all values
149
150
*`Gettext\Generators\Jed` - Exports to json format compatible with [Jed library](http://slexaxton.github.com/Jed/)
151
+
*`Gettext\Generators\JsonDictionary` - Export to plain json with the format `{"original": "translation"}` (thanks, [@gator92](https://github.com/Gator92))
150
152
151
153
To ease the work with generators and extractors you can use the magic methods availables in `Gettext\Translations` that import and export the translations in all these formats:
0 commit comments