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