From aeba239964a843494d2871b27af8b3cd408cecd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joaqu=C3=ADn=20S=C3=A1nchez?= Date: Sat, 18 Feb 2023 13:44:28 +0100 Subject: [PATCH] fix: installing deps on main error (#1790) --- scripts/prepare-translation-status.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/scripts/prepare-translation-status.ts b/scripts/prepare-translation-status.ts index f1b6b31a..4bd0f13d 100644 --- a/scripts/prepare-translation-status.ts +++ b/scripts/prepare-translation-status.ts @@ -5,13 +5,6 @@ import { currentLocales } from '../config/i18n' import type { LocaleEntry } from '../docs/types' import type { ElkTranslationStatus } from '~/types/translation-status' -const vsCodeConfig = JSON.parse( - await fs.readFile( - new URL('../.vscode/settings.json', import.meta.url), - 'utf-8', - ), -) - export const localeData: [code: string, file: string[], title: string][] = currentLocales.map((l: any) => [l.code, l.files ? l.files : [l.file!], l.name ?? l.code]) @@ -65,7 +58,7 @@ async function compare( } async function prepareTranslationStatus() { - const sourceLanguageLocale = localeData.find(l => l[0] === vsCodeConfig['i18n-ally.sourceLanguage'])! + const sourceLanguageLocale = localeData.find(l => l[0] === 'en-US')! const entries: Record = await readI18nFile(sourceLanguageLocale[1]) const flatEntries = flatten>(entries) const total = Object.keys(flatEntries).length