From b733638b718c36d083303c6803dbe64c5ed7c828 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Fri, 10 Jan 2025 11:36:17 +0100 Subject: [PATCH 1/2] Hotfix: inlang build https://github.com/opral/inlang-paraglide-js/issues/304#issuecomment-2582087107 --- frontend/package.json | 1 + frontend/pnpm-lock.yaml | 8 ++++++++ frontend/project.inlang/settings.json | 10 +--------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 3ca8ce7c0..678abca91 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,6 +21,7 @@ }, "devDependencies": { "@inlang/paraglide-js": "1.11.2", + "@inlang/plugin-message-format": "2.0.0", "@playwright/test": "^1.49.1", "@skeletonlabs/skeleton": "^2.10.3", "@skeletonlabs/tw-plugin": "^0.4.0", diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index 0b37da127..bd4620c1a 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -54,6 +54,9 @@ importers: '@inlang/paraglide-js': specifier: 1.11.2 version: 1.11.2(babel-plugin-macros@3.1.0) + '@inlang/plugin-message-format': + specifier: 2.0.0 + version: 2.0.0 '@playwright/test': specifier: ^1.49.1 version: 1.49.1 @@ -732,6 +735,9 @@ packages: '@inlang/paraglide-vite@1.2.74': resolution: {integrity: sha512-SRHwD7vGO89NEzY2g+TsZWHo8EKoWrVppl/WePKzviRytUggOWZjW+Fxog2suOxC7Gm/C9X9r+7srzvrYasm7w==} + '@inlang/plugin-message-format@2.0.0': + resolution: {integrity: sha512-w1lY5687C5oyEIeQzNqBJMRd4bqiY2sD4IsaibjlBiD0G2BxLuWVviaYJNob8ObWz3P/gWgGQffqcv/dGkdKbg==} + '@inlang/plugin@2.4.14': resolution: {integrity: sha512-HFI1t1tKs6jXqwKVl59vvt7kvMgg2Po7xA3IFijfJTZCt0tTI8txqeXCUV9jhUop29Hqj6a5zQd32BYv33Dulw==} peerDependencies: @@ -4752,6 +4758,8 @@ snapshots: - debug - supports-color + '@inlang/plugin-message-format@2.0.0': {} + '@inlang/plugin@2.4.14(@sinclair/typebox@0.31.28)': dependencies: '@inlang/json-types': 1.1.0(@sinclair/typebox@0.31.28) diff --git a/frontend/project.inlang/settings.json b/frontend/project.inlang/settings.json index 3ac50e4a2..6f49cae1f 100644 --- a/frontend/project.inlang/settings.json +++ b/frontend/project.inlang/settings.json @@ -18,15 +18,7 @@ "sv", "id" ], - "modules": [ - "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-empty-pattern@latest/dist/index.js", - "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-identical-pattern@latest/dist/index.js", - "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-missing-translation@latest/dist/index.js", - "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-without-source@latest/dist/index.js", - "https://cdn.jsdelivr.net/npm/@inlang/message-lint-rule-valid-js-identifier@latest/dist/index.js", - "https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@latest/dist/index.js", - "https://cdn.jsdelivr.net/npm/@inlang/plugin-m-function-matcher@latest/dist/index.js" - ], + "modules": ["./node_modules/@inlang/plugin-message-format/dist/index.js"], "plugin.inlang.messageFormat": { "pathPattern": "./messages/{languageTag}.json" } From 1259f8bffa60b0c0d5dcc00ab00743cef6330319 Mon Sep 17 00:00:00 2001 From: Nassim Tabchiche Date: Fri, 10 Jan 2025 11:49:12 +0100 Subject: [PATCH 2/2] Bump plugin-message-format to 2.2.0 --- frontend/package.json | 2 +- frontend/pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 678abca91..ed41c2914 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -21,7 +21,7 @@ }, "devDependencies": { "@inlang/paraglide-js": "1.11.2", - "@inlang/plugin-message-format": "2.0.0", + "@inlang/plugin-message-format": "2.2.0", "@playwright/test": "^1.49.1", "@skeletonlabs/skeleton": "^2.10.3", "@skeletonlabs/tw-plugin": "^0.4.0", diff --git a/frontend/pnpm-lock.yaml b/frontend/pnpm-lock.yaml index bd4620c1a..3186d167a 100644 --- a/frontend/pnpm-lock.yaml +++ b/frontend/pnpm-lock.yaml @@ -55,8 +55,8 @@ importers: specifier: 1.11.2 version: 1.11.2(babel-plugin-macros@3.1.0) '@inlang/plugin-message-format': - specifier: 2.0.0 - version: 2.0.0 + specifier: 2.2.0 + version: 2.2.0 '@playwright/test': specifier: ^1.49.1 version: 1.49.1 @@ -735,8 +735,8 @@ packages: '@inlang/paraglide-vite@1.2.74': resolution: {integrity: sha512-SRHwD7vGO89NEzY2g+TsZWHo8EKoWrVppl/WePKzviRytUggOWZjW+Fxog2suOxC7Gm/C9X9r+7srzvrYasm7w==} - '@inlang/plugin-message-format@2.0.0': - resolution: {integrity: sha512-w1lY5687C5oyEIeQzNqBJMRd4bqiY2sD4IsaibjlBiD0G2BxLuWVviaYJNob8ObWz3P/gWgGQffqcv/dGkdKbg==} + '@inlang/plugin-message-format@2.2.0': + resolution: {integrity: sha512-6MJLExr3OLqbR8gCP4UEgNMgdaJFFCug2GLmFwid7Ana4kObnbCA33YN3m3eN8p+lmnv7zpfW7oeyTZXZLoptg==} '@inlang/plugin@2.4.14': resolution: {integrity: sha512-HFI1t1tKs6jXqwKVl59vvt7kvMgg2Po7xA3IFijfJTZCt0tTI8txqeXCUV9jhUop29Hqj6a5zQd32BYv33Dulw==} @@ -4758,7 +4758,7 @@ snapshots: - debug - supports-color - '@inlang/plugin-message-format@2.0.0': {} + '@inlang/plugin-message-format@2.2.0': {} '@inlang/plugin@2.4.14(@sinclair/typebox@0.31.28)': dependencies: