diff --git a/components/publish/PublishWidget.vue b/components/publish/PublishWidget.vue index 05646bc0..63e4d4c9 100644 --- a/components/publish/PublishWidget.vue +++ b/components/publish/PublishWidget.vue @@ -3,6 +3,7 @@ import type { Attachment, CreateStatusParams, Status, StatusVisibility } from 'm import { fileOpen } from 'browser-fs-access' import { useDropZone } from '@vueuse/core' import { EditorContent } from '@tiptap/vue-3' +import ISO6391 from 'iso-639-1' import type { Draft } from '~/types' type FileUploadError = [filename: string, message: string] @@ -135,6 +136,10 @@ function chooseVisibility(visibility: StatusVisibility) { draft.params.visibility = visibility } +function chooseLanguage(language: string | null) { + draft.params.language = language +} + async function publish() { const payload = { ...draft.params, @@ -323,6 +328,41 @@ defineExpose({ + + + + + + + +