You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
3.4 KiB

  1. <template lang='pug'>
  2. v-container(fluid, fill-height, grid-list-lg)
  3. v-layout(row wrap)
  4. v-flex(xs12)
  5. .headline.primary--text Locale
  6. .subheading.grey--text Set localization options for your wiki
  7. v-form.pt-3
  8. v-layout(row wrap)
  9. v-flex(lg6 xs12)
  10. v-card
  11. v-toolbar(color='blue', dark, dense, flat)
  12. v-toolbar-title
  13. .subheading Locale
  14. v-btn(fab, absolute, right, bottom, small, light): v-icon save
  15. v-card-text
  16. v-select(:items='locales', prepend-icon='public', v-model='selectedLocale', label='Site Locale', persistent-hint, hint='All UI text elements will be displayed in selected language.')
  17. template(slot='item', slot-scope='data')
  18. v-list-tile-avatar
  19. v-avatar.blue.white--text(tile, size='40', v-html='data.item.value.toUpperCase()')
  20. v-list-tile-content
  21. v-list-tile-title(v-html='data.item.text')
  22. v-list-tile-sub-title(v-html='data.item.original')
  23. v-divider
  24. v-switch(v-model='rtlEnabled', label='RTL Text Display', color='primary', persistent-hint, hint='For Right-to-Left languages, e.g. Arabic')
  25. v-flex(lg6 xs12)
  26. v-card
  27. v-toolbar(color='blue', dark, dense, flat)
  28. v-toolbar-title
  29. .subheading Download Locale
  30. v-list
  31. v-list-tile(@click='')
  32. v-list-tile-avatar
  33. v-avatar.blue.white--text(tile, size='40') ZH
  34. v-list-tile-content
  35. v-list-tile-title Chinese
  36. v-list-tile-sub-title 中文
  37. v-list-tile-action
  38. v-btn(icon)
  39. v-icon.grey--text cloud_download
  40. v-list-tile(@click='')
  41. v-list-tile-avatar
  42. v-avatar.blue.white--text(tile, size='40') EN
  43. v-list-tile-content
  44. v-list-tile-title English
  45. v-list-tile-sub-title English
  46. v-list-tile-action
  47. v-icon.green--text check
  48. v-list-tile(@click='')
  49. v-list-tile-avatar
  50. v-avatar.blue.white--text(tile, size='40') FR
  51. v-list-tile-content
  52. v-list-tile-title French
  53. v-list-tile-sub-title Français
  54. v-list-tile-action
  55. v-icon.green--text check
  56. v-list-tile(@click='')
  57. v-list-tile-avatar
  58. v-avatar.blue.white--text(tile, size='40') RU
  59. v-list-tile-content
  60. v-list-tile-title Russian
  61. v-list-tile-sub-title Русский
  62. v-list-tile-action
  63. v-btn(icon)
  64. v-icon.blue--text update
  65. </template>
  66. <script>
  67. export default {
  68. data() {
  69. return {
  70. locales: [
  71. { text: 'English', original: 'English', value: 'en' },
  72. { text: 'French', original: 'Français', value: 'fr' }
  73. ],
  74. selectedLocale: 'en',
  75. rtlEnabled: false
  76. }
  77. }
  78. }
  79. </script>
  80. <style lang='scss'>
  81. </style>