PersonalSettingLocale.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <!-- Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/ -->
  2. <script setup lang="ts">
  3. import { useLocaleUpdate } from '#shared/composables/useLocaleUpdate.ts'
  4. import LayoutContent from '#desktop/components/layout/LayoutContent.vue'
  5. import { useBreadcrumb } from '../composables/useBreadcrumb.ts'
  6. const { modelCurrentLocale, localeOptions, isSavingLocale, translation } =
  7. useLocaleUpdate()
  8. const { breadcrumbItems } = useBreadcrumb(__('Language'))
  9. </script>
  10. <template>
  11. <LayoutContent
  12. :breadcrumb-items="breadcrumbItems"
  13. width="narrow"
  14. provide-default
  15. >
  16. <div class="mb-4">
  17. <FormKit
  18. v-model="modelCurrentLocale"
  19. type="select"
  20. name="locale"
  21. :clearable="false"
  22. :label="$t('Your language')"
  23. :disabled="isSavingLocale"
  24. :no-options-label-translation="true"
  25. sorting="label"
  26. :options="localeOptions"
  27. />
  28. <p class="mt-4 text-sm">
  29. {{ $t('Did you know?') }}
  30. <CommonLink target="_blank" :link="translation.link">
  31. {{ $t('You can help translating Zammad.') }}
  32. </CommonLink>
  33. </p>
  34. </div>
  35. </LayoutContent>
  36. </template>