(translationDocs: TranslationDocument[])
| 17 | export type TranslationDocument = z.infer<typeof TranslationDocumentSchema>; |
| 18 | |
| 19 | export function computeLocaleDocuments(translationDocs: TranslationDocument[]): LocaleDocument[] { |
| 20 | const langs = new Set(translationDocs.map((d) => d.lang)); |
| 21 | return Array.from(langs).map((lang) => ({ lang, updated_at: new Date() })); |
| 22 | } |
| 23 | |
| 24 | export function buildIndexMap( |
| 25 | data: Record<string, unknown>[] |
no outgoing calls
no test coverage detected