1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-05 00:19:59 +00:00

fix: prepare translations status on codeflow fails (#1749)

This commit is contained in:
Joaquín Sánchez 2023-02-14 14:59:21 +01:00 committed by GitHub
parent f091e06d19
commit 1153421915
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,10 +2,16 @@ import flatten from 'flat'
import { createResolver } from '@nuxt/kit'
import fs from 'fs-extra'
import { currentLocales } from '../config/i18n'
import vsCodeConfig from '../.vscode/settings.json'
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])