diff --git a/apps/web/src/components/panels/place/DataSourceSections.tsx b/apps/web/src/components/panels/place/DataSourceSections.tsx index 73740e3f..aca6fcd2 100644 --- a/apps/web/src/components/panels/place/DataSourceSections.tsx +++ b/apps/web/src/components/panels/place/DataSourceSections.tsx @@ -30,7 +30,7 @@ import { TEAL } from "@/lib/theme"; import { BrandMark } from "../shared/BrandMark"; import { type StructuredSection, StructuredSections } from "../shared/StructuredSections"; import { DataSourceNearbyTransit } from "./DataSourceNearbyTransit"; -import { useDataSourceI18nResolver } from "./useDataSourceI18nResolver.js"; +import { useDataSourceI18nResolver } from "./useDataSourceI18nResolver"; /** Section header config per data source type. */ const SOURCE_HEADERS: Record = { diff --git a/apps/web/src/components/panels/place/__tests__/useDataSourceI18nResolver.test.ts b/apps/web/src/components/panels/place/__tests__/useDataSourceI18nResolver.test.ts index 6d699e35..4bbbb16f 100644 --- a/apps/web/src/components/panels/place/__tests__/useDataSourceI18nResolver.test.ts +++ b/apps/web/src/components/panels/place/__tests__/useDataSourceI18nResolver.test.ts @@ -33,7 +33,7 @@ vi.mock("@/lib/frameworkStringsContext", () => ({ }) satisfies LocaleStrings, })); -import { useDataSourceI18nResolver } from "../useDataSourceI18nResolver.js"; +import { useDataSourceI18nResolver } from "../useDataSourceI18nResolver"; describe("useDataSourceI18nResolver", () => { it("resolves an integration-scoped token via the matching integration", () => { diff --git a/packages/integration-framework/src/contracts/mobility-data-source-provider.ts b/packages/integration-framework/src/contracts/mobility-data-source-provider.ts index 22ad0461..dfe9dee7 100644 --- a/packages/integration-framework/src/contracts/mobility-data-source-provider.ts +++ b/packages/integration-framework/src/contracts/mobility-data-source-provider.ts @@ -1,7 +1,7 @@ import type { BoundingBox, LngLat, OsmFilter } from "@openmapx/core"; import type { Attribution } from "@openmapx/mobility-core/attribution"; import type { MobilityResult } from "@openmapx/mobility-core/result"; -import type { I18nToken, Translatable } from "../../strings/index.js"; +import type { I18nToken, Translatable } from "../../strings/index"; export interface DataSourceAttribution { text: string; diff --git a/packages/integration-framework/src/loader.ts b/packages/integration-framework/src/loader.ts index 669313fb..722c2d15 100644 --- a/packages/integration-framework/src/loader.ts +++ b/packages/integration-framework/src/loader.ts @@ -1,4 +1,4 @@ -import type { LocaleStrings } from "../strings/index.js"; +import type { LocaleStrings } from "../strings/index"; import type { CustomHealthCheckFn } from "./context"; import type { IntegrationManifest } from "./manifest"; diff --git a/packages/integration-framework/strings/index.ts b/packages/integration-framework/strings/index.ts index e512f6b5..0a8133b2 100644 --- a/packages/integration-framework/strings/index.ts +++ b/packages/integration-framework/strings/index.ts @@ -1,13 +1,13 @@ -export { type ResolveOptions, resolveToken } from "./src/resolver.js"; -export { sharedStrings, sharedT, token } from "./src/token.js"; -export type { I18nToken, LocaleCatalog, LocaleStrings, Translatable } from "./src/types.js"; +export { type ResolveOptions, resolveToken } from "./src/resolver"; +export { sharedStrings, sharedT, token } from "./src/token"; +export type { I18nToken, LocaleCatalog, LocaleStrings, Translatable } from "./src/types"; /** * Runtime check for whether a value is an `I18nToken`. Used by the client * resolver to decide between translating a token and rendering a passthrough * `string | number` value. */ -export function isI18nToken(value: unknown): value is import("./src/types.js").I18nToken { +export function isI18nToken(value: unknown): value is import("./src/types").I18nToken { return ( typeof value === "object" && value !== null && diff --git a/packages/integration-framework/strings/src/resolver.ts b/packages/integration-framework/strings/src/resolver.ts index cd4510ff..60d96531 100644 --- a/packages/integration-framework/strings/src/resolver.ts +++ b/packages/integration-framework/strings/src/resolver.ts @@ -1,5 +1,5 @@ import { IntlMessageFormat } from "intl-messageformat"; -import type { I18nToken, LocaleStrings } from "./types.js"; +import type { I18nToken, LocaleStrings } from "./types"; export interface ResolveOptions { /** Active locale (e.g. "en", "de"). */ diff --git a/packages/integration-framework/strings/src/token.ts b/packages/integration-framework/strings/src/token.ts index 439ec265..b02c4821 100644 --- a/packages/integration-framework/strings/src/token.ts +++ b/packages/integration-framework/strings/src/token.ts @@ -1,6 +1,6 @@ import deShared from "../locales/de.json" with { type: "json" }; import enShared from "../locales/en.json" with { type: "json" }; -import type { I18nToken, LocaleStrings } from "./types.js"; +import type { I18nToken, LocaleStrings } from "./types"; /** * The framework's shared-vocabulary catalog. Indexed by locale code; each