- JavaScript 98%
- HTML 1.4%
- CSS 0.6%
| old_files | ||
| public | ||
| .gitignore | ||
| .prettierignore | ||
| .prettierrc.json | ||
| CODE_OF_CONDUCT.md.md | ||
| CONTRIBUTING.md | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
JSON Translations Editor
A simple editor for @ngx-translate/core library written in HTML, JS, Boostrap.
For @ngx-translate/core or another library that uses JSON for translations.
Getting Started
For regular use
- ✅ online: JSON translation web
- ✅ offline v1: clone the repository then place elements of /public inside your webserver like
python3 -m http.server - 🔴 offline v2: Download the bundle file translator [Not available]
For development
Important!
to work with ionic serve approaching live reload you must change baseHref in Angular.json to "baseHref": "/" and for production "baseHref": "/json-translations-editor/".
This can be automated by running these commands
- Development baseHref:
npm run url:dev - Production baseHref:
npm run url:prod(innpm run deploy:productionthis is included)
Prerequisites Requirements for the software and other tools to build, test and push
- A code editor like Vscode or similar
- Simple webserver like
python3 -m http.server
Code style format:
Install prettier package for code style format
npm install
Check code style
npm run pretty-check
Run automatic code formatter
npm run pretty-write
Edit the code:
The code is placed in the folder src/
Deployment
To deploy code and place to docs/ and making available for github page
npm run deploy:production
To enable maintenance mode for github page
npm run deploy:manteinance-mode
Built With
- Ionic Frameowrk - Used for the editor
- Contributor Covenant - Used for the Code of Conduct
- Github pages - Used to host and deploy the web-app online
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use Semantic Versioning for versioning. For the versions available, see the tags on this repository.
Authors
- Pere Rollon Baiges - for 'JSON Translations Editor' - sys-walker
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Acknowledgments
Eventbus implementation
- Luixaviles - For events management in the editor
Boostrap creators
Boostrap darkmode
- Vino Rodrigues - CSS dark-mode used in the 'JSON Translations Editor' (in
old-files/) - bootstrap-dark-5