https://github.com/thesoftwarehouse/babelsheet-js
https://github.com/thesoftwarehouse/babelsheet-js
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/thesoftwarehouse/babelsheet-js
- Owner: TheSoftwareHouse
- License: mit
- Created: 2018-08-28T13:35:36.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T11:29:03.000Z (over 2 years ago)
- Last Synced: 2025-04-17T07:25:53.622Z (about 1 month ago)
- Language: TypeScript
- Size: 2.83 MB
- Stars: 40
- Watchers: 5
- Forks: 7
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Babelsheet [](https://travis-ci.org/TheSoftwareHouse/babelsheet-js)
Babelsheet node service allows you to translate all of the UI / app content to specific language. As a user interface we use google spreadsheets and translations are synchronised every 5 minutes. This service contains a scheduler to synchronise translations, a web server allowing you to fetch them, and a CLI tools which can generate translations in various formats. What's more there is a cache layer for better performance. Babelsheet supports formats:
- iOS
- Android
- json
- ymlNo more dealing with complicated paid translation services or problems with multiple users working at the same time!
## Setup
### CLI
1. Create `.env.babelsheet` from `.env.dist` file with required environment variables ([more info here](https://thesoftwarehouse.github.io/babelsheet-js/configuration#configuration-file))
2. Run `npm i -g babelsheet`
3. `babelsheet generate` ([more info here](https://thesoftwarehouse.github.io/babelsheet-js/services#cli))### Docker
1. Create `.env.babelsheet` from `.env.dist` file with required environment variables ([more info here](https://thesoftwarehouse.github.io/babelsheet-js/configuration#configuration-file))
2. Create `docker-compose.yml` from `docker-compose.yml.dist` ([more info here](https://thesoftwarehouse.github.io/babelsheet-js/docker#docker-compose))
3. `docker-compose up`## Example usage
### CLI
`babelsheet generate --format ios --path ./translations` - generates translations in iOS format in `./translations` folder.
### API
`curl -X GET -g 'http://localhost:3000/translations?filters[]=en_US.CORE.LABELS&format=android'` - endpoint which returns filtered translations in android format