2018-03-03 06:32:58 +00:00
< template lang = 'pug' >
v - container ( fluid , fill - height , grid - list - lg )
v - layout ( row wrap )
v - flex ( xs12 )
2018-03-04 02:48:28 +00:00
. headline . primary -- text Locale
2018-03-03 06:32:58 +00:00
. subheading . grey -- text Set localization options for your wiki
v - form . pt - 3
v - layout ( row wrap )
v - flex ( lg6 xs12 )
v - card
2018-03-12 04:09:54 +00:00
v - toolbar ( color = 'primary' , dark , dense , flat )
2018-03-03 06:32:58 +00:00
v - toolbar - title
2018-03-12 04:09:54 +00:00
. subheading Locale Settings
2018-03-03 06:32:58 +00:00
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
2018-03-12 04:09:54 +00:00
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
2018-03-03 06:32:58 +00:00
v - flex ( lg6 xs12 )
v - card
2018-03-12 04:09:54 +00:00
v - toolbar ( color = 'teal' , dark , dense , flat )
2018-03-03 06:32:58 +00:00
v - toolbar - title
. subheading Download Locale
v - list
v - list - tile ( @ click = '' )
v - list - tile - avatar
2018-03-12 04:09:54 +00:00
v - avatar . teal . white -- text ( tile , size = '40' ) ZH
2018-03-03 06:32:58 +00:00
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
2018-03-12 04:09:54 +00:00
v - avatar . teal . white -- text ( tile , size = '40' ) EN
2018-03-03 06:32:58 +00:00
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
2018-03-12 04:09:54 +00:00
v - avatar . teal . white -- text ( tile , size = '40' ) FR
2018-03-03 06:32:58 +00:00
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
2018-03-12 04:09:54 +00:00
v - avatar . teal . white -- text ( tile , size = '40' ) RU
2018-03-03 06:32:58 +00:00
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 >