@kopynator/cli 1.0.3 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -8,7 +8,7 @@ Manage your internationalization workflow directly from your terminal.
8
8
  You don't need to install it globally! We recommend using `npx` for the latest version:
9
9
 
10
10
  ```bash
11
- npx @kopynator/cli <command>
11
+ npx -y @kopynator/cli <command>
12
12
  ```
13
13
 
14
14
  If you prefer a global installation:
@@ -23,21 +23,21 @@ npm install -g @kopynator/cli
23
23
  Sets up Kopynator in your project. Creates the configuration file and guides you verify the setup.
24
24
 
25
25
  ```bash
26
- npx @kopynator/cli init
26
+ npx -y @kopynator/cli init
27
27
  ```
28
28
 
29
29
  ### 2. Check / Validate
30
30
  Validates your local JSON translation files for syntax errors. Useful for CI/CD pipelines.
31
31
 
32
32
  ```bash
33
- npx @kopynator/cli check
33
+ npx -y @kopynator/cli check
34
34
  ```
35
35
 
36
36
  ### 3. Sync (Premium)
37
37
  Synchronizes your local keys with the Kopynator Cloud. Uploads new keys and downloads approved translations.
38
38
 
39
39
  ```bash
40
- npx @kopynator/cli sync
40
+ npx -y @kopynator/cli sync
41
41
  ```
42
42
 
43
43
  ## Configuration
package/dist/index.js CHANGED
@@ -51,7 +51,45 @@ async function initCommand() {
51
51
  type: "checkbox",
52
52
  name: "languages",
53
53
  message: "Select supported languages:",
54
- choices: ["en", "es", "fr", "de", "it", "pt"],
54
+ choices: [
55
+ "en",
56
+ "es",
57
+ "fr",
58
+ "de",
59
+ "it",
60
+ "pt",
61
+ "zh",
62
+ "ja",
63
+ "en-US",
64
+ "en-GB",
65
+ "pt-BR",
66
+ "pt-PT",
67
+ "ar",
68
+ "bn",
69
+ "ca",
70
+ "cs",
71
+ "da",
72
+ "el",
73
+ "fi",
74
+ "he",
75
+ "hi",
76
+ "hu",
77
+ "id",
78
+ "ko",
79
+ "ms",
80
+ "nl",
81
+ "no",
82
+ "pl",
83
+ "ro",
84
+ "ru",
85
+ "sv",
86
+ "ta",
87
+ "te",
88
+ "th",
89
+ "tr",
90
+ "uk",
91
+ "vi"
92
+ ],
55
93
  default: ["en", "es"]
56
94
  }
57
95
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopynator/cli",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "description": "CLI tool for Kopynator - The i18n management solution",
5
5
  "bin": {
6
6
  "kopynator": "dist/index.js"
@@ -0,0 +1,3 @@
1
+ export * from './init';
2
+ export * from './check';
3
+ export * from './sync';
@@ -23,7 +23,11 @@ export async function initCommand() {
23
23
  type: 'checkbox',
24
24
  name: 'languages',
25
25
  message: 'Select supported languages:',
26
- choices: ['en', 'es', 'fr', 'de', 'it', 'pt'],
26
+ choices: [
27
+ 'en', 'es', 'fr', 'de', 'it', 'pt', 'zh', 'ja',
28
+ 'en-US', 'en-GB', 'pt-BR', 'pt-PT',
29
+ 'ar', 'bn', 'ca', 'cs', 'da', 'el', 'fi', 'he', 'hi', 'hu', 'id', 'ko', 'ms', 'nl', 'no', 'pl', 'ro', 'ru', 'sv', 'ta', 'te', 'th', 'tr', 'uk', 'vi'
30
+ ],
27
31
  default: ['en', 'es']
28
32
  }
29
33
  ]);
package/src/index.ts CHANGED
@@ -1,9 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from 'commander';
3
3
  import chalk from 'chalk';
4
- import { initCommand } from './commands/init';
5
- import { checkCommand } from './commands/check';
6
- import { syncCommand } from './commands/sync';
4
+ import { initCommand, checkCommand, syncCommand } from './commands';
7
5
 
8
6
  const program = new Command();
9
7