You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/cli/src/cli/cmd/ci/index.ts
+24-8Lines changed: 24 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -20,21 +20,37 @@ interface CIOptions {
20
20
21
21
exportdefaultnewCommand()
22
22
.command("ci")
23
-
.description("Run Lingo.dev CI/CD action")
23
+
.description("Run localization pipeline in CI/CD environment")
24
24
.helpOption("-h, --help","Show help")
25
-
.option("--parallel [boolean]","Run in parallel mode",parseBooleanArg)
26
-
.option("--api-key <key>","API key")
25
+
.option(
26
+
"--parallel [boolean]",
27
+
"Process translations concurrently for faster execution. Defaults to false",
28
+
parseBooleanArg,
29
+
)
30
+
.option(
31
+
"--api-key <key>",
32
+
"Override API key from settings or environment variables",
33
+
)
27
34
.option(
28
35
"--pull-request [boolean]",
29
-
"Create a pull request with the changes",
36
+
"Create or update translations on a dedicated branch and manage pull requests automatically. When false, commits directly to current branch. Defaults to false",
Copy file name to clipboardExpand all lines: packages/cli/src/cli/cmd/i18n.ts
+14-12Lines changed: 14 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -39,53 +39,55 @@ import { createDeltaProcessor } from "../utils/delta";
39
39
40
40
exportdefaultnewCommand()
41
41
.command("i18n")
42
-
.description("Run Localization engine")
42
+
.description(
43
+
"DEPRECATED: Run localization pipeline (prefer `run` command instead)",
44
+
)
43
45
.helpOption("-h, --help","Show help")
44
46
.option(
45
47
"--locale <locale>",
46
-
"Locale to process",
48
+
"Limit processing to the listed target locale codes from i18n.json. Repeat the flag to include multiple locales. Defaults to all configured target locales",
"Limit processing to specific bucket types defined in i18n.json (e.g., json, yaml, android). Repeat the flag to include multiple bucket types. Defaults to all buckets",
"Key to process. Process only a specific translation key, useful for debugging or updating a single entry",
58
+
"Limit processing to a single translation key by exact match. Filters all buckets and locales to process only this key, useful for testing or debugging specific translations. Example: auth.login.title",
57
59
)
58
60
.option(
59
61
"--file [files...]",
60
-
"File to process. Process only a specific path, may contain asterisk * to match multiple files. Useful if you have a lot of files and want to focus on a specific one. Specify more files separated by commas or spaces.",
62
+
"Filter processing to only buckets whose file paths contain these substrings. Example: 'components' to process only files in components directories",
61
63
)
62
64
.option(
63
65
"--frozen",
64
-
`Run in read-only mode - fails if any translations need updating, useful for CI/CD pipelines to detect missing translations`,
66
+
"Validate translations are up-to-date without making changes - fails if source files, target files, or lockfile are out of sync. Ideal for CI/CD to ensure translation consistency before deployment",
65
67
)
66
68
.option(
67
69
"--force",
68
-
"Ignore lockfile and process all keys, useful for full re-translation",
70
+
"Force re-translation of all keys, bypassing change detection. Useful when you want to regenerate translations with updated AI models or translation settings",
69
71
)
70
72
.option(
71
73
"--verbose",
72
-
"Show detailed output including intermediate processing data and API communication details",
74
+
"Print the translation data being processed as formatted JSON for each bucket and locale",
73
75
)
74
76
.option(
75
77
"--interactive",
76
-
"Enable interactive mode for reviewing and editing translations before they are applied",
78
+
"Review and edit AI-generated translations interactively before applying changes to files",
77
79
)
78
80
.option(
79
81
"--api-key <api-key>",
80
-
"Explicitly set the API key to use, override the default API key from settings",
82
+
"Override API key from settings or environment variables",
81
83
)
82
84
.option(
83
85
"--debug",
84
-
"Pause execution at start for debugging purposes, waits for user confirmation before proceeding",
86
+
"Pause before processing localization so you can attach a debugger",
85
87
)
86
88
.option(
87
89
"--strict",
88
-
"Stop processing on first error instead of continuing with other locales/buckets",
90
+
"Stop immediately on first error instead of continuing to process remaining buckets and locales (fail-fast mode)",
0 commit comments