2025-01-23 07:00:50 -08:00

9 lines
289 B
TypeScript

import * as LANG_FLAGS from "@/langs-flags-list/lang-flags.json"
export const LANGUAGES = Object.keys(LANG_FLAGS);
export type lang_t = typeof LANGUAGES[number];
export function longLang(shortLang : string) {
return ((LANG_FLAGS as any)[shortLang] as any)["nameEnglish"] as string
}