feat: Add inlang CLI and VS Code extension for i18n tooling and adjust locale import path.
This commit is contained in:
5
.vscode/extensions.json
vendored
Normal file
5
.vscode/extensions.json
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"inlang.vs-code-extension"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -10,7 +10,8 @@
|
|||||||
"start": "node --import ./.output/server/instrument.server.mjs .output/server/index.mjs",
|
"start": "node --import ./.output/server/instrument.server.mjs .output/server/index.mjs",
|
||||||
"format": "biome format",
|
"format": "biome format",
|
||||||
"lint": "biome lint",
|
"lint": "biome lint",
|
||||||
"check": "biome check"
|
"check": "biome check",
|
||||||
|
"machine-translate": "inlang machine translate --project project.inlang"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@heroui/react": "^3.0.0-beta.8",
|
"@heroui/react": "^3.0.0-beta.8",
|
||||||
@@ -48,6 +49,7 @@
|
|||||||
"typescript": "^5.9.3",
|
"typescript": "^5.9.3",
|
||||||
"vite": "^7.3.1",
|
"vite": "^7.3.1",
|
||||||
"vite-tsconfig-paths": "^6.1.1",
|
"vite-tsconfig-paths": "^6.1.1",
|
||||||
"vitest": "^3.2.4"
|
"vitest": "^3.2.4",
|
||||||
|
"@inlang/cli": "^3.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,10 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://inlang.com/schema/project-settings",
|
"$schema": "https://inlang.com/schema/project-settings",
|
||||||
"baseLocale": "en",
|
"baseLocale": "en",
|
||||||
"locales": ["en", "de"],
|
"locales": [
|
||||||
|
"en",
|
||||||
|
"de"
|
||||||
|
],
|
||||||
"modules": [
|
"modules": [
|
||||||
"https://cdn.jsdelivr.net/npm/@inlang/plugin-message-format@4/dist/index.js",
|
"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"
|
"https://cdn.jsdelivr.net/npm/@inlang/plugin-m-function-matcher@2/dist/index.js"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import {
|
|||||||
Scripts
|
Scripts
|
||||||
} from "@tanstack/react-router"
|
} from "@tanstack/react-router"
|
||||||
import { Devtools } from "@/integrations/devtools"
|
import { Devtools } from "@/integrations/devtools"
|
||||||
import { getLocale } from "@/paraglide/runtime"
|
import { getLocale } from "@/integrations/paraglide/runtime"
|
||||||
import appCss from "@/styles/globals.css?url"
|
import appCss from "@/styles/globals.css?url"
|
||||||
import Header from "../components/Header"
|
import Header from "../components/Header"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user