mirror of
https://iceshrimp.dev/iceshrimp/akkoma-fe.git
synced 2025-12-16 08:23:04 +01:00
16 lines
317 B
JavaScript
16 lines
317 B
JavaScript
import iso6391 from 'iso-639-1'
|
|
import { computed } from 'vue'
|
|
|
|
export const usePostLanguageOptions = () => {
|
|
const postLanguageOptions = computed(() => {
|
|
return iso6391.getAllCodes().map(lang => ({
|
|
key: lang,
|
|
value: lang,
|
|
label: lang,
|
|
}));
|
|
})
|
|
|
|
return {
|
|
postLanguageOptions,
|
|
}
|
|
}
|