From 0a22504fb0de9437bbd9bbcf00c335db85cde80b Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Fri, 5 Oct 2018 19:30:46 +0200
Subject: [PATCH] See #559: added a mixin to store common translations

---
 front/src/components/mixins/Translations.vue | 28 ++++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 front/src/components/mixins/Translations.vue

diff --git a/front/src/components/mixins/Translations.vue b/front/src/components/mixins/Translations.vue
new file mode 100644
index 00000000..3372b04a
--- /dev/null
+++ b/front/src/components/mixins/Translations.vue
@@ -0,0 +1,28 @@
+<script>
+export default {
+  computed: {
+    sharedLabels () {
+      return {
+        filters: {
+          creation_date: this.$gettext('Creation date'),
+          accessed_date: this.$gettext('Accessed date'),
+          modification_date: this.$gettext('Modification date'),
+          imported_date: this.$gettext('Imported date'),
+          expiration_date: this.$gettext('Expiration date'),
+          track_title: this.$gettext('Track name'),
+          album_title: this.$gettext('Album name'),
+          artist_name: this.$gettext('Artist name'),
+          name: this.$gettext('Name'),
+          title: this.$gettext('Title'),
+          size: this.$gettext('Size'),
+          bitrate: this.$gettext('Bitrate'),
+          duration: this.$gettext('Duration'),
+          date_joined: this.$gettext('Sign-up date'),
+          last_activity: this.$gettext('Last activity'),
+          username: this.$gettext('Username'),
+        }
+      }
+    }
+  }
+}
+</script>
-- 
GitLab