@plop-next/i18n 0.1.0 → 0.1.3

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.
Files changed (3) hide show
  1. package/README.md +52 -1
  2. package/package.json +5 -5
  3. package/CHANGELOG.md +0 -24
package/README.md CHANGED
@@ -1 +1,52 @@
1
- # i18n
1
+ # @plop-next/i18n
2
+
3
+ Internationalization plugin for plop-next.
4
+
5
+ This package is designed to be used with `@plop-next/cli`.
6
+
7
+ For normal usage, treat it as a CLI extension layer (not a standalone package).
8
+
9
+ ## Installation
10
+
11
+ ```bash
12
+ npm install -D @plop-next/cli @plop-next/i18n
13
+ ```
14
+
15
+ or:
16
+
17
+ ```bash
18
+ yarn add -D @plop-next/cli @plop-next/i18n
19
+ ```
20
+
21
+ ## Usage with CLI
22
+
23
+ ```ts
24
+ import type { PlopNext } from "@plop-next/cli";
25
+ import { PlopNextI18n } from "@plop-next/i18n";
26
+
27
+ export default function plop(plop: PlopNext) {
28
+ const i18n = new PlopNextI18n(plop);
29
+
30
+ i18n.registerLocale("fr", {
31
+ cli: {
32
+ selectGenerator: "Choisissez un generateur",
33
+ },
34
+ });
35
+
36
+ plop.useI18n({ force: "fr" });
37
+ }
38
+ ```
39
+
40
+ ## Built-in locales
41
+
42
+ - `en`
43
+ - `es`
44
+ - `fr`
45
+ - `pt`
46
+ - `zh`
47
+
48
+ ## Links
49
+
50
+ - Documentation: [https://nivvdiy.github.io/plop-next/](https://nivvdiy.github.io/plop-next/)
51
+ - Repository: [https://github.com/Nivvdiy/plop-next](https://github.com/Nivvdiy/plop-next)
52
+ - Issues: [https://github.com/Nivvdiy/plop-next/issues](https://github.com/Nivvdiy/plop-next/issues)
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@plop-next/i18n",
3
- "version": "0.1.0",
3
+ "version": "0.1.3",
4
4
  "description": "Internationalization utilities for plop-next",
5
5
  "bugs": {
6
- "url": "https://github.com/nivvdiy/plop-next/issues"
6
+ "url": "https://github.com/Nivvdiy/plop-next/issues"
7
7
  },
8
8
  "license": "MIT",
9
9
  "author": "Nivvdiy <nivvdiy@example.com>",
@@ -14,7 +14,7 @@
14
14
  "repository": {
15
15
  "directory": "packages/i18n",
16
16
  "type": "git",
17
- "url": "https://github.com/nivvdiy/plop-next.git"
17
+ "url": "https://github.com/Nivvdiy/plop-next.git"
18
18
  },
19
19
  "scripts": {
20
20
  "build": "tsup src/index.ts --format esm --dts",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@inquirer/i18n": "^1.0.2",
26
- "@plop-next/core": "0.1.0",
26
+ "@plop-next/core": "workspace:*",
27
27
  "dlv": "^1.1.3",
28
28
  "resolve": "^1.22.11",
29
29
  "tinyglobby": "^0.2.15"
@@ -39,4 +39,4 @@
39
39
  },
40
40
  "type": "module",
41
41
  "types": "dist/index.d.ts"
42
- }
42
+ }
package/CHANGELOG.md DELETED
@@ -1,24 +0,0 @@
1
- # @plop-next/i18n
2
-
3
- ## 0.1.0
4
-
5
- ### Minor Changes
6
-
7
- - "@plop-next/cli": minor
8
-
9
- "@plop-next/core": minor
10
-
11
- "@plop-next/i18n": minor
12
-
13
- Refactor internal generator prompt handling from generator-select to generatorList across cli, core, and i18n.
14
-
15
- Reserve generatorList for internal generator selection and improve validation and error messages.
16
-
17
- Align theme selector flow and generated scaffold theme slots with generatorList.
18
-
19
- Update i18n/theme integrations and tests to keep behavior consistent.
20
-
21
- ### Patch Changes
22
-
23
- - Updated dependencies
24
- - @plop-next/core@0.1.0