From 291118b38d2b9b1f94cc535e5b6db335314e32cc Mon Sep 17 00:00:00 2001 From: Collin Brown Date: Thu, 10 Sep 2020 12:31:45 -0400 Subject: [PATCH] Adding localization for Vuetify --- frontend/components/containers/documents/DocumentList.vue | 3 ++- frontend/i18n/en/index.js | 2 ++ frontend/i18n/en/vuetify.js | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 frontend/i18n/en/vuetify.js diff --git a/frontend/components/containers/documents/DocumentList.vue b/frontend/components/containers/documents/DocumentList.vue index 170faa85..ebfd5bcc 100644 --- a/frontend/components/containers/documents/DocumentList.vue +++ b/frontend/components/containers/documents/DocumentList.vue @@ -9,7 +9,8 @@ :loading="loading" :footer-props="{ 'showFirstLastPage': true, - 'items-per-page-options': [10, 50, 100] + 'items-per-page-options': [10, 50, 100], + 'items-per-page-text': $t('vuetify.itemsPerPageText') }" item-key="id" loading-text="Loading... Please wait" diff --git a/frontend/i18n/en/index.js b/frontend/i18n/en/index.js index 39b53b84..d136a8c0 100644 --- a/frontend/i18n/en/index.js +++ b/frontend/i18n/en/index.js @@ -1,6 +1,7 @@ import home from './home' import header from './header' import generic from './generic' +import vuetify from './vuetify' import annotation from './projects/annotation' import dataset from './projects/dataset' import errors from './projects/errors' @@ -15,6 +16,7 @@ export default { home, header, generic, + vuetify, annotation, dataset, errors, diff --git a/frontend/i18n/en/vuetify.js b/frontend/i18n/en/vuetify.js new file mode 100644 index 00000000..3a4d4835 --- /dev/null +++ b/frontend/i18n/en/vuetify.js @@ -0,0 +1,3 @@ +export default { + itemsPerPageText: 'Rows per Page' +}