Skip to content

Commit 116e44f

Browse files
committed
add rake lit:export to readme
1 parent a02be42 commit 116e44f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,18 @@ Once you call `I18n.t()` function from your views, *Lit* is asked whether it has
3030

3131
To optimize translation key lookup, *Lit* can use different cache engines. For production with many workers `redis` is suggested, for local development `hash` will be fine (`hash` is stored in memory, so if you have many workers and will update translation value in backend, only one worker will have proper translation in it's cache - db will be updated anyway).
3232

33+
Keys ending with `_html` have auto wysiwyg support.
34+
35+
You can also export translations using rake task
36+
```bash
37+
$ rake lit:export
38+
```
39+
You may also give it extra env variables to limit the export results.
40+
```bash
41+
$ LOCALES=en,de rake lit:export
42+
```
43+
44+
3345
### Installation
3446

3547
1. Add `lit` gem to your `Gemfile`

0 commit comments

Comments
 (0)