Skip to content

Commit

Permalink
fix: error for could import locales
Browse files Browse the repository at this point in the history
  • Loading branch information
FajarKim committed Oct 14, 2023
1 parent 2bddef6 commit c4ebaf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/src/card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `<svg width="535" height="245" viewBox="0 0 535 245" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<style>
Expand Down

0 comments on commit c4ebaf4

Please sign in to comment.