From 365e5e3a5f0ccfc7006a1297f3fbfbe778da7bbc Mon Sep 17 00:00:00 2001 From: LorisSigrist Date: Tue, 26 Mar 2024 15:00:35 +0100 Subject: [PATCH] Fix typo --- .../paraglide/paraglide-js-adapter-astro/src/integration.ts | 4 ++-- .../paraglide/paraglide-js-adapter-astro/src/utilts.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inlang/source-code/paraglide/paraglide-js-adapter-astro/src/integration.ts b/inlang/source-code/paraglide/paraglide-js-adapter-astro/src/integration.ts index 36c1e30c90..47f87dcaee 100644 --- a/inlang/source-code/paraglide/paraglide-js-adapter-astro/src/integration.ts +++ b/inlang/source-code/paraglide/paraglide-js-adapter-astro/src/integration.ts @@ -3,7 +3,7 @@ import { paraglide } from "@inlang/paraglide-js-adapter-vite" import path from "node:path" import { alias } from "./alias.js" import { fileURLToPath } from "node:url" -import { normaizePath } from "./utilts.js" +import { normalizePath } from "./utilts.js" const __filename = fileURLToPath(import.meta.url) const __dirname = path.dirname(__filename) @@ -38,7 +38,7 @@ export function integration(integrationConfig: { //normalizing the path is very important! //otherwise you get duplicate modules on windows //learned that one the hard way (parjs-47) - "paraglide-js-adapter-astro:runtime": normaizePath(runtimePath), + "paraglide-js-adapter-astro:runtime": normalizePath(runtimePath), }), ], }, diff --git a/inlang/source-code/paraglide/paraglide-js-adapter-astro/src/utilts.ts b/inlang/source-code/paraglide/paraglide-js-adapter-astro/src/utilts.ts index b2a615854e..5acbf26c2a 100644 --- a/inlang/source-code/paraglide/paraglide-js-adapter-astro/src/utilts.ts +++ b/inlang/source-code/paraglide/paraglide-js-adapter-astro/src/utilts.ts @@ -8,6 +8,6 @@ function slash(p: string): string { const isWindows = typeof process !== "undefined" && process.platform === "win32" -export function normaizePath(id: string) { +export function normalizePath(id: string) { return path.posix.normalize(isWindows ? slash(id) : id) }