import { Strings } from 'lit-translate' ; import { de } from './de.js' ; import { en } from './en.js' ; export type Language = 'en' | 'de' ; export const languages = { en , de } ; export type Translations = typeof en ; export async function loader ( lang ) { if ( Object . keys ( languages ) . includes ( lang ) ) return languages [ < Language > lang ] ; else return { } ; }