mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
13 lines
359 B
TypeScript
13 lines
359 B
TypeScript
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)})`;
|
|
}
|
|
}
|
|
});
|