feat(ui): display post language

This commit is contained in:
Anthony Fu 2023-01-30 12:09:04 +01:00
parent 8d792d003d
commit 2a4862fb42
3 changed files with 26 additions and 21 deletions

11
composables/langugage.ts Normal file
View file

@ -0,0 +1,11 @@
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),
}))