add langs flags repo.

This commit is contained in:
Jordan Hewitt
2025-01-23 07:00:50 -08:00
parent e83034cedc
commit 7d2fb3d589
6 changed files with 32 additions and 4507 deletions

View File

@ -1,9 +1,9 @@
export const LANGUAGES = [
"en",
"es",
"fr",
"uk",
"rs",
]
import * as LANG_FLAGS from "@/langs-flags-list/lang-flags.json"
export type language_t = typeof LANGUAGES[number];
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
}