@inlang/paraglide-js 1.3.4 → 1.3.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 +4 -4
- package/dist/cli/commands/{init.d.ts → init/command.d.ts} +1 -3
- package/dist/cli/commands/init/defaults.d.ts +13 -0
- package/dist/cli/commands/init/utils.d.ts +8 -0
- package/dist/index.js +1055 -161
- package/package.json +7 -7
- /package/dist/cli/commands/{compile.d.ts → compile/command.d.ts} +0 -0
- /package/dist/cli/commands/{compile.test.d.ts → compile/command.test.d.ts} +0 -0
- /package/dist/cli/commands/{init.test.d.ts → init/command.test.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -44,10 +44,10 @@ This will:
|
|
|
44
44
|
Adapters are framework-integrations for Paraglide. If you are using a framework, using an adapter is recommended , but not required.
|
|
45
45
|
|
|
46
46
|
<doc-links>
|
|
47
|
-
<doc-link title="Adapter for NextJS" icon="tabler:brand-nextjs" href="/m/osslbuzt/
|
|
48
|
-
<doc-link title="Adapter for SvelteKit" icon="simple-icons:svelte" href="/m/dxnzrydw/
|
|
49
|
-
<doc-link title="Adapter for Astro" icon="devicon-plain:astro" href="/m/iljlwzfs/
|
|
50
|
-
<doc-link title="Adapter for SolidJS" icon="tabler:brand-solidjs" href="/m/n860p17j/
|
|
47
|
+
<doc-link title="Adapter for NextJS" icon="tabler:brand-nextjs" href="/m/osslbuzt/paraglide-next-i18n" description="Go to Library"></doc-link>
|
|
48
|
+
<doc-link title="Adapter for SvelteKit" icon="simple-icons:svelte" href="/m/dxnzrydw/paraglide-sveltekit-i18n" description="Go to Library"></doc-link>
|
|
49
|
+
<doc-link title="Adapter for Astro" icon="devicon-plain:astro" href="/m/iljlwzfs/paraglide-astro-i18n" description="Go to Library"></doc-link>
|
|
50
|
+
<doc-link title="Adapter for SolidJS" icon="tabler:brand-solidjs" href="/m/n860p17j/paraglide-solidstart-i18n" description="Go to Library"></doc-link>
|
|
51
51
|
</doc-links>
|
|
52
52
|
|
|
53
53
|
#### Alternatively, [you can write your own adapter](#writing-an-adapter)
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Command } from "commander";
|
|
2
|
-
import {
|
|
3
|
-
import { Logger } from "../../services/logger/index.js";
|
|
2
|
+
import { Logger } from "../../../services/logger/index.js";
|
|
4
3
|
import { type Repository } from "@lix-js/client";
|
|
5
4
|
type Context = {
|
|
6
5
|
logger: Logger;
|
|
@@ -17,7 +16,6 @@ export declare const existingProjectFlow: (args: {
|
|
|
17
16
|
existingProjectPath: string;
|
|
18
17
|
}, ctx: Context) => Promise<undefined>;
|
|
19
18
|
export declare const createNewProjectFlow: (ctx: Context) => Promise<undefined>;
|
|
20
|
-
export declare const newProjectTemplate: ProjectSettings;
|
|
21
19
|
export declare const checkIfPackageJsonExists: (ctx: Context) => Promise<undefined>;
|
|
22
20
|
export declare const checkIfUncommittedChanges: (ctx: Context) => Promise<void>;
|
|
23
21
|
export declare const addCompileStepToPackageJSON: (args: {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @returns A new copy of the default project template that is safe to mutate.
|
|
3
|
+
*/
|
|
4
|
+
export declare function getNewProjectTemplate(): {
|
|
5
|
+
$schema: "https://inlang.com/schema/project-settings";
|
|
6
|
+
sourceLanguageTag: string;
|
|
7
|
+
languageTags: string[];
|
|
8
|
+
modules: string[];
|
|
9
|
+
"plugin.inlang.messageFormat": {
|
|
10
|
+
pathPattern: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
export declare const DEFAULT_PROJECT_PATH = "./project.inlang";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Executes a command asynchronously in a separate process.
|
|
3
|
+
* It will not print the output to the console.
|
|
4
|
+
*
|
|
5
|
+
* @param command The command to execute.
|
|
6
|
+
* @returns The stdout of the command.
|
|
7
|
+
*/
|
|
8
|
+
export declare function execAsync(command: string): Promise<string>;
|