Download src/lib/helpers/languages.ts from hivetrace/GuardRateLeaderboard: direct link, hf CLI and curl.
- Browser
- Download file 313 Bytes
-
https://huggingface.co/spaces/hivetrace/GuardRateLeaderboard/resolve/main/src/lib/helpers/languages.ts
- Command line
-
hf download hf://spaces/hivetrace/GuardRateLeaderboard/src/lib/helpers/languages.ts
-
curl -L -o languages.ts https://huggingface.co/spaces/hivetrace/GuardRateLeaderboard/resolve/main/src/lib/helpers/languages.ts
313 Bytes
| import { type Locale, locales as availableLocales } from '$lib/paraglide/runtime'; | |
| export const languageLabels: Partial<Record<Locale, string>> = { | |
| en: 'English', | |
| ru: 'Русский' | |
| }; | |
| export const languages = availableLocales.map((code) => ({ | |
| code, | |
| label: languageLabels[code] ?? code.toUpperCase() | |
| })); | |