feat: category codes explanation tooltips

This commit is contained in:
2024-08-09 15:24:26 +02:00
parent cd1a4fa734
commit 1852d3e234
8 changed files with 128 additions and 15 deletions
+12
View File
@@ -0,0 +1,12 @@
import { defineComponent } from 'vue';
export default defineComponent({
methods: {
getCategoryExplanation(categoryCode: string) {
const categoryKey = categoryCode.slice(0, 2);
const vehicleTypeKey = categoryCode.slice(-1);
return `${this.$t('categories.' + categoryKey)}\n(${this.$t('categories.' + vehicleTypeKey)})`;
}
}
});