diff --git a/src/src/card.ts b/src/src/card.ts index 71a1538..c76fc8c 100644 --- a/src/src/card.ts +++ b/src/src/card.ts @@ -1,11 +1,11 @@ import type { GetData } from "./getData"; import type { UiConfig } from "../api/index"; -import { locale, Locale } from "./translations"; +import { locales, Locales } from "./translations"; export default function cardStyle(data: GetData, uiConfig: UiConfig): string { let fallbackLocale = "en"; - const defaultLocale: Locale[keyof: Locale] = locale[fallbackLocale]; - const selectLocale: Locale[keyof: Locale] = locale[uiConfig.Locale] || defaultLocale; + const defaultLocale: Locales[keyof: Locales] = locales[fallbackLocale]; + const selectLocale: Locales[keyof: Locales] = locales[uiConfig.Locale] || defaultLocale; var card = `