https://github.com/viewstools/local
Get your Views text into a JSON for ready for I18n
https://github.com/viewstools/local
Last synced: about 1 year ago
JSON representation
Get your Views text into a JSON for ready for I18n
- Host: GitHub
- URL: https://github.com/viewstools/local
- Owner: viewstools
- Created: 2018-02-13T12:00:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-27T16:42:55.000Z (about 8 years ago)
- Last Synced: 2025-02-09T19:35:28.793Z (over 1 year ago)
- Language: JavaScript
- Size: 48.8 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @viewstools/local
Get your Views text into JSON files for ready for I18n and back
Install it with:
```
yarn add --dev @viewstools/local
```
Set it up on your `package.json`, on the `scripts` section add:
```
"views:local:get": "views-local get",
"views:local:set": "views-local set"
```
Run it like:
```
# Extract i18n text strings into JSON files in a translations folder
# named after the language. The default is en.
yarn views:local:get
# Put the translations back into your view files. It will read the JSON
# files from your translations folder.
yarn views:local:set
```
License BSD-3-Clause
(c) 2018 UXtemple Ltd.