Skip to content

Commit 1e5830f

Browse files
authored
feat(cli): add deprecation warning to 'i18n' command (#1753)
Co-authored-by: Andrei Hirsa <--global>
1 parent b563670 commit 1e5830f

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

.changeset/wild-cameras-wash.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
---
2+
"lingo.dev": patch
23
---
4+
5+
Add deprecation warning to 'i18n' command, directing users to use 'run' instead

packages/cli/src/cli/cmd/i18n.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,16 @@ export default new Command()
9494
updateGitignore();
9595

9696
const ora = Ora();
97+
98+
// Show deprecation warning
99+
console.log();
100+
ora.warn(
101+
chalk.yellow(
102+
" DEPRECATED: 'i18n' is deprecated. Please use 'run' instead. Docs: https://lingo.dev/cli/commands/run",
103+
),
104+
);
105+
console.log();
106+
97107
let flags: ReturnType<typeof parseFlags>;
98108

99109
try {

0 commit comments

Comments
 (0)