astro-blog-kit 0.2.5 → 0.2.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.
Files changed (3) hide show
  1. package/bin/cli.js +5 -3
  2. package/cli.ts +6 -4
  3. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -65,10 +65,12 @@ async function main() {
65
65
  { value: "cards", label: "Cards \u2014 image background + text overlay" }
66
66
  ]
67
67
  }),
68
- locale: () => p.text({
68
+ locale: () => p.select({
69
69
  message: "Default locale",
70
- placeholder: "en",
71
- initialValue: "en"
70
+ options: [
71
+ { value: "en", label: "English" },
72
+ { value: "es", label: "Espa\xF1ol" }
73
+ ]
72
74
  }),
73
75
  i18n: () => p.confirm({
74
76
  message: "Enable i18n (multiple languages)?",
package/cli.ts CHANGED
@@ -95,10 +95,12 @@ async function main() {
95
95
  }),
96
96
 
97
97
  locale: () =>
98
- p.text({
98
+ p.select({
99
99
  message: "Default locale",
100
- placeholder: "en",
101
- initialValue: "en",
100
+ options: [
101
+ { value: "en", label: "English" },
102
+ { value: "es", label: "Español" },
103
+ ],
102
104
  }),
103
105
 
104
106
  i18n: () =>
@@ -163,7 +165,7 @@ async function main() {
163
165
  LAYOUT_CLOSE: hasLayout
164
166
  ? `</Layout>`
165
167
  : ` </body>\n</html>`,
166
- ...t
168
+ ...t
167
169
  };
168
170
 
169
171
  // ── Copia archivos ────────────────────────────────────────
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-blog-kit",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "A ready-to-use blog system for Astro with WordPress headless support, optional i18n, multiple layouts, and a comment system.",
5
5
  "type": "module",
6
6
  "license": "MIT",