From c4ebaf405018c113af4d6877a0d4ce23eecaf632 Mon Sep 17 00:00:00 2001 From: FajarKim Date: Sat, 14 Oct 2023 08:43:09 +0700 Subject: [PATCH] fix: error for could import locales --- src/src/card.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = `