9 lines
289 B
TypeScript
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
|
|
} |