From 9d1f35c629220397c63ab5e11e8bbb196f818e6b Mon Sep 17 00:00:00 2001 From: Jrodenas Date: Thu, 5 Mar 2026 19:00:31 +0100 Subject: [PATCH] feat: Add inlang CLI and VS Code extension for i18n tooling and adjust locale import path. --- .vscode/extensions.json | 5 +++++ package.json | 6 ++++-- project.inlang/settings.json | 7 +++++-- src/routes/__root.tsx | 2 +- 4 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 .vscode/extensions.json diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..116d685 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,5 @@ +{ + "recommendations": [ + "inlang.vs-code-extension" + ] +} \ No newline at end of file diff --git a/package.json b/package.json index 887b3d7..0c31c48 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "start": "node --import ./.output/server/instrument.server.mjs .output/server/index.mjs", "format": "biome format", "lint": "biome lint", - "check": "biome check" + "check": "biome check", + "machine-translate": "inlang machine translate --project project.inlang" }, "dependencies": { "@heroui/react": "^3.0.0-beta.8", @@ -48,6 +49,7 @@ "typescript": "^5.9.3", "vite": "^7.3.1", "vite-tsconfig-paths": "^6.1.1", - "vitest": "^3.2.4" + "vitest": "^3.2.4", + "@inlang/cli": "^3.0.0" } } \ No newline at end of file diff --git a/project.inlang/settings.json b/project.inlang/settings.json index 9bdce4c..62d77ad 100644 --- a/project.inlang/settings.json +++ b/project.inlang/settings.json @@ -1,7 +1,10 @@ { "$schema": "https://inlang.com/schema/project-settings", "baseLocale": "en", - "locales": ["en", "de"], + "locales": [ + "en", + "de" + ], "modules": [ "https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@4/dist/index.js", "https://cdn.jsdelivr.net/npm/@inlang/plugin-m-function-matcher@2/dist/index.js" @@ -9,4 +12,4 @@ "plugin.inlang.messageFormat": { "pathPattern": "./messages/{locale}.json" } -} +} \ No newline at end of file diff --git a/src/routes/__root.tsx b/src/routes/__root.tsx index 927af3d..8569dd2 100644 --- a/src/routes/__root.tsx +++ b/src/routes/__root.tsx @@ -5,7 +5,7 @@ import { Scripts } from "@tanstack/react-router" import { Devtools } from "@/integrations/devtools" -import { getLocale } from "@/paraglide/runtime" +import { getLocale } from "@/integrations/paraglide/runtime" import appCss from "@/styles/globals.css?url" import Header from "../components/Header"