mirror of https://github.com/requarks/wiki
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.
87 lines
3.4 KiB
87 lines
3.4 KiB
7 years ago
|
<template lang='pug'>
|
||
|
v-container(fluid, fill-height, grid-list-lg)
|
||
|
v-layout(row wrap)
|
||
|
v-flex(xs12)
|
||
7 years ago
|
.headline.primary--text Locale
|
||
7 years ago
|
.subheading.grey--text Set localization options for your wiki
|
||
|
v-form.pt-3
|
||
|
v-layout(row wrap)
|
||
|
v-flex(lg6 xs12)
|
||
|
v-card
|
||
7 years ago
|
v-toolbar(color='primary', dark, dense, flat)
|
||
7 years ago
|
v-toolbar-title
|
||
7 years ago
|
.subheading Locale Settings
|
||
7 years ago
|
v-card-text
|
||
|
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.')
|
||
|
template(slot='item', slot-scope='data')
|
||
|
v-list-tile-avatar
|
||
|
v-avatar.blue.white--text(tile, size='40', v-html='data.item.value.toUpperCase()')
|
||
|
v-list-tile-content
|
||
|
v-list-tile-title(v-html='data.item.text')
|
||
|
v-list-tile-sub-title(v-html='data.item.original')
|
||
|
v-divider
|
||
7 years ago
|
v-switch(v-model='rtlEnabled', label='RTL Display Mode', color='primary', persistent-hint, hint='For Right-to-Left languages, e.g. Arabic')
|
||
|
v-divider
|
||
|
.px-3.pb-3
|
||
|
v-btn(color='primary') Save
|
||
7 years ago
|
v-flex(lg6 xs12)
|
||
|
v-card
|
||
7 years ago
|
v-toolbar(color='teal', dark, dense, flat)
|
||
7 years ago
|
v-toolbar-title
|
||
|
.subheading Download Locale
|
||
|
v-list
|
||
|
v-list-tile(@click='')
|
||
|
v-list-tile-avatar
|
||
7 years ago
|
v-avatar.teal.white--text(tile, size='40') ZH
|
||
7 years ago
|
v-list-tile-content
|
||
|
v-list-tile-title Chinese
|
||
|
v-list-tile-sub-title 中文
|
||
|
v-list-tile-action
|
||
|
v-btn(icon)
|
||
|
v-icon.grey--text cloud_download
|
||
|
v-list-tile(@click='')
|
||
|
v-list-tile-avatar
|
||
7 years ago
|
v-avatar.teal.white--text(tile, size='40') EN
|
||
7 years ago
|
v-list-tile-content
|
||
|
v-list-tile-title English
|
||
|
v-list-tile-sub-title English
|
||
|
v-list-tile-action
|
||
|
v-icon.green--text check
|
||
|
v-list-tile(@click='')
|
||
|
v-list-tile-avatar
|
||
7 years ago
|
v-avatar.teal.white--text(tile, size='40') FR
|
||
7 years ago
|
v-list-tile-content
|
||
|
v-list-tile-title French
|
||
|
v-list-tile-sub-title Français
|
||
|
v-list-tile-action
|
||
|
v-icon.green--text check
|
||
|
v-list-tile(@click='')
|
||
|
v-list-tile-avatar
|
||
7 years ago
|
v-avatar.teal.white--text(tile, size='40') RU
|
||
7 years ago
|
v-list-tile-content
|
||
|
v-list-tile-title Russian
|
||
|
v-list-tile-sub-title Русский
|
||
|
v-list-tile-action
|
||
|
v-btn(icon)
|
||
|
v-icon.blue--text update
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
locales: [
|
||
|
{ text: 'English', original: 'English', value: 'en' },
|
||
|
{ text: 'French', original: 'Français', value: 'fr' }
|
||
|
],
|
||
|
selectedLocale: 'en',
|
||
|
rtlEnabled: false
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style lang='scss'>
|
||
|
|
||
|
</style>
|