Skip to content

Commit 5584c64

Browse files
committed
updated docs
1 parent 47b66b5 commit 5584c64

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@ The available extractors are the following:
126126
* `Gettext\Extractors\JsCode` - To scan a javascript file looking for all gettext functions (the same than PhpCode but for javascript)
127127
* `Gettext\Extractors\PhpArray` - To get the translations from a php file that returns an array
128128
* `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"}`
130131

131132
## Generators
132133

@@ -147,6 +148,7 @@ The available generators are:
147148
* `Gettext\Generators\Po` - Exports to Po format
148149
* `Gettext\Generators\PhpArray` - Exports to php code that returns an array with all values
149150
* `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))
150152

151153
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:
152154

0 commit comments

Comments
 (0)