lingo.dev icon indicating copy to clipboard operation
lingo.dev copied to clipboard

feat(cli): add github subcommand to lingo.dev init

Open ankur0904 opened this issue 4 months ago • 2 comments

Fixes #1096

  • Implemented the init github command
  • Able to create new .github/workflows/i18n.yml workflow
  • Also, able to overwrite if i18n.yml is 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 avatar Oct 11 '25 17:10 ankur0904

@ankur0904 any updates here?

sumitsaurabh927 avatar Nov 19 '25 05:11 sumitsaurabh927

@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.

ankur0904 avatar Nov 19 '25 14:11 ankur0904

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.

github-actions[bot] avatar Dec 08 '25 00:12 github-actions[bot]