@inlang/paraglide-js 1.2.5 → 1.2.7
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 +2 -2
- package/dist/index.js +12 -8
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -46,9 +46,9 @@ This will:
|
|
|
46
46
|
Adapters are framework specific integrations for Paraglide. If you are using a framework, using an adapter is recommended (but not required). If you don't use a framework, you can skip this step.
|
|
47
47
|
|
|
48
48
|
<doc-links>
|
|
49
|
+
<doc-link title="Adapter for NextJS" icon="tabler:brand-nextjs" href="https://inlang.com/m/osslbuzt/library-inlang-paraglideJsAdapterNextJs" description="Go to Library"></doc-link>
|
|
49
50
|
<doc-link title="Adapter for SvelteKit" icon="simple-icons:svelte" href="https://inlang.com/m/dxnzrydw/library-inlang-paraglideJsAdapterSvelteKit" description="Go to Library"></doc-link>
|
|
50
51
|
<doc-link title="Adapter for SolidJS" icon="tabler:brand-solidjs" href="https://inlang.com/m/n860p17j/library-inlang-paraglideJsAdapterSolidStart" description="Go to Library"></doc-link>
|
|
51
|
-
<doc-link title="Adapter for NextJS" icon="tabler:brand-nextjs" href="https://github.com/opral/monorepo/tree/main/inlang/source-code/paraglide/paraglide-js-adapter-next" description="Go to GitHub example"></doc-link>
|
|
52
52
|
<doc-link title="Adapter for Vite" icon="tabler:brand-vite" href="https://github.com/opral/monorepo/tree/main/inlang/source-code/paraglide/paraglide-js-adapter-vite" description="Go to GitHub"></doc-link>
|
|
53
53
|
</doc-links>
|
|
54
54
|
|
|
@@ -369,4 +369,4 @@ Paraglide JS is part of the inlang ecosystem, so it integrates nicely with all t
|
|
|
369
369
|
|
|
370
370
|
# Pricing
|
|
371
371
|
|
|
372
|
-
<doc-
|
|
372
|
+
<doc-pricing></doc-pricing>
|
package/dist/index.js
CHANGED
|
@@ -20811,7 +20811,7 @@ var ExternalProjectSettings = import_typebox4.Type.Record(
|
|
|
20811
20811
|
// intersection between `InternalSettings`, which contains an array,
|
|
20812
20812
|
// and `ExternalSettings` which are objects possible
|
|
20813
20813
|
JSON2,
|
|
20814
|
-
{
|
|
20814
|
+
{ description: "Settings defined by apps, plugins, etc." }
|
|
20815
20815
|
);
|
|
20816
20816
|
var ProjectSettings = import_typebox4.Type.Intersect([InternalProjectSettings, ExternalProjectSettings]);
|
|
20817
20817
|
|
|
@@ -20887,7 +20887,7 @@ var IdeExtensionConfigSchema = import_typebox6.Type.Object({
|
|
|
20887
20887
|
}))
|
|
20888
20888
|
})),
|
|
20889
20889
|
/**
|
|
20890
|
-
* An array of
|
|
20890
|
+
* An array of Visual Studio Code DocumentSelectors.
|
|
20891
20891
|
*
|
|
20892
20892
|
* The document selectors specify for which files/programming languages
|
|
20893
20893
|
* (typescript, svelte, etc.) the extension should be activated.
|
|
@@ -25008,7 +25008,7 @@ var messageIndexFunction = (args) => {
|
|
|
25008
25008
|
return `/**
|
|
25009
25009
|
* This message has been compiled by [inlang paraglide](https://inlang.com/m/gerre34r/library-inlang-paraglideJs).
|
|
25010
25010
|
*
|
|
25011
|
-
* - Don't edit the message's code. Use
|
|
25011
|
+
* - Don't edit the message's code. Use [Sherlock (VS Code extension)](https://inlang.com/m/r7kp499g/app-inlang-ideExtension),
|
|
25012
25012
|
* the [web editor](https://inlang.com/m/tdozzpar/app-inlang-finkLocalizationEditor) instead, or edit the translation files manually.
|
|
25013
25013
|
*
|
|
25014
25014
|
* - The params are NonNullable<unknown> because the inlang SDK does not provide information on the type of a param (yet).
|
|
@@ -25078,7 +25078,7 @@ function getPrivateEnvVariables() {
|
|
|
25078
25078
|
|
|
25079
25079
|
// ../../env-variables/dist/runtime/publicEnv.js
|
|
25080
25080
|
init_define_ENV_DEFINED_IN_BUILD_STEP();
|
|
25081
|
-
var define_PUBLIC_ENV_DEFINED_IN_BUILD_STEP_default = { PUBLIC_IS_DEV: "false", PUBLIC_GIT_PROXY_BASE_URL: "https://git.inlang.com", PUBLIC_POSTHOG_TOKEN: "phc_m5yJZCxjOGxF8CJvP5sQ3H0d76xpnLrsmiZHduT4jDz", PUBLIC_ALLOWED_AUTH_URLS: "https://inlang.com,https://manage.inlang.com,https://fink.inlang.com", PUBLIC_SERVER_BASE_URL: "https://inlang.com", PUBLIC_FINK_SENTRY_DSN: "https://00c275e250bb5a103cda12a76e5a7d98@o4504345873285120.ingest.sentry.io/4506599134461952", PUBLIC_WEBSITE_SENTRY_DSN: "https://6ba3cb3bad464dd9a7f8700ed636c07a@o4504345873285120.ingest.sentry.io/4504346044006400", PUBLIC_HCAPTCHA_SITEKEY: "353a039d-fc34-40a6-a81d-91720e8851b0", PUBLIC_LIX_GITHUB_APP_NAME: "inlang", PUBLIC_LIX_GITHUB_APP_CLIENT_ID: "Iv1.436da58906364f96" };
|
|
25081
|
+
var define_PUBLIC_ENV_DEFINED_IN_BUILD_STEP_default = { PUBLIC_IS_DEV: "false", PUBLIC_GIT_PROXY_BASE_URL: "https://git.inlang.com", PUBLIC_POSTHOG_TOKEN: "phc_m5yJZCxjOGxF8CJvP5sQ3H0d76xpnLrsmiZHduT4jDz", PUBLIC_ALLOWED_AUTH_URLS: "https://inlang.com,https://manage.inlang.com,https://fink.inlang.com", PUBLIC_SERVER_BASE_URL: "https://inlang.com", PUBLIC_FINK_SENTRY_DSN: "https://00c275e250bb5a103cda12a76e5a7d98@o4504345873285120.ingest.sentry.io/4506599134461952", PUBLIC_WEBSITE_SENTRY_DSN: "https://6ba3cb3bad464dd9a7f8700ed636c07a@o4504345873285120.ingest.sentry.io/4504346044006400", PUBLIC_HCAPTCHA_SITEKEY: "353a039d-fc34-40a6-a81d-91720e8851b0", PUBLIC_LIX_GITHUB_APP_NAME: "inlang", PUBLIC_LIX_GITHUB_APP_CLIENT_ID: "Iv1.436da58906364f96", PUBLIC_POSTHOG_PROJECT_ID: "2161" };
|
|
25082
25082
|
var publicEnv = new Proxy({}, {
|
|
25083
25083
|
get(target, prop) {
|
|
25084
25084
|
if (typeof prop === "string" && prop.startsWith("PUBLIC_") === false) {
|
|
@@ -28844,6 +28844,7 @@ var publicEnvVariablesSchema = z.object({
|
|
|
28844
28844
|
PUBLIC_WEBSITE_SENTRY_DSN: z.string().optional().describe("DSN for Sentry (in the browser)"),
|
|
28845
28845
|
PUBLIC_FINK_SENTRY_DSN: z.string().optional().describe("DSN for Sentry (in the fink)"),
|
|
28846
28846
|
PUBLIC_POSTHOG_TOKEN: z.string().optional(),
|
|
28847
|
+
PUBLIC_POSTHOG_PROJECT_ID: z.string(),
|
|
28847
28848
|
PUBLIC_SERVER_BASE_URL: z.string().url().regex(/^(?!.*\/$).+$/, "Must not end with a slash").describe("The base url of the server e.g. https://inlang.com"),
|
|
28848
28849
|
PUBLIC_ALLOWED_AUTH_URLS: z.string().describe("List of allowed base urls eg https://inlang.com,https://manage.inlang.com"),
|
|
28849
28850
|
PUBLIC_HCAPTCHA_SITEKEY: z.string().describe("The sitekey to https://www.hcaptcha.com/")
|
|
@@ -28856,7 +28857,8 @@ var privateEnvVariablesSchema = z.object({
|
|
|
28856
28857
|
GOOGLE_TRANSLATE_API_KEY: z.string().optional(),
|
|
28857
28858
|
SERVER_SENTRY_DSN: z.string().optional().describe("DSN for Sentry (on the server)"),
|
|
28858
28859
|
ALGOLIA_ADMIN: z.string(),
|
|
28859
|
-
ALGOLIA_APPLICATION: z.string()
|
|
28860
|
+
ALGOLIA_APPLICATION: z.string(),
|
|
28861
|
+
POSTHOG_API_KEY: z.string()
|
|
28860
28862
|
// prefixed with INLANG_ because github doesn't allow env vars with GITHUB_ in ci/cd.
|
|
28861
28863
|
});
|
|
28862
28864
|
|
|
@@ -29451,7 +29453,7 @@ var maybeAddVsCodeExtension = async (args, ctx) => {
|
|
|
29451
29453
|
const isCertainlyVsCode = ((_a = process == null ? void 0 : process.env) == null ? void 0 : _a.TERM_PROGRAM) === "vscode";
|
|
29452
29454
|
let response = isCertainlyVsCode;
|
|
29453
29455
|
if (!isCertainlyVsCode) {
|
|
29454
|
-
response = await prompt(`Are you using
|
|
29456
|
+
response = await prompt(`Are you using Visual Studio Code?`, {
|
|
29455
29457
|
type: "confirm",
|
|
29456
29458
|
initial: true
|
|
29457
29459
|
});
|
|
@@ -29488,7 +29490,9 @@ var maybeAddVsCodeExtension = async (args, ctx) => {
|
|
|
29488
29490
|
"./.vscode/extensions.json",
|
|
29489
29491
|
JSON.stringify(extensions, void 0, 2)
|
|
29490
29492
|
);
|
|
29491
|
-
ctx.logger.success(
|
|
29493
|
+
ctx.logger.success(
|
|
29494
|
+
"Added the inlang Visual Studio Code extension (Sherlock) to the workspace recommendations."
|
|
29495
|
+
);
|
|
29492
29496
|
}
|
|
29493
29497
|
};
|
|
29494
29498
|
var addParaglideJsToDevDependencies = async (ctx) => {
|
|
@@ -29583,7 +29587,7 @@ var newProjectTemplate = {
|
|
|
29583
29587
|
"https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-valid-js-identifier@latest/dist/index.js",
|
|
29584
29588
|
// default to the message format plugin because it supports all features
|
|
29585
29589
|
"https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@latest/dist/index.js",
|
|
29586
|
-
// the m function matcher should be installed by default in case
|
|
29590
|
+
// the m function matcher should be installed by default in case Sherlock (VS Code extension) is adopted
|
|
29587
29591
|
"https://cdn.jsdelivr.net/npm/@inlang/plugin-m-function-matcher@latest/dist/index.js"
|
|
29588
29592
|
],
|
|
29589
29593
|
"plugin.inlang.messageFormat": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inlang/paraglide-js",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.7",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"typescript": "5.2.2",
|
|
65
65
|
"vitest": "0.34.3",
|
|
66
66
|
"@inlang/env-variables": "0.2.0",
|
|
67
|
-
"@inlang/
|
|
68
|
-
"@inlang/
|
|
67
|
+
"@inlang/sdk": "0.26.5",
|
|
68
|
+
"@inlang/telemetry": "0.3.13",
|
|
69
|
+
"@inlang/language-tag": "1.5.1",
|
|
69
70
|
"@lix-js/client": "0.8.0",
|
|
70
|
-
"@inlang/language-tag": "1.5.0",
|
|
71
71
|
"@lix-js/fs": "0.6.0",
|
|
72
|
-
"@inlang/plugin-message-format": "2.
|
|
72
|
+
"@inlang/plugin-message-format": "2.1.0"
|
|
73
73
|
},
|
|
74
74
|
"exports": {
|
|
75
75
|
".": {
|