(spinner: Ora)
| 81 | } |
| 82 | |
| 83 | function makeGithubInitializer(spinner: Ora) { |
| 84 | return makePlatformInitializer( |
| 85 | { |
| 86 | name: "GitHub Action", |
| 87 | checkPath: ".github", |
| 88 | ciConfigPath: ".github/workflows/i18n.yml", |
| 89 | ciConfigContent: `name: Lingo.dev i18n |
| 90 | |
| 91 | on: |
| 92 | push: |
| 93 | branches: |
| 94 | - main |
| 95 | |
| 96 | permissions: |
| 97 | contents: write |
| 98 | pull-requests: write |
| 99 | |
| 100 | jobs: |
| 101 | i18n: |
| 102 | name: Run i18n |
| 103 | runs-on: ubuntu-latest |
| 104 | steps: |
| 105 | - uses: actions/checkout@v4 |
| 106 | - uses: lingodotdev/lingo.dev@main |
| 107 | with: |
| 108 | api-key: \${{ secrets.LINGO_API_KEY }} |
| 109 | `, |
| 110 | }, |
| 111 | spinner, |
| 112 | ); |
| 113 | } |
| 114 | |
| 115 | function makeBitbucketInitializer(spinner: Ora) { |
| 116 | return makePlatformInitializer( |
no test coverage detected