lingo.dev
lingo.dev copied to clipboard
feat(cli): add github subcommand to lingo.dev init
Fixes #1096
- Implemented the init github command
- Able to create new
.github/workflows/i18n.ymlworkflow - Also, able to overwrite if
i18n.ymlis existed before. - Printing the console message reminding users to add LINGODOTDEV_API_KEY as a repository secret
Please have a look at the implementation:
ankur@ankur:~/Desktop/development/lingo.dev/packages/cli$ pnpm lingo.dev init github
> [email protected] lingo.dev /home/ankur/Desktop/development/lingo.dev/packages/cli
> node --inspect=9229 ./bin/cli.mjs "init" "github"
Debugger listening on ws://127.0.0.1:9229/c52595eb-280a-456e-93fe-00ea4faa39dc
For help, see: https://nodejs.org/en/docs/inspector
✔ Primary language of your application that content will be translated from. Defaults to 'en'
en
✔ Target languages to translate to. Accepts locale codes like 'es', 'fr', 'de-AT' separated by
commas or spaces. Defaults to 'es' es
✔ File format for your translation files. Must match a supported type such as json, yaml, or
android json
✔ Workflow file .github/workflows/i18n.yml already exists. Overwrite? Yes
✔ Created .github/workflows/i18n.yml
⚠️ Remember to add your LINGODOTDEV_API_KEY to your GitHub repository secrets:
1. Get your API key from: https://lingo.dev
2. Add it to your repo: Settings → Secrets → Actions → New repository secret
GitHub Actions setup complete.
@ankur0904 any updates here?
@sumitsaurabh927 I’m currently tied up with some personal work, so I won’t be able to continue on this issue. Anyone interested can feel free to take it up.
Closing this PR as the author indicated they won't be able to continue. Thanks for your contribution! Anyone interested can pick up this issue.