|
| 1 | +# Copy this file to .env and fill in the values for local development. |
| 2 | +# cp .env.example .env |
| 3 | +# |
| 4 | +# .env is git-ignored; never commit real credentials. |
| 5 | +# |
| 6 | +# Usage – run a script locally with its environment loaded automatically: |
| 7 | +# npm run start:progress – full run (SVGs + GitHub issue update) |
| 8 | +# npm run start:en-us – sync en-US translations |
| 9 | +# npm run start:issues – sync Crowdin issues → GitHub Issues |
| 10 | +# npm run start:distribution – sync distribution CDN files |
| 11 | +# |
| 12 | +# Requires Node.js 20.6+ (uses the built-in --env-file flag). |
| 13 | + |
| 14 | +# |
| 15 | +# Crowdin |
| 16 | +# |
| 17 | + |
| 18 | +# Personal access token from https://crowdin.com/settings#api-key |
| 19 | +# Required by: crowdin-progress, sync-crowdin-en-us, sync-crowdin-issues |
| 20 | +CROWDIN_TOKEN= |
| 21 | + |
| 22 | +# Comma-separated list of Crowdin project IDs |
| 23 | +# Required by: crowdin-progress, sync-crowdin-en-us, sync-crowdin-issues |
| 24 | +CROWDIN_PROJECT_IDS= |
| 25 | + |
| 26 | +# Comma-separated Crowdin distribution hashes (from the Distributions page) |
| 27 | +# Required by: sync-crowdin-distribution |
| 28 | +CROWDIN_DISTRIBUTION_IDS= |
| 29 | + |
| 30 | +# |
| 31 | +# GitHub |
| 32 | +# |
| 33 | + |
| 34 | +# GitHub personal access token with 'repo' scope (issues read/write) |
| 35 | +# Required by: crowdin-progress (unless SVG_ONLY=true), sync-crowdin-issues |
| 36 | +GH_BOT_TOKEN= |
| 37 | + |
| 38 | +# Repository in "owner/repo" format |
| 39 | +# Required by: crowdin-progress (unless SVG_ONLY=true), sync-crowdin-issues |
| 40 | +GITHUB_REPOSITORY=LizardByte/i18n |
| 41 | + |
| 42 | +# |
| 43 | +# crowdin-progress options |
| 44 | +# |
| 45 | + |
| 46 | +# Directory where SVG progress graphs are written. |
| 47 | +# Default: /tmp/crowdin-progress |
| 48 | +# SVG_OUTPUT_DIR=./dist-pages/progress |
| 49 | + |
| 50 | +# Set to true to generate SVG graphs only and skip all GitHub API calls. |
| 51 | +# When true, GH_BOT_TOKEN and GITHUB_REPOSITORY are not required. |
| 52 | +SVG_ONLY=false |
| 53 | + |
| 54 | +# |
| 55 | +# sync-crowdin-distribution options |
| 56 | +# |
| 57 | + |
| 58 | +# Directory where distribution files are written. |
| 59 | +# Default: dist-pages/dist |
| 60 | +# OUTPUT_DIR=./dist-pages/dist |
0 commit comments