fix(webui): add i18n for Vuetify datatable

This commit is contained in:
Gauthier Roebroeck 2021-02-22 11:24:13 +08:00
parent f57b949de2
commit add6160eac
10 changed files with 78 additions and 1 deletions

View file

@ -1,4 +1,12 @@
{
"$vuetify": {
"dataFooter": {
"pageText": "{0}-{1} من {2}"
},
"dataTable": {
"itemsPerPageText": "الصفوف لكل صفحة:"
}
},
"account_settings": {
"account_settings": "إعدادات الحساب",
"change_password": "تغيير كلمة السر"

View file

@ -1,4 +1,12 @@
{
"$vuetify": {
"dataFooter": {
"pageText": "{0}-{1} von {2}"
},
"dataTable": {
"itemsPerPageText": "Zeilen pro Seite:"
}
},
"account_settings": {
"account_settings": "Kontoeinstellungen",
"change_password": "Passwortänderung"

View file

@ -1,4 +1,12 @@
{
"$vuetify": {
"dataFooter": {
"pageText": "{0}-{1} of {2}"
},
"dataTable": {
"itemsPerPageText": "Rows per page:"
}
},
"account_settings": {
"account_settings": "Account Settings",
"change_password": "change password"

View file

@ -1,4 +1,12 @@
{
"$vuetify": {
"dataFooter": {
"pageText": "{0}-{1} de {2}"
},
"dataTable": {
"itemsPerPageText": "Filas por página:"
}
},
"account_settings": {
"account_settings": "Configuración de cuenta",
"change_password": "Cambiar contraseña"

View file

@ -1,4 +1,12 @@
{
"$vuetify": {
"dataFooter": {
"pageText": "{0}-{1} de {2}"
},
"dataTable": {
"itemsPerPageText": "Élements par page:"
}
},
"account_settings": {
"account_settings": "Paramètres du compte",
"change_password": "Modifier le mot de passe"

View file

@ -1,4 +1,12 @@
{
"$vuetify": {
"dataFooter": {
"pageText": "{2} 중 {0}-{1}"
},
"dataTable": {
"itemsPerPageText": "페이지 당 행 수:"
}
},
"account_settings": {
"account_settings": "계정 설정",
"change_password": "비밀번호 변경"

View file

@ -1,4 +1,12 @@
{
"$vuetify": {
"dataFooter": {
"pageText": "{0}-{1} av {2}"
},
"dataTable": {
"itemsPerPageText": "Rader per side:"
}
},
"account_settings": {
"account_settings": "kontoinnstillinger",
"change_password": "endre passord"

View file

@ -1,4 +1,12 @@
{
"$vuetify": {
"dataFooter": {
"pageText": "{0}-{1} de {2}"
},
"dataTable": {
"itemsPerPageText": "Linhas por página:"
}
},
"account_settings": {
"account_settings": "configurações da conta",
"change_password": "mudar senha"

View file

@ -1,4 +1,12 @@
{
"$vuetify": {
"dataFooter": {
"pageText": "{0}-{1} из {2}"
},
"dataTable": {
"itemsPerPageText": "Строк на странице:"
}
},
"account_settings": {
"account_settings": "настройки учётной записи",
"change_password": "изменить пароль"

View file

@ -4,7 +4,8 @@ import Vue from 'vue'
import Vuetify from 'vuetify/lib'
import colors from 'vuetify/lib/util/colors'
import { Touch } from 'vuetify/lib/directives'
import {Touch} from 'vuetify/lib/directives'
import i18n from "@/i18n";
Vue.use(Vuetify, {
directives: {
@ -17,6 +18,10 @@ export default new Vuetify({
iconfont: 'mdi',
},
lang: {
t: (key, ...params) => i18n.t(key, params).toString(),
},
theme: {
options: {
customProperties: true,