Insert locale data into your locales
directory.
Report an issue · Suggest a feature
Remember to always follow the code of conduct
Warning
This project is still in development, so it may not be stable.
You can use Homebrew or go to the Releases page and download the latest version for your OS.
brew tap AlejandroSuero/aome
brew install AlejandroSuero/aome/gil
go-insert-locale -input <input-file> -output <output-dir>
This will read the JSON file provided in <input-file>
and insert it into the
directory provided in <output-dir>
.
{
"hello": {
"en": "Hello",
"es": "Hola"
}
}
This will create the following files in <output-dir>
:
en.json
{
"hello": "Hello"
}
es.json
{
"hello": "Hola"
}
go-insert-locale -input locales.json -output locales
Thank you to everyone that is contributing and to those who want to contribute. Any contribution is welcomed!
Quick guide:
- Fork this project.
- Clone your fork (
git clone <fork-URL>
). - Add main repo as remote (
git remote add upstream <main-repo-URL>
). - Create a branch for your changes (
git switch -c feature/your-feature
orgit switch -c fix/your-fix
). - Commit your changes (
git commit -m "feat(...): ..."
). - Push to your fork (
git push origin <branch-name>
). - Open a PR.
For more information, check CONTRIBUTING.md.
Thanks goes to these wonderful people that have contributed to this project: