elk/composables/langugage.ts

12 wiersze
247 B
TypeScript
Czysty Zwykły widok Historia

2023-01-30 11:09:04 +00:00
import ISO6391 from 'iso-639-1'
export const languagesNameList: {
code: string
nativeName: string
name: string
}[] = ISO6391.getAllCodes().map(code => ({
code,
nativeName: ISO6391.getNativeName(code),
name: ISO6391.getName(code),
}))