@pantoken/scaffold 1.1.0 → 1.2.0
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 +10 -3
- package/dist/cli.d.mts +25 -8
- package/dist/cli.mjs +217 -217
- package/dist/{index-CyolWk0E.d.mts → index-D2-Dhvt8.d.mts} +4 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src-DxBSPAO9.mjs +903 -0
- package/package.json +18 -18
- package/dist/src-CdZxIoo2.mjs +0 -304
package/dist/cli.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as scaffoldProject, n as isScaffoldPlatform, o as validateThemeMode, r as resolveScaffoldPlatform, s as validateThemeVariant, t as SCAFFOLD_PLATFORMS } from "./src-
|
|
1
|
+
import { c as SUPPORTED_LOCALES, d as validateLocaleTag, i as scaffoldProject, l as createLocaleLookup, n as isScaffoldPlatform, o as validateThemeMode, r as resolveScaffoldPlatform, s as validateThemeVariant, t as SCAFFOLD_PLATFORMS, u as detectLocale } from "./src-DxBSPAO9.mjs";
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import { basename, join } from "node:path";
|
|
4
4
|
import { CDN_PROVIDERS } from "@pantoken/canvas-theme-editor";
|
|
@@ -7,47 +7,6 @@ import { cancel, isCancel, select, spinner, text } from "@clack/prompts";
|
|
|
7
7
|
import tab from "@bomb.sh/tab/commander";
|
|
8
8
|
import { homedir } from "node:os";
|
|
9
9
|
import { execFileSync } from "node:child_process";
|
|
10
|
-
//#region src/locale.ts
|
|
11
|
-
/**
|
|
12
|
-
* Resolves the active locale: --lang flag \> LC_ALL/LANG env \> Intl \> "en".
|
|
13
|
-
*
|
|
14
|
-
* @param options - Detection options. `langFlag` is an optional --lang flag value; `env` is
|
|
15
|
-
* environment variables (defaults to process.env); `intl` is an optional injected
|
|
16
|
-
* Intl.DateTimeFormat locale function (for testing).
|
|
17
|
-
* @returns The resolved locale tag
|
|
18
|
-
*/
|
|
19
|
-
function detectLocale(options) {
|
|
20
|
-
if (options.langFlag) return options.langFlag;
|
|
21
|
-
const env = options.env ?? process.env;
|
|
22
|
-
const locale = env.LC_ALL ?? env.LANG ?? "";
|
|
23
|
-
if (locale) return locale.split(".")[0].split("_")[0] || "en";
|
|
24
|
-
try {
|
|
25
|
-
const tag = (options.intl ?? (() => Intl.DateTimeFormat().resolvedOptions().locale))();
|
|
26
|
-
if (tag) return tag.split("-")[0] || "en";
|
|
27
|
-
} catch {}
|
|
28
|
-
return "en";
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Builds a lookup over the given locale bundles, falling back to `bundles[fallback]`
|
|
32
|
-
* for any key missing in the resolved locale.
|
|
33
|
-
*
|
|
34
|
-
* @param bundles - Record mapping locale tags to string bundles
|
|
35
|
-
* @param resolvedLocale - The locale to use (typically from detectLocale)
|
|
36
|
-
* @param fallback - The fallback locale when a key is missing (default "en")
|
|
37
|
-
* @returns A LocaleLookup object with a `t` function
|
|
38
|
-
*/
|
|
39
|
-
function createLocaleLookup(bundles, resolvedLocale, fallback = "en") {
|
|
40
|
-
const resolved = bundles[resolvedLocale] ?? bundles[fallback] ?? {};
|
|
41
|
-
const fallbackBundle = bundles[fallback] ?? {};
|
|
42
|
-
return {
|
|
43
|
-
locale: resolvedLocale,
|
|
44
|
-
t: (key, params) => {
|
|
45
|
-
let value = resolved[key] ?? fallbackBundle[key] ?? key;
|
|
46
|
-
if (params) for (const [param, val] of Object.entries(params)) value = value.replace(new RegExp(`\\{\\{${param}\\}\\}`, "g"), val);
|
|
47
|
-
return value;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
10
|
//#endregion
|
|
52
11
|
//#region generated/locales/index.ts
|
|
53
12
|
const MESSAGES = {
|
|
@@ -61,10 +20,10 @@ const MESSAGES = {
|
|
|
61
20
|
"nextStepsNav": "cd {{dir}}",
|
|
62
21
|
"nextStepsInstall": "تثبيت التبعيات: {{command}}",
|
|
63
22
|
"nextStepsDevServer": "شغّل خادم التطوير (إذا كان القالب يحتوي واحدًا)",
|
|
64
|
-
"getStartedHeading": "
|
|
65
|
-
"installSpinnerStart": "
|
|
66
|
-
"installSpinnerStop": "
|
|
67
|
-
"installSpinnerFailed": "
|
|
23
|
+
"getStartedHeading": "الخطوات التالية:",
|
|
24
|
+
"installSpinnerStart": "تثبيت التبعيات: {{command}}",
|
|
25
|
+
"installSpinnerStop": "تم تثبيت التبعيات.",
|
|
26
|
+
"installSpinnerFailed": "تثبيت التبعيات: {{command}}",
|
|
68
27
|
"notesHeading": "ملاحظة:",
|
|
69
28
|
"caveatsHeading": "تنبيه:",
|
|
70
29
|
"errorMissingPlatform": "الوسيط المطلوب \"platform\" مفقود. متوقع أحد القيم: {{platforms}}",
|
|
@@ -119,10 +78,10 @@ const MESSAGES = {
|
|
|
119
78
|
"nextStepsNav": "cd {{dir}}",
|
|
120
79
|
"nextStepsInstall": "Տեղադրել կախվածությունները՝ {{command}}",
|
|
121
80
|
"nextStepsDevServer": "Ստարտ վարել dev սերվերը (եթե ձեր տեմպլեյթը ունի մեկը)",
|
|
122
|
-
"getStartedHeading": "
|
|
123
|
-
"installSpinnerStart": "
|
|
124
|
-
"installSpinnerStop": "
|
|
125
|
-
"installSpinnerFailed": "
|
|
81
|
+
"getStartedHeading": "Հաջորդ քայլերը:",
|
|
82
|
+
"installSpinnerStart": "Տեղադրել կախվածությունները՝ {{command}}",
|
|
83
|
+
"installSpinnerStop": "Կախվածությունները տեղադրված են.",
|
|
84
|
+
"installSpinnerFailed": "Տեղադրել կախվածությունները՝ {{command}}",
|
|
126
85
|
"notesHeading": "Նշում:",
|
|
127
86
|
"caveatsHeading": "Ուշադրություն:",
|
|
128
87
|
"errorMissingPlatform": "Բացակայում է պարտադիր արգումենտը \"platform\". Ապահովված լիներ այս մեկը՝ {{platforms}}",
|
|
@@ -177,10 +136,10 @@ const MESSAGES = {
|
|
|
177
136
|
"nextStepsNav": "cd {{dir}}",
|
|
178
137
|
"nextStepsInstall": "Instal·la les dependències: {{command}}",
|
|
179
138
|
"nextStepsDevServer": "Inicia el servidor de desenvolupament (si la plantilla en té un)",
|
|
180
|
-
"getStartedHeading": "
|
|
181
|
-
"installSpinnerStart": "
|
|
182
|
-
"installSpinnerStop": "
|
|
183
|
-
"installSpinnerFailed": "
|
|
139
|
+
"getStartedHeading": "Passos següents:",
|
|
140
|
+
"installSpinnerStart": "Instal·la les dependències: {{command}}",
|
|
141
|
+
"installSpinnerStop": "Dependències instal·lades.",
|
|
142
|
+
"installSpinnerFailed": "Instal·la les dependències: {{command}}",
|
|
184
143
|
"notesHeading": "Nota:",
|
|
185
144
|
"caveatsHeading": "Advertència:",
|
|
186
145
|
"errorMissingPlatform": "Falta l'argument obligatori \"platform\". S'esperava un de: {{platforms}}",
|
|
@@ -235,10 +194,10 @@ const MESSAGES = {
|
|
|
235
194
|
"nextStepsNav": "cd {{dir}}",
|
|
236
195
|
"nextStepsInstall": "Installer afhængigheder: {{command}}",
|
|
237
196
|
"nextStepsDevServer": "Start dev-serveren (hvis din skabelon har en)",
|
|
238
|
-
"getStartedHeading": "
|
|
239
|
-
"installSpinnerStart": "
|
|
240
|
-
"installSpinnerStop": "
|
|
241
|
-
"installSpinnerFailed": "
|
|
197
|
+
"getStartedHeading": "Næste skridt:",
|
|
198
|
+
"installSpinnerStart": "Installer afhængigheder: {{command}}",
|
|
199
|
+
"installSpinnerStop": "Afhængigheder installeret.",
|
|
200
|
+
"installSpinnerFailed": "Installer afhængigheder: {{command}}",
|
|
242
201
|
"notesHeading": "Bemærk:",
|
|
243
202
|
"caveatsHeading": "Forbehold:",
|
|
244
203
|
"errorMissingPlatform": "Mangler krævet argument \"platform\". Forventet en af: {{platforms}}",
|
|
@@ -293,10 +252,10 @@ const MESSAGES = {
|
|
|
293
252
|
"nextStepsNav": "cd {{dir}}",
|
|
294
253
|
"nextStepsInstall": "Installeer afhankelijkheden: {{command}}",
|
|
295
254
|
"nextStepsDevServer": "Start de dev-server (als je template er één heeft)",
|
|
296
|
-
"getStartedHeading": "
|
|
297
|
-
"installSpinnerStart": "
|
|
298
|
-
"installSpinnerStop": "
|
|
299
|
-
"installSpinnerFailed": "
|
|
255
|
+
"getStartedHeading": "Volgende stappen:",
|
|
256
|
+
"installSpinnerStart": "Installeer afhankelijkheden: {{command}}",
|
|
257
|
+
"installSpinnerStop": "Afhankelijkheden geïnstalleerd.",
|
|
258
|
+
"installSpinnerFailed": "Installeer afhankelijkheden: {{command}}",
|
|
300
259
|
"notesHeading": "Opmerking:",
|
|
301
260
|
"caveatsHeading": "Opmerking / waarschuwing:",
|
|
302
261
|
"errorMissingPlatform": "Ontbrekend verplicht argument \"platform\". Verwacht één van: {{platforms}}",
|
|
@@ -351,10 +310,10 @@ const MESSAGES = {
|
|
|
351
310
|
"nextStepsNav": "cd {{dir}}",
|
|
352
311
|
"nextStepsInstall": "Install dependencies: {{command}}",
|
|
353
312
|
"nextStepsDevServer": "Start the dev server (if your template has one)",
|
|
354
|
-
"getStartedHeading": "
|
|
355
|
-
"installSpinnerStart": "
|
|
313
|
+
"getStartedHeading": "Next steps:",
|
|
314
|
+
"installSpinnerStart": "Install dependencies: {{command}}",
|
|
356
315
|
"installSpinnerStop": "Dependencies installed.",
|
|
357
|
-
"installSpinnerFailed": "
|
|
316
|
+
"installSpinnerFailed": "Install dependencies: {{command}}",
|
|
358
317
|
"notesHeading": "Note:",
|
|
359
318
|
"caveatsHeading": "Caveat:",
|
|
360
319
|
"errorMissingPlatform": "Missing required argument \"platform\". Expected one of: {{platforms}}",
|
|
@@ -409,10 +368,10 @@ const MESSAGES = {
|
|
|
409
368
|
"nextStepsNav": "cd {{dir}}",
|
|
410
369
|
"nextStepsInstall": "Install dependencies: {{command}}",
|
|
411
370
|
"nextStepsDevServer": "Start the dev server (if your template has one)",
|
|
412
|
-
"getStartedHeading": "
|
|
413
|
-
"installSpinnerStart": "
|
|
371
|
+
"getStartedHeading": "Next steps:",
|
|
372
|
+
"installSpinnerStart": "Install dependencies: {{command}}",
|
|
414
373
|
"installSpinnerStop": "Dependencies installed.",
|
|
415
|
-
"installSpinnerFailed": "
|
|
374
|
+
"installSpinnerFailed": "Install dependencies: {{command}}",
|
|
416
375
|
"notesHeading": "Note:",
|
|
417
376
|
"caveatsHeading": "Caveat:",
|
|
418
377
|
"errorMissingPlatform": "Missing required argument \"platform\". Expected one of: {{platforms}}",
|
|
@@ -467,10 +426,10 @@ const MESSAGES = {
|
|
|
467
426
|
"nextStepsNav": "cd {{dir}}",
|
|
468
427
|
"nextStepsInstall": "Install dependencies: {{command}}",
|
|
469
428
|
"nextStepsDevServer": "Start the dev server (if your template has one)",
|
|
470
|
-
"getStartedHeading": "
|
|
471
|
-
"installSpinnerStart": "
|
|
429
|
+
"getStartedHeading": "Next steps:",
|
|
430
|
+
"installSpinnerStart": "Install dependencies: {{command}}",
|
|
472
431
|
"installSpinnerStop": "Dependencies installed.",
|
|
473
|
-
"installSpinnerFailed": "
|
|
432
|
+
"installSpinnerFailed": "Install dependencies: {{command}}",
|
|
474
433
|
"notesHeading": "Note:",
|
|
475
434
|
"caveatsHeading": "Caveat:",
|
|
476
435
|
"errorMissingPlatform": "Missing required argument \"platform\". Expected one of: {{platforms}}",
|
|
@@ -525,10 +484,10 @@ const MESSAGES = {
|
|
|
525
484
|
"nextStepsNav": "cd {{dir}}",
|
|
526
485
|
"nextStepsInstall": "Install dependencies: {{command}}",
|
|
527
486
|
"nextStepsDevServer": "Start the dev server (if your template has one)",
|
|
528
|
-
"getStartedHeading": "
|
|
529
|
-
"installSpinnerStart": "Installing dependencies
|
|
487
|
+
"getStartedHeading": "Next steps:",
|
|
488
|
+
"installSpinnerStart": "2. Installing dependencies",
|
|
530
489
|
"installSpinnerStop": "Dependencies installed.",
|
|
531
|
-
"installSpinnerFailed": "
|
|
490
|
+
"installSpinnerFailed": "2. Installing dependencies",
|
|
532
491
|
"notesHeading": "Note:",
|
|
533
492
|
"caveatsHeading": "Caveat:",
|
|
534
493
|
"errorMissingPlatform": "Missing required argument \"platform\". Expected one of: {{platforms}}",
|
|
@@ -583,10 +542,10 @@ const MESSAGES = {
|
|
|
583
542
|
"nextStepsNav": "cd {{dir}}",
|
|
584
543
|
"nextStepsInstall": "Asenna riippuvuudet: {{command}}",
|
|
585
544
|
"nextStepsDevServer": "Käynnistä kehityspalvelin (jos mallissasi on)",
|
|
586
|
-
"getStartedHeading": "
|
|
587
|
-
"installSpinnerStart": "
|
|
588
|
-
"installSpinnerStop": "
|
|
589
|
-
"installSpinnerFailed": "
|
|
545
|
+
"getStartedHeading": "Seuraavat vaiheet:",
|
|
546
|
+
"installSpinnerStart": "Asenna riippuvuudet: {{command}}",
|
|
547
|
+
"installSpinnerStop": "Riippuvuudet asennettu.",
|
|
548
|
+
"installSpinnerFailed": "Asenna riippuvuudet: {{command}}",
|
|
590
549
|
"notesHeading": "Huom:",
|
|
591
550
|
"caveatsHeading": "Varoitus:",
|
|
592
551
|
"errorMissingPlatform": "Puuttuu vaadittu argumentti \"platform\". Odotettu yksi seuraavista: {{platforms}}",
|
|
@@ -641,10 +600,10 @@ const MESSAGES = {
|
|
|
641
600
|
"nextStepsNav": "cd {{dir}}",
|
|
642
601
|
"nextStepsInstall": "Installer les dépendances : {{command}}",
|
|
643
602
|
"nextStepsDevServer": "Démarrer le serveur de développement (si votre modèle en propose un)",
|
|
644
|
-
"getStartedHeading": "
|
|
645
|
-
"installSpinnerStart": "
|
|
646
|
-
"installSpinnerStop": "
|
|
647
|
-
"installSpinnerFailed": "
|
|
603
|
+
"getStartedHeading": "Étapes suivantes :",
|
|
604
|
+
"installSpinnerStart": "Installer les dépendances : {{command}}",
|
|
605
|
+
"installSpinnerStop": "Dépendances installées.",
|
|
606
|
+
"installSpinnerFailed": "Installer les dépendances : {{command}}",
|
|
648
607
|
"notesHeading": "Remarque :",
|
|
649
608
|
"caveatsHeading": "Précaution :",
|
|
650
609
|
"errorMissingPlatform": "Argument requis manquant \"platform\". Attendu : l'un des suivants : {{platforms}}",
|
|
@@ -699,10 +658,10 @@ const MESSAGES = {
|
|
|
699
658
|
"nextStepsNav": "cd {{dir}}",
|
|
700
659
|
"nextStepsInstall": "Installer les dépendances : {{command}}",
|
|
701
660
|
"nextStepsDevServer": "Démarrer le serveur de développement (si votre modèle en fournit un)",
|
|
702
|
-
"getStartedHeading": "
|
|
703
|
-
"installSpinnerStart": "
|
|
704
|
-
"installSpinnerStop": "
|
|
705
|
-
"installSpinnerFailed": "
|
|
661
|
+
"getStartedHeading": "Étapes suivantes :",
|
|
662
|
+
"installSpinnerStart": "Installer les dépendances : {{command}}",
|
|
663
|
+
"installSpinnerStop": "Dépendances installées.",
|
|
664
|
+
"installSpinnerFailed": "Installer les dépendances : {{command}}",
|
|
706
665
|
"notesHeading": "Remarque :",
|
|
707
666
|
"caveatsHeading": "Précaution :",
|
|
708
667
|
"errorMissingPlatform": "Argument requis manquant \"platform\". Attendu : l'un de : {{platforms}}",
|
|
@@ -757,10 +716,10 @@ const MESSAGES = {
|
|
|
757
716
|
"nextStepsNav": "cd {{dir}}",
|
|
758
717
|
"nextStepsInstall": "Suiteáil spleáchais: {{command}}",
|
|
759
718
|
"nextStepsDevServer": "Tosaigh an freastalaí forbartha (má tá ceann sa téama agat)",
|
|
760
|
-
"getStartedHeading": "
|
|
761
|
-
"installSpinnerStart": "
|
|
762
|
-
"installSpinnerStop": "
|
|
763
|
-
"installSpinnerFailed": "
|
|
719
|
+
"getStartedHeading": "Céimeanna eile:",
|
|
720
|
+
"installSpinnerStart": "Suiteáil spleáchais: {{command}}",
|
|
721
|
+
"installSpinnerStop": "Spleáchais suiteáilte.",
|
|
722
|
+
"installSpinnerFailed": "Suiteáil spleáchais: {{command}}",
|
|
764
723
|
"notesHeading": "Nóta:",
|
|
765
724
|
"caveatsHeading": "Rabhadh:",
|
|
766
725
|
"errorMissingPlatform": "Easpa argóint riachtanach \"platform\". Bhíothas ag súil le ceann de: {{platforms}}",
|
|
@@ -815,10 +774,10 @@ const MESSAGES = {
|
|
|
815
774
|
"nextStepsNav": "cd {{dir}}",
|
|
816
775
|
"nextStepsInstall": "Abhängigkeiten installieren: {{command}}",
|
|
817
776
|
"nextStepsDevServer": "Entwicklungsserver starten (falls die Vorlage einen enthält)",
|
|
818
|
-
"getStartedHeading": "
|
|
819
|
-
"installSpinnerStart": "
|
|
820
|
-
"installSpinnerStop": "
|
|
821
|
-
"installSpinnerFailed": "
|
|
777
|
+
"getStartedHeading": "Nächste Schritte:",
|
|
778
|
+
"installSpinnerStart": "Abhängigkeiten installieren: {{command}}",
|
|
779
|
+
"installSpinnerStop": "Abhängigkeiten installiert.",
|
|
780
|
+
"installSpinnerFailed": "Abhängigkeiten installieren: {{command}}",
|
|
822
781
|
"notesHeading": "Hinweis:",
|
|
823
782
|
"caveatsHeading": "Einschränkung:",
|
|
824
783
|
"errorMissingPlatform": "Fehlendes erforderliches Argument \"platform\". Erwartet eines von: {{platforms}}",
|
|
@@ -873,10 +832,10 @@ const MESSAGES = {
|
|
|
873
832
|
"nextStepsNav": "cd {{dir}}",
|
|
874
833
|
"nextStepsInstall": "Εγκατάσταση εξαρτήσεων: {{command}}",
|
|
875
834
|
"nextStepsDevServer": "Εκκίνηση του dev server (αν το πρότυπό σας έχει έναν)",
|
|
876
|
-
"getStartedHeading": "
|
|
877
|
-
"installSpinnerStart": "
|
|
878
|
-
"installSpinnerStop": "
|
|
879
|
-
"installSpinnerFailed": "
|
|
835
|
+
"getStartedHeading": "Επόμενα βήματα:",
|
|
836
|
+
"installSpinnerStart": "Εγκατάσταση εξαρτήσεων: {{command}}",
|
|
837
|
+
"installSpinnerStop": "Εγκαταστάθηκαν οι εξαρτήσεις.",
|
|
838
|
+
"installSpinnerFailed": "Εγκατάσταση εξαρτήσεων: {{command}}",
|
|
880
839
|
"notesHeading": "Σημείωση:",
|
|
881
840
|
"caveatsHeading": "Προειδοποίηση:",
|
|
882
841
|
"errorMissingPlatform": "Λείπει η απαιτούμενη παράμετρος \"platform\". Αναμένονται μία από: {{platforms}}",
|
|
@@ -931,10 +890,10 @@ const MESSAGES = {
|
|
|
931
890
|
"nextStepsNav": "cd {{dir}}",
|
|
932
891
|
"nextStepsInstall": "Enstale depandans: {{command}}",
|
|
933
892
|
"nextStepsDevServer": "Kòmanse sèvè dev (si modèl ou a gen youn)",
|
|
934
|
-
"getStartedHeading": "
|
|
935
|
-
"installSpinnerStart": "
|
|
936
|
-
"installSpinnerStop": "
|
|
937
|
-
"installSpinnerFailed": "
|
|
893
|
+
"getStartedHeading": "Pwochèn etap:",
|
|
894
|
+
"installSpinnerStart": "Enstale depandans: {{command}}",
|
|
895
|
+
"installSpinnerStop": "Depandans enstale.",
|
|
896
|
+
"installSpinnerFailed": "Enstale depandans: {{command}}",
|
|
938
897
|
"notesHeading": "Remak:",
|
|
939
898
|
"caveatsHeading": "Avètisman:",
|
|
940
899
|
"errorMissingPlatform": "Agiman obligatwa \"platform\" manke. Atann youn nan: {{platforms}}",
|
|
@@ -989,10 +948,10 @@ const MESSAGES = {
|
|
|
989
948
|
"nextStepsNav": "cd {{dir}}",
|
|
990
949
|
"nextStepsInstall": "התקן תלותים: {{command}}",
|
|
991
950
|
"nextStepsDevServer": "הפעל את שרת הפיתוח (אם התבנית שלך כוללת אחד)",
|
|
992
|
-
"getStartedHeading": "
|
|
993
|
-
"installSpinnerStart": "
|
|
994
|
-
"installSpinnerStop": "
|
|
995
|
-
"installSpinnerFailed": "
|
|
951
|
+
"getStartedHeading": "שלבים הבאים:",
|
|
952
|
+
"installSpinnerStart": "התקן תלותים: {{command}}",
|
|
953
|
+
"installSpinnerStop": "התלויות הותקנו.",
|
|
954
|
+
"installSpinnerFailed": "התקן תלותים: {{command}}",
|
|
996
955
|
"notesHeading": "הערה:",
|
|
997
956
|
"caveatsHeading": "אזהרה:",
|
|
998
957
|
"errorMissingPlatform": "חסר ארגומנט דרוש \"platform\". צפוי אחד מ: {{platforms}}",
|
|
@@ -1047,10 +1006,10 @@ const MESSAGES = {
|
|
|
1047
1006
|
"nextStepsNav": "cd {{dir}}",
|
|
1048
1007
|
"nextStepsInstall": "निर्भरता स्थापित करें: {{command}}",
|
|
1049
1008
|
"nextStepsDevServer": "डेव सर्वर शुरू करें (यदि आपके टेम्पलेट में है)",
|
|
1050
|
-
"getStartedHeading": "
|
|
1051
|
-
"installSpinnerStart": "
|
|
1052
|
-
"installSpinnerStop": "
|
|
1053
|
-
"installSpinnerFailed": "
|
|
1009
|
+
"getStartedHeading": "अगले चरण:",
|
|
1010
|
+
"installSpinnerStart": "निर्भरता स्थापित करें: {{command}}",
|
|
1011
|
+
"installSpinnerStop": "निर्भरता स्थापित की गईं.",
|
|
1012
|
+
"installSpinnerFailed": "निर्भरता स्थापित करें: {{command}}",
|
|
1054
1013
|
"notesHeading": "नोट:",
|
|
1055
1014
|
"caveatsHeading": "ध्यान दें:",
|
|
1056
1015
|
"errorMissingPlatform": "आवश्यक तर्क \"platform\" गायब है। अपेक्षित में से एक: {{platforms}}",
|
|
@@ -1163,10 +1122,10 @@ const MESSAGES = {
|
|
|
1163
1122
|
"nextStepsNav": "cd {{dir}}",
|
|
1164
1123
|
"nextStepsInstall": "Settu upp háður: {{command}}",
|
|
1165
1124
|
"nextStepsDevServer": "Ræstu þróunarþjóninn (ef sniðmátið inniheldur einn)",
|
|
1166
|
-
"getStartedHeading": "
|
|
1167
|
-
"installSpinnerStart": "
|
|
1168
|
-
"installSpinnerStop": "
|
|
1169
|
-
"installSpinnerFailed": "
|
|
1125
|
+
"getStartedHeading": "Næstu skref:",
|
|
1126
|
+
"installSpinnerStart": "Settu upp háður: {{command}}",
|
|
1127
|
+
"installSpinnerStop": "Háðir pakkar uppsettir.",
|
|
1128
|
+
"installSpinnerFailed": "Settu upp háður: {{command}}",
|
|
1170
1129
|
"notesHeading": "Athugið:",
|
|
1171
1130
|
"caveatsHeading": "Ábending:",
|
|
1172
1131
|
"errorMissingPlatform": "Vantar nauðsynlegt rök \"platform\". Búist var við einu af: {{platforms}}",
|
|
@@ -1221,10 +1180,10 @@ const MESSAGES = {
|
|
|
1221
1180
|
"nextStepsNav": "cd {{dir}}",
|
|
1222
1181
|
"nextStepsInstall": "Pasang dependensi: {{command}}",
|
|
1223
1182
|
"nextStepsDevServer": "Jalankan server pengembangan (jika template Anda memilikinya)",
|
|
1224
|
-
"getStartedHeading": "
|
|
1225
|
-
"installSpinnerStart": "
|
|
1226
|
-
"installSpinnerStop": "
|
|
1227
|
-
"installSpinnerFailed": "
|
|
1183
|
+
"getStartedHeading": "Langkah selanjutnya:",
|
|
1184
|
+
"installSpinnerStart": "Pasang dependensi: {{command}}",
|
|
1185
|
+
"installSpinnerStop": "Dependensi terpasang.",
|
|
1186
|
+
"installSpinnerFailed": "Pasang dependensi: {{command}}",
|
|
1228
1187
|
"notesHeading": "Catatan:",
|
|
1229
1188
|
"caveatsHeading": "Peringatan:",
|
|
1230
1189
|
"errorMissingPlatform": "Argumen wajib \"platform\" hilang. Diharapkan salah satu: {{platforms}}",
|
|
@@ -1279,10 +1238,10 @@ const MESSAGES = {
|
|
|
1279
1238
|
"nextStepsNav": "cd {{dir}}",
|
|
1280
1239
|
"nextStepsInstall": "Installa le dipendenze: {{command}}",
|
|
1281
1240
|
"nextStepsDevServer": "Avvia il server di sviluppo (se il template ne prevede uno)",
|
|
1282
|
-
"getStartedHeading": "
|
|
1283
|
-
"installSpinnerStart": "
|
|
1284
|
-
"installSpinnerStop": "
|
|
1285
|
-
"installSpinnerFailed": "
|
|
1241
|
+
"getStartedHeading": "Prossimi passi:",
|
|
1242
|
+
"installSpinnerStart": "Installa le dipendenze: {{command}}",
|
|
1243
|
+
"installSpinnerStop": "Dipendenze installate.",
|
|
1244
|
+
"installSpinnerFailed": "Installa le dipendenze: {{command}}",
|
|
1286
1245
|
"notesHeading": "Nota:",
|
|
1287
1246
|
"caveatsHeading": "Avvertenza:",
|
|
1288
1247
|
"errorMissingPlatform": "Argomento obbligatorio mancante \"platform\". Atteso uno dei seguenti: {{platforms}}",
|
|
@@ -1337,10 +1296,10 @@ const MESSAGES = {
|
|
|
1337
1296
|
"nextStepsNav": "cd {{dir}}",
|
|
1338
1297
|
"nextStepsInstall": "依存関係をインストール: {{command}}",
|
|
1339
1298
|
"nextStepsDevServer": "開発サーバーを起動(テンプレートにある場合)",
|
|
1340
|
-
"getStartedHeading": "
|
|
1341
|
-
"installSpinnerStart": "
|
|
1342
|
-
"installSpinnerStop": "
|
|
1343
|
-
"installSpinnerFailed": "
|
|
1299
|
+
"getStartedHeading": "次の手順:",
|
|
1300
|
+
"installSpinnerStart": "依存関係をインストール: {{command}}",
|
|
1301
|
+
"installSpinnerStop": "依存関係がインストールされました。",
|
|
1302
|
+
"installSpinnerFailed": "依存関係をインストール: {{command}}",
|
|
1344
1303
|
"notesHeading": "注意:",
|
|
1345
1304
|
"caveatsHeading": "留意事項:",
|
|
1346
1305
|
"errorMissingPlatform": "必須引数 \"platform\" がありません。予期される値: {{platforms}}",
|
|
@@ -1395,10 +1354,10 @@ const MESSAGES = {
|
|
|
1395
1354
|
"nextStepsNav": "cd {{dir}}",
|
|
1396
1355
|
"nextStepsInstall": "의존성 설치: {{command}}",
|
|
1397
1356
|
"nextStepsDevServer": "개발 서버 시작 (템플릿에 해당 기능이 있는 경우)",
|
|
1398
|
-
"getStartedHeading": "
|
|
1399
|
-
"installSpinnerStart": "
|
|
1400
|
-
"installSpinnerStop": "
|
|
1401
|
-
"installSpinnerFailed": "
|
|
1357
|
+
"getStartedHeading": "다음 단계:",
|
|
1358
|
+
"installSpinnerStart": "의존성 설치: {{command}}",
|
|
1359
|
+
"installSpinnerStop": "종속성이 설치되었습니다.",
|
|
1360
|
+
"installSpinnerFailed": "의존성 설치: {{command}}",
|
|
1402
1361
|
"notesHeading": "참고:",
|
|
1403
1362
|
"caveatsHeading": "주의:",
|
|
1404
1363
|
"errorMissingPlatform": "필수 인수 \"platform\" 누락. 다음 중 하나여야 합니다: {{platforms}}",
|
|
@@ -1453,10 +1412,10 @@ const MESSAGES = {
|
|
|
1453
1412
|
"nextStepsNav": "cd {{dir}}",
|
|
1454
1413
|
"nextStepsInstall": "Tāuta ngā whakawhirinaki: {{command}}",
|
|
1455
1414
|
"nextStepsDevServer": "Tīmatahia te tūmau whakawhanake (mēnā kei tō tauira)",
|
|
1456
|
-
"getStartedHeading": "
|
|
1457
|
-
"installSpinnerStart": "
|
|
1458
|
-
"installSpinnerStop": "
|
|
1459
|
-
"installSpinnerFailed": "
|
|
1415
|
+
"getStartedHeading": "Hipanga e whai ake:",
|
|
1416
|
+
"installSpinnerStart": "Tāuta ngā whakawhirinaki: {{command}}",
|
|
1417
|
+
"installSpinnerStop": "Kua tāuta ngā whakawhirinaki.",
|
|
1418
|
+
"installSpinnerFailed": "Tāuta ngā whakawhirinaki: {{command}}",
|
|
1460
1419
|
"notesHeading": "Tuhipoka:",
|
|
1461
1420
|
"caveatsHeading": "Whakatūpato:",
|
|
1462
1421
|
"errorMissingPlatform": "Kua ngaro te kupu whakahau hiahia \"platform\". Me kotahi o ēnei: {{platforms}}",
|
|
@@ -1511,10 +1470,10 @@ const MESSAGES = {
|
|
|
1511
1470
|
"nextStepsNav": "cd {{dir}}",
|
|
1512
1471
|
"nextStepsInstall": "Pasang kebergantungan: {{command}}",
|
|
1513
1472
|
"nextStepsDevServer": "Mulakan pelayan pembangunan (jika templat anda mempunyainya)",
|
|
1514
|
-
"getStartedHeading": "
|
|
1515
|
-
"installSpinnerStart": "
|
|
1516
|
-
"installSpinnerStop": "
|
|
1517
|
-
"installSpinnerFailed": "
|
|
1473
|
+
"getStartedHeading": "Langkah seterusnya:",
|
|
1474
|
+
"installSpinnerStart": "Pasang kebergantungan: {{command}}",
|
|
1475
|
+
"installSpinnerStop": "Kebergantungan dipasang.",
|
|
1476
|
+
"installSpinnerFailed": "Pasang kebergantungan: {{command}}",
|
|
1518
1477
|
"notesHeading": "Nota:",
|
|
1519
1478
|
"caveatsHeading": "Amaran:",
|
|
1520
1479
|
"errorMissingPlatform": "Argumen diperlukan \"platform\" hilang. Dijangka salah satu: {{platforms}}",
|
|
@@ -1569,10 +1528,10 @@ const MESSAGES = {
|
|
|
1569
1528
|
"nextStepsNav": "cd {{dir}}",
|
|
1570
1529
|
"nextStepsInstall": "Installera beroenden: {{command}}",
|
|
1571
1530
|
"nextStepsDevServer": "Starta dev-servern (om din mall har en)",
|
|
1572
|
-
"getStartedHeading": "
|
|
1573
|
-
"installSpinnerStart": "
|
|
1531
|
+
"getStartedHeading": "Nästa steg:",
|
|
1532
|
+
"installSpinnerStart": "Installera beroenden: {{command}}",
|
|
1574
1533
|
"installSpinnerStop": "Dependencies installed.",
|
|
1575
|
-
"installSpinnerFailed": "
|
|
1534
|
+
"installSpinnerFailed": "Installera beroenden: {{command}}",
|
|
1576
1535
|
"notesHeading": "Notering:",
|
|
1577
1536
|
"caveatsHeading": "Varning:",
|
|
1578
1537
|
"errorMissingPlatform": "Saknad obligatorisk argument \"platform\". Förväntat ett av: {{platforms}}",
|
|
@@ -1627,10 +1586,10 @@ const MESSAGES = {
|
|
|
1627
1586
|
"nextStepsNav": "cd {{dir}}",
|
|
1628
1587
|
"nextStepsInstall": "Installer avhengigheter: {{command}}",
|
|
1629
1588
|
"nextStepsDevServer": "Start utviklingsserveren (hvis malen din har en)",
|
|
1630
|
-
"getStartedHeading": "
|
|
1631
|
-
"installSpinnerStart": "
|
|
1632
|
-
"installSpinnerStop": "
|
|
1633
|
-
"installSpinnerFailed": "
|
|
1589
|
+
"getStartedHeading": "Neste steg:",
|
|
1590
|
+
"installSpinnerStart": "Installer avhengigheter: {{command}}",
|
|
1591
|
+
"installSpinnerStop": "Avhengigheter installert.",
|
|
1592
|
+
"installSpinnerFailed": "Installer avhengigheter: {{command}}",
|
|
1634
1593
|
"notesHeading": "Merk:",
|
|
1635
1594
|
"caveatsHeading": "Forbehold:",
|
|
1636
1595
|
"errorMissingPlatform": "Mangler påkrevd argument \"platform\". Forventet en av: {{platforms}}",
|
|
@@ -1685,10 +1644,10 @@ const MESSAGES = {
|
|
|
1685
1644
|
"nextStepsNav": "cd {{dir}}",
|
|
1686
1645
|
"nextStepsInstall": "Installer avhengigheiter: {{command}}",
|
|
1687
1646
|
"nextStepsDevServer": "Start utviklarserveren (om malen har ein)",
|
|
1688
|
-
"getStartedHeading": "
|
|
1689
|
-
"installSpinnerStart": "
|
|
1690
|
-
"installSpinnerStop": "
|
|
1691
|
-
"installSpinnerFailed": "
|
|
1647
|
+
"getStartedHeading": "Neste steg:",
|
|
1648
|
+
"installSpinnerStart": "Installer avhengigheiter: {{command}}",
|
|
1649
|
+
"installSpinnerStop": "Avhengigheiter installert.",
|
|
1650
|
+
"installSpinnerFailed": "Installer avhengigheiter: {{command}}",
|
|
1692
1651
|
"notesHeading": "Merk:",
|
|
1693
1652
|
"caveatsHeading": "Forbehald:",
|
|
1694
1653
|
"errorMissingPlatform": "Manglande påkravd argument \"platform\". Forventa éin av: {{platforms}}",
|
|
@@ -1743,10 +1702,10 @@ const MESSAGES = {
|
|
|
1743
1702
|
"nextStepsNav": "cd {{dir}}",
|
|
1744
1703
|
"nextStepsInstall": "نصب وابستگیها: {{command}}",
|
|
1745
1704
|
"nextStepsDevServer": "راهاندازی سرور توسعه (در صورت وجود در قالب شما)",
|
|
1746
|
-
"getStartedHeading": "
|
|
1747
|
-
"installSpinnerStart": "
|
|
1748
|
-
"installSpinnerStop": "
|
|
1749
|
-
"installSpinnerFailed": "
|
|
1705
|
+
"getStartedHeading": "گامهای بعدی:",
|
|
1706
|
+
"installSpinnerStart": "نصب وابستگیها: {{command}}",
|
|
1707
|
+
"installSpinnerStop": "وابستگیها نصب شدند.",
|
|
1708
|
+
"installSpinnerFailed": "نصب وابستگیها: {{command}}",
|
|
1750
1709
|
"notesHeading": "توجه:",
|
|
1751
1710
|
"caveatsHeading": "ملاحظات:",
|
|
1752
1711
|
"errorMissingPlatform": "آرگومان اجباری \"platform\" مفقود است. انتظار یکی از موارد: {{platforms}}",
|
|
@@ -1801,10 +1760,10 @@ const MESSAGES = {
|
|
|
1801
1760
|
"nextStepsNav": "cd {{dir}}",
|
|
1802
1761
|
"nextStepsInstall": "Zainstaluj zależności: {{command}}",
|
|
1803
1762
|
"nextStepsDevServer": "Uruchom serwer deweloperski (jeśli szablon go zawiera)",
|
|
1804
|
-
"getStartedHeading": "
|
|
1805
|
-
"installSpinnerStart": "
|
|
1806
|
-
"installSpinnerStop": "
|
|
1807
|
-
"installSpinnerFailed": "
|
|
1763
|
+
"getStartedHeading": "Kolejne kroki:",
|
|
1764
|
+
"installSpinnerStart": "Zainstaluj zależności: {{command}}",
|
|
1765
|
+
"installSpinnerStop": "Zależności zainstalowane.",
|
|
1766
|
+
"installSpinnerFailed": "Zainstaluj zależności: {{command}}",
|
|
1808
1767
|
"notesHeading": "Uwaga:",
|
|
1809
1768
|
"caveatsHeading": "Ograniczenie:",
|
|
1810
1769
|
"errorMissingPlatform": "Brakuje wymaganego argumentu \"platform\". Oczekiwano jednego z: {{platforms}}",
|
|
@@ -1859,10 +1818,10 @@ const MESSAGES = {
|
|
|
1859
1818
|
"nextStepsNav": "cd {{dir}}",
|
|
1860
1819
|
"nextStepsInstall": "Instalar dependências: {{command}}",
|
|
1861
1820
|
"nextStepsDevServer": "Inicie o servidor de desenvolvimento (se o seu template tiver um)",
|
|
1862
|
-
"getStartedHeading": "
|
|
1863
|
-
"installSpinnerStart": "
|
|
1864
|
-
"installSpinnerStop": "
|
|
1865
|
-
"installSpinnerFailed": "
|
|
1821
|
+
"getStartedHeading": "Próximos passos:",
|
|
1822
|
+
"installSpinnerStart": "Instalar dependências: {{command}}",
|
|
1823
|
+
"installSpinnerStop": "Dependências instaladas.",
|
|
1824
|
+
"installSpinnerFailed": "Instalar dependências: {{command}}",
|
|
1866
1825
|
"notesHeading": "Observação:",
|
|
1867
1826
|
"caveatsHeading": "Atenção:",
|
|
1868
1827
|
"errorMissingPlatform": "Argumento obrigatório \"platform\" ausente. Esperado um dos: {{platforms}}",
|
|
@@ -1917,10 +1876,10 @@ const MESSAGES = {
|
|
|
1917
1876
|
"nextStepsNav": "cd {{dir}}",
|
|
1918
1877
|
"nextStepsInstall": "Instalar dependências: {{command}}",
|
|
1919
1878
|
"nextStepsDevServer": "Iniciar o servidor de desenvolvimento (se o template tiver um)",
|
|
1920
|
-
"getStartedHeading": "
|
|
1921
|
-
"installSpinnerStart": "
|
|
1922
|
-
"installSpinnerStop": "
|
|
1923
|
-
"installSpinnerFailed": "
|
|
1879
|
+
"getStartedHeading": "Próximos passos:",
|
|
1880
|
+
"installSpinnerStart": "Instalar dependências: {{command}}",
|
|
1881
|
+
"installSpinnerStop": "Dependências instaladas.",
|
|
1882
|
+
"installSpinnerFailed": "Instalar dependências: {{command}}",
|
|
1924
1883
|
"notesHeading": "Observação:",
|
|
1925
1884
|
"caveatsHeading": "Atenção:",
|
|
1926
1885
|
"errorMissingPlatform": "Argumento obrigatório \"platform\" ausente. Esperado um de: {{platforms}}",
|
|
@@ -1975,10 +1934,10 @@ const MESSAGES = {
|
|
|
1975
1934
|
"nextStepsNav": "cd {{dir}}",
|
|
1976
1935
|
"nextStepsInstall": "Установите зависимости: {{command}}",
|
|
1977
1936
|
"nextStepsDevServer": "Запустите dev-сервер (если он есть в шаблоне)",
|
|
1978
|
-
"getStartedHeading": "
|
|
1979
|
-
"installSpinnerStart": "
|
|
1980
|
-
"installSpinnerStop": "
|
|
1981
|
-
"installSpinnerFailed": "
|
|
1937
|
+
"getStartedHeading": "Дальше:",
|
|
1938
|
+
"installSpinnerStart": "Установите зависимости: {{command}}",
|
|
1939
|
+
"installSpinnerStop": "Зависимости установлены.",
|
|
1940
|
+
"installSpinnerFailed": "Установите зависимости: {{command}}",
|
|
1982
1941
|
"notesHeading": "Примечание:",
|
|
1983
1942
|
"caveatsHeading": "Ограничения:",
|
|
1984
1943
|
"errorMissingPlatform": "Отсутствует обязательный аргумент \"platform\". Ожидалось одно из: {{platforms}}",
|
|
@@ -2033,10 +1992,10 @@ const MESSAGES = {
|
|
|
2033
1992
|
"nextStepsNav": "cd {{dir}}",
|
|
2034
1993
|
"nextStepsInstall": "安装依赖:{{command}}",
|
|
2035
1994
|
"nextStepsDevServer": "启动开发服务器(如果你的模板提供)",
|
|
2036
|
-
"getStartedHeading": "
|
|
2037
|
-
"installSpinnerStart": "
|
|
2038
|
-
"installSpinnerStop": "
|
|
2039
|
-
"installSpinnerFailed": "
|
|
1995
|
+
"getStartedHeading": "后续步骤:",
|
|
1996
|
+
"installSpinnerStart": "安装依赖:{{command}}",
|
|
1997
|
+
"installSpinnerStop": "依赖已安装。",
|
|
1998
|
+
"installSpinnerFailed": "安装依赖:{{command}}",
|
|
2040
1999
|
"notesHeading": "注意:",
|
|
2041
2000
|
"caveatsHeading": "注意事项:",
|
|
2042
2001
|
"errorMissingPlatform": "缺少必需参数 \"platform\"。期望其中之一:{{platforms}}",
|
|
@@ -2091,10 +2050,10 @@ const MESSAGES = {
|
|
|
2091
2050
|
"nextStepsNav": "cd {{dir}}",
|
|
2092
2051
|
"nextStepsInstall": "Namestite odvisnosti: {{command}}",
|
|
2093
2052
|
"nextStepsDevServer": "Zaženite razvojni strežnik (če ga ima predloga)",
|
|
2094
|
-
"getStartedHeading": "
|
|
2095
|
-
"installSpinnerStart": "
|
|
2096
|
-
"installSpinnerStop": "
|
|
2097
|
-
"installSpinnerFailed": "
|
|
2053
|
+
"getStartedHeading": "Naslednji koraki:",
|
|
2054
|
+
"installSpinnerStart": "Namestite odvisnosti: {{command}}",
|
|
2055
|
+
"installSpinnerStop": "Odvisnosti nameščene.",
|
|
2056
|
+
"installSpinnerFailed": "Namestite odvisnosti: {{command}}",
|
|
2098
2057
|
"notesHeading": "Opomba:",
|
|
2099
2058
|
"caveatsHeading": "Opozorilo:",
|
|
2100
2059
|
"errorMissingPlatform": "Manjka zahtevan argument \"platform\". Pričakovana ena od: {{platforms}}",
|
|
@@ -2149,10 +2108,10 @@ const MESSAGES = {
|
|
|
2149
2108
|
"nextStepsNav": "cd {{dir}}",
|
|
2150
2109
|
"nextStepsInstall": "Instalar dependencias: {{command}}",
|
|
2151
2110
|
"nextStepsDevServer": "Iniciar el servidor de desarrollo (si la plantilla tiene uno)",
|
|
2152
|
-
"getStartedHeading": "
|
|
2153
|
-
"installSpinnerStart": "
|
|
2154
|
-
"installSpinnerStop": "
|
|
2155
|
-
"installSpinnerFailed": "
|
|
2111
|
+
"getStartedHeading": "Siguientes pasos:",
|
|
2112
|
+
"installSpinnerStart": "Instalar dependencias: {{command}}",
|
|
2113
|
+
"installSpinnerStop": "Dependencias instaladas.",
|
|
2114
|
+
"installSpinnerFailed": "Instalar dependencias: {{command}}",
|
|
2156
2115
|
"notesHeading": "Nota:",
|
|
2157
2116
|
"caveatsHeading": "Precaución:",
|
|
2158
2117
|
"errorMissingPlatform": "Falta el argumento requerido \"platform\". Se esperaba uno de: {{platforms}}",
|
|
@@ -2207,10 +2166,10 @@ const MESSAGES = {
|
|
|
2207
2166
|
"nextStepsNav": "cd {{dir}}",
|
|
2208
2167
|
"nextStepsInstall": "Installera beroenden: {{command}}",
|
|
2209
2168
|
"nextStepsDevServer": "Starta dev-servern (om din mall har en)",
|
|
2210
|
-
"getStartedHeading": "
|
|
2211
|
-
"installSpinnerStart": "
|
|
2212
|
-
"installSpinnerStop": "
|
|
2213
|
-
"installSpinnerFailed": "
|
|
2169
|
+
"getStartedHeading": "Nästa steg:",
|
|
2170
|
+
"installSpinnerStart": "Installera beroenden: {{command}}",
|
|
2171
|
+
"installSpinnerStop": "Beroenden installerade.",
|
|
2172
|
+
"installSpinnerFailed": "Installera beroenden: {{command}}",
|
|
2214
2173
|
"notesHeading": "Notera:",
|
|
2215
2174
|
"caveatsHeading": "Varning:",
|
|
2216
2175
|
"errorMissingPlatform": "Saknas obligatoriskt argument \"platform\". Förväntat ett av: {{platforms}}",
|
|
@@ -2265,10 +2224,10 @@ const MESSAGES = {
|
|
|
2265
2224
|
"nextStepsNav": "cd {{dir}}",
|
|
2266
2225
|
"nextStepsInstall": "ติดตั้ง dependencies: {{command}}",
|
|
2267
2226
|
"nextStepsDevServer": "เริ่มเซิร์ฟเวอร์สำหรับพัฒนา (ถ้าเทมเพลตมี)",
|
|
2268
|
-
"getStartedHeading": "
|
|
2269
|
-
"installSpinnerStart": "
|
|
2270
|
-
"installSpinnerStop": "
|
|
2271
|
-
"installSpinnerFailed": "
|
|
2227
|
+
"getStartedHeading": "ขั้นตอนถัดไป:",
|
|
2228
|
+
"installSpinnerStart": "ติดตั้ง dependencies: {{command}}",
|
|
2229
|
+
"installSpinnerStop": "ติดตั้งการพึ่งพาเรียบร้อยแล้ว.",
|
|
2230
|
+
"installSpinnerFailed": "ติดตั้ง dependencies: {{command}}",
|
|
2272
2231
|
"notesHeading": "หมายเหตุ:",
|
|
2273
2232
|
"caveatsHeading": "ข้อควรระวัง:",
|
|
2274
2233
|
"errorMissingPlatform": "ขาดอาร์กิวเมนต์ที่จำเป็น \"platform\". คาดหวังหนึ่งใน: {{platforms}}",
|
|
@@ -2323,10 +2282,10 @@ const MESSAGES = {
|
|
|
2323
2282
|
"nextStepsNav": "cd {{dir}}",
|
|
2324
2283
|
"nextStepsInstall": "安裝相依套件:{{command}}",
|
|
2325
2284
|
"nextStepsDevServer": "啟動開發伺服器(若範本有提供)",
|
|
2326
|
-
"getStartedHeading": "
|
|
2327
|
-
"installSpinnerStart": "
|
|
2328
|
-
"installSpinnerStop": "
|
|
2329
|
-
"installSpinnerFailed": "
|
|
2285
|
+
"getStartedHeading": "下一步:",
|
|
2286
|
+
"installSpinnerStart": "安裝相依套件:{{command}}",
|
|
2287
|
+
"installSpinnerStop": "已安裝相依套件。",
|
|
2288
|
+
"installSpinnerFailed": "安裝相依套件:{{command}}",
|
|
2330
2289
|
"notesHeading": "注意:",
|
|
2331
2290
|
"caveatsHeading": "注意事項:",
|
|
2332
2291
|
"errorMissingPlatform": "遺漏必要參數 \"platform\"。預期其中一項:{{platforms}}",
|
|
@@ -2381,10 +2340,10 @@ const MESSAGES = {
|
|
|
2381
2340
|
"nextStepsNav": "cd {{dir}}",
|
|
2382
2341
|
"nextStepsInstall": "Bağımlılıkları kurun: {{command}}",
|
|
2383
2342
|
"nextStepsDevServer": "Geliştirme sunucusunu başlatın (şablonunuzda varsa)",
|
|
2384
|
-
"getStartedHeading": "
|
|
2385
|
-
"installSpinnerStart": "
|
|
2386
|
-
"installSpinnerStop": "
|
|
2387
|
-
"installSpinnerFailed": "
|
|
2343
|
+
"getStartedHeading": "Sonraki adımlar:",
|
|
2344
|
+
"installSpinnerStart": "Bağımlılıkları kurun: {{command}}",
|
|
2345
|
+
"installSpinnerStop": "Bağımlılıklar yüklendi.",
|
|
2346
|
+
"installSpinnerFailed": "Bağımlılıkları kurun: {{command}}",
|
|
2388
2347
|
"notesHeading": "Not:",
|
|
2389
2348
|
"caveatsHeading": "Uyarı:",
|
|
2390
2349
|
"errorMissingPlatform": "Gerekli argüman \"platform\" eksik. Beklenenler: {{platforms}}",
|
|
@@ -2439,10 +2398,10 @@ const MESSAGES = {
|
|
|
2439
2398
|
"nextStepsNav": "cd {{dir}}",
|
|
2440
2399
|
"nextStepsInstall": "Встановити залежності: {{command}}",
|
|
2441
2400
|
"nextStepsDevServer": "Запустити dev‑сервер (якщо шаблон його має)",
|
|
2442
|
-
"getStartedHeading": "
|
|
2443
|
-
"installSpinnerStart": "
|
|
2444
|
-
"installSpinnerStop": "
|
|
2445
|
-
"installSpinnerFailed": "
|
|
2401
|
+
"getStartedHeading": "Наступні кроки:",
|
|
2402
|
+
"installSpinnerStart": "Встановити залежності: {{command}}",
|
|
2403
|
+
"installSpinnerStop": "Залежності встановлено.",
|
|
2404
|
+
"installSpinnerFailed": "Встановити залежності: {{command}}",
|
|
2446
2405
|
"notesHeading": "Примітка:",
|
|
2447
2406
|
"caveatsHeading": "Попередження:",
|
|
2448
2407
|
"errorMissingPlatform": "Відсутній обовʼязковий аргумент \"platform\". Очікується один з: {{platforms}}",
|
|
@@ -2497,10 +2456,10 @@ const MESSAGES = {
|
|
|
2497
2456
|
"nextStepsNav": "cd {{dir}}",
|
|
2498
2457
|
"nextStepsInstall": "Cài đặt phụ thuộc: {{command}}",
|
|
2499
2458
|
"nextStepsDevServer": "Khởi động máy chủ dev (nếu mẫu có)",
|
|
2500
|
-
"getStartedHeading": "
|
|
2501
|
-
"installSpinnerStart": "
|
|
2502
|
-
"installSpinnerStop": "
|
|
2503
|
-
"installSpinnerFailed": "
|
|
2459
|
+
"getStartedHeading": "Bước tiếp theo:",
|
|
2460
|
+
"installSpinnerStart": "Cài đặt phụ thuộc: {{command}}",
|
|
2461
|
+
"installSpinnerStop": "Đã cài đặt các phụ thuộc.",
|
|
2462
|
+
"installSpinnerFailed": "Cài đặt phụ thuộc: {{command}}",
|
|
2504
2463
|
"notesHeading": "Lưu ý:",
|
|
2505
2464
|
"caveatsHeading": "Cảnh báo:",
|
|
2506
2465
|
"errorMissingPlatform": "Thiếu tham số bắt buộc \"platform\". Mong đợi một trong: {{platforms}}",
|
|
@@ -2555,10 +2514,10 @@ const MESSAGES = {
|
|
|
2555
2514
|
"nextStepsNav": "cd {{dir}}",
|
|
2556
2515
|
"nextStepsInstall": "Gosod dibyniaethau: {{command}}",
|
|
2557
2516
|
"nextStepsDevServer": "Cychwyn y gweinydd datblyg (os oes gan eich templed un)",
|
|
2558
|
-
"getStartedHeading": "
|
|
2559
|
-
"installSpinnerStart": "
|
|
2560
|
-
"installSpinnerStop": "
|
|
2561
|
-
"installSpinnerFailed": "
|
|
2517
|
+
"getStartedHeading": "Camau nesaf:",
|
|
2518
|
+
"installSpinnerStart": "Gosod dibyniaethau: {{command}}",
|
|
2519
|
+
"installSpinnerStop": "Dibyniaethau wedi'u gosod.",
|
|
2520
|
+
"installSpinnerFailed": "Gosod dibyniaethau: {{command}}",
|
|
2562
2521
|
"notesHeading": "Nodyn:",
|
|
2563
2522
|
"caveatsHeading": "Rhybudd:",
|
|
2564
2523
|
"errorMissingPlatform": "Diffyg y dadleuon gofynnol \"platform\". Disgwylir un o: {{platforms}}",
|
|
@@ -2665,6 +2624,23 @@ function expandHome(dir) {
|
|
|
2665
2624
|
return dir === "~" ? home : join(home, dir.slice(2));
|
|
2666
2625
|
}
|
|
2667
2626
|
/**
|
|
2627
|
+
* Human-readable labels for the interactive platform picker — canonical `SCAFFOLD_PLATFORMS` keys
|
|
2628
|
+
* are lowercase/hyphenated for CLI-arg use, not meant for display as-is.
|
|
2629
|
+
*/
|
|
2630
|
+
const PLATFORM_DISPLAY_LABELS = {
|
|
2631
|
+
components: "HTML",
|
|
2632
|
+
"web-components": "Web components",
|
|
2633
|
+
react: "React",
|
|
2634
|
+
vue: "Vue",
|
|
2635
|
+
angular: "Angular",
|
|
2636
|
+
svelte: "Svelte",
|
|
2637
|
+
"canvas-theme-editor": "Canvas theme editor"
|
|
2638
|
+
};
|
|
2639
|
+
/** Display label for a platform key, falling back to the raw key if unmapped. */
|
|
2640
|
+
function platformDisplayLabel(platform) {
|
|
2641
|
+
return PLATFORM_DISPLAY_LABELS[platform] ?? platform;
|
|
2642
|
+
}
|
|
2643
|
+
/**
|
|
2668
2644
|
* Resolves the platform: uses `platformArg` when given, otherwise prompts via clack `select()`
|
|
2669
2645
|
* on a TTY (not --yes), otherwise throws a localized `ScaffoldCliError`.
|
|
2670
2646
|
*
|
|
@@ -2680,10 +2656,10 @@ async function resolvePlatform(platformArg, opts) {
|
|
|
2680
2656
|
})) throw new ScaffoldCliError(t("errorMissingPlatform", { platforms: SCAFFOLD_PLATFORMS.join(", ") }));
|
|
2681
2657
|
const result = await select({
|
|
2682
2658
|
message: t("promptPlatform"),
|
|
2683
|
-
options: SCAFFOLD_PLATFORMS.map((p) => ({
|
|
2659
|
+
options: [...SCAFFOLD_PLATFORMS].map((p) => ({
|
|
2684
2660
|
value: p,
|
|
2685
|
-
label: p
|
|
2686
|
-
}))
|
|
2661
|
+
label: platformDisplayLabel(p)
|
|
2662
|
+
})).sort((a, b) => a.label.localeCompare(b.label))
|
|
2687
2663
|
});
|
|
2688
2664
|
if (isCancel(result)) {
|
|
2689
2665
|
cancel(t("cancelled"));
|
|
@@ -2752,7 +2728,7 @@ async function resolveScaffoldTarget(options) {
|
|
|
2752
2728
|
* @param platform - The scaffold platform
|
|
2753
2729
|
* @param dir - The target directory
|
|
2754
2730
|
* @param t - Localized string lookup
|
|
2755
|
-
* @param options - `theme`/`mode`/`cdn` forwarded to {@link scaffoldProject}
|
|
2731
|
+
* @param options - `theme`/`mode`/`cdn`/`locale` forwarded to {@link scaffoldProject}
|
|
2756
2732
|
* @returns The paths written by scaffoldProject
|
|
2757
2733
|
*/
|
|
2758
2734
|
async function scaffoldWithSpinner(platform, dir, t, options) {
|
|
@@ -2822,6 +2798,24 @@ const PM_COMMANDS = {
|
|
|
2822
2798
|
function pmCommands(pm) {
|
|
2823
2799
|
return PM_COMMANDS[pm ?? "npm"];
|
|
2824
2800
|
}
|
|
2801
|
+
/** Per-package-manager invocation for `create-pantoken-app`'s own usage/help text. */
|
|
2802
|
+
const CREATE_USAGE_COMMANDS = {
|
|
2803
|
+
npm: "npm create pantoken-app --",
|
|
2804
|
+
pnpm: "pnpm create pantoken-app --",
|
|
2805
|
+
yarn: "yarn create pantoken-app --",
|
|
2806
|
+
bun: "bunx create-pantoken-app --",
|
|
2807
|
+
deno: "deno run -A npm:create-pantoken-app --",
|
|
2808
|
+
vp: "vpx create-pantoken-app --"
|
|
2809
|
+
};
|
|
2810
|
+
/**
|
|
2811
|
+
* The invocation string `create-pantoken-app`'s bin shim shows in `--help`/usage, matching
|
|
2812
|
+
* whichever package manager actually invoked it (falls back to the npm form when undetected).
|
|
2813
|
+
*
|
|
2814
|
+
* @param pm - The detected package manager (defaults to `detectPackageManager()`'s result)
|
|
2815
|
+
*/
|
|
2816
|
+
function buildCreateUsageCommand(pm) {
|
|
2817
|
+
return CREATE_USAGE_COMMANDS[pm ?? detectPackageManager() ?? "npm"];
|
|
2818
|
+
}
|
|
2825
2819
|
/**
|
|
2826
2820
|
* Runs the detected package manager's install command in `dir`, wrapped in a clack spinner.
|
|
2827
2821
|
* Failures are reported but non-fatal — the project is still usable, just not installed — so the
|
|
@@ -2946,7 +2940,7 @@ function createScaffoldCommand(options) {
|
|
|
2946
2940
|
const program = new Command(programName).exitOverride().configureOutput({
|
|
2947
2941
|
writeOut: (s) => process.stdout.write(s),
|
|
2948
2942
|
writeErr: (s) => process.stderr.write(s)
|
|
2949
|
-
}).addArgument(new Argument("[platform]", `Platform to scaffold (${SCAFFOLD_PLATFORMS.join("|")}; "html" is an alias for "components")`).argParser(validateScaffoldPlatform)).option("-d, --dir <path>", "Target directory (prompts interactively on a TTY if omitted)").option("-y, --yes", "Never prompt; error instead of prompting for a missing platform/directory", false).option("-l, --lang <tag>", "
|
|
2943
|
+
}).addArgument(new Argument("[platform]", `Platform to scaffold (${SCAFFOLD_PLATFORMS.join("|")}; "html" is an alias for "components")`).argParser(validateScaffoldPlatform)).option("-d, --dir <path>", "Target directory (prompts interactively on a TTY if omitted)").option("-y, --yes", "Never prompt; error instead of prompting for a missing platform/directory", false).option("-l, --lang <tag>", "Language for the CLI and the scaffolded project (e.g. \"hu\"); auto-detected by default", validateLocaleTag).option("--theme <name>", "Token theme: rebrand (default), canvas, canvasHighContrast", validateThemeVariant).option("--theme-mode <mode>", "Rebrand token mode: light (default) or adaptive; ignored outside the rebrand theme", validateThemeMode).option("--cdn <provider>", "CDN provider for canvas-theme-editor's theme.css/theme.js: jsdelivr (default), unpkg, esmsh", validateCdnProviderId).option("--no-install", "Skip automatically installing dependencies after scaffolding");
|
|
2950
2944
|
if (options?.version) program.version(options.version, "-v, --version");
|
|
2951
2945
|
program.action(async (platformArg, opts) => {
|
|
2952
2946
|
const locale = detectLocale({ langFlag: opts.lang });
|
|
@@ -2962,11 +2956,17 @@ function createScaffoldCommand(options) {
|
|
|
2962
2956
|
const written = await scaffoldWithSpinner(platform, expandedDir, t, {
|
|
2963
2957
|
theme: opts.theme,
|
|
2964
2958
|
mode: opts.themeMode,
|
|
2965
|
-
cdn: opts.cdn
|
|
2959
|
+
cdn: opts.cdn,
|
|
2960
|
+
locale
|
|
2966
2961
|
});
|
|
2967
2962
|
for (const path of written) console.log(t("wroteFile", { path }));
|
|
2963
|
+
let printDir = expandedDir;
|
|
2964
|
+
if (expandedDir !== ".") try {
|
|
2965
|
+
process.chdir(expandedDir);
|
|
2966
|
+
printDir = ".";
|
|
2967
|
+
} catch {}
|
|
2968
2968
|
const installed = opts.install !== false && installWithSpinner(expandedDir, detectPackageManager(), t);
|
|
2969
|
-
printNextSteps(
|
|
2969
|
+
printNextSteps(printDir, written, t, resolveScaffoldPlatform(platform), installed);
|
|
2970
2970
|
} catch (err) {
|
|
2971
2971
|
if (err instanceof ScaffoldCliError) throw err;
|
|
2972
2972
|
throw err;
|
|
@@ -3004,4 +3004,4 @@ async function runScaffoldCli(argv, options) {
|
|
|
3004
3004
|
}
|
|
3005
3005
|
}
|
|
3006
3006
|
//#endregion
|
|
3007
|
-
export { MESSAGES, SCAFFOLD_PLATFORMS, ScaffoldCliError, createLocaleLookup, createScaffoldCommand, detectLocale, detectPackageManager, expandHome, installWithSpinner, isScaffoldPlatform, printNextSteps, resolveScaffoldPlatform, resolveScaffoldTarget, runScaffoldCli, scaffoldProject, scaffoldWithSpinner, shouldPrompt, validateCdnProviderId, validateScaffoldPlatform };
|
|
3007
|
+
export { MESSAGES, SCAFFOLD_PLATFORMS, SUPPORTED_LOCALES, ScaffoldCliError, buildCreateUsageCommand, createLocaleLookup, createScaffoldCommand, detectLocale, detectPackageManager, expandHome, installWithSpinner, isScaffoldPlatform, printNextSteps, resolveScaffoldPlatform, resolveScaffoldTarget, runScaffoldCli, scaffoldProject, scaffoldWithSpinner, shouldPrompt, validateCdnProviderId, validateLocaleTag, validateScaffoldPlatform };
|