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 beb32d3 commit 02a1dad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/src/card.ts
Original file line number Diff line number Diff line change
@@ -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 = `<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
2 changes: 1 addition & 1 deletion src/src/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export type Locale = {
totalPRText: string;
totalPRMergedText: string;
totalIssuesText: string;
totalContributedToText: string;
contributedToText: string;
};
};

Expand Down

0 comments on commit 02a1dad

Please sign in to comment.