refactor: added language flag component

This commit is contained in:
2026-01-14 20:29:02 +01:00
parent 1819569234
commit e3e5eb3460
7 changed files with 60 additions and 38 deletions
+4 -5
View File
@@ -29,10 +29,7 @@
data-tooltip-type="HtmlTooltip"
:data-tooltip-content="`<b>${$t('app.language-tooltip-content')}</b>`"
>
<img
:src="`/images/icon-${mainStore.currentLocale}.svg`"
alt="change language flag icon"
/>
<FlagIcon :language-id="mainStore.currentLocale == 'pl' ? 0 : 1" />
</button>
<a
@@ -85,6 +82,7 @@ import { reactive } from 'vue';
import { provide } from 'vue';
import { ActiveSorter } from '../components/StationsView/typings';
import { onMounted } from 'vue';
import FlagIcon from '../components/Global/FlagIcon.vue';
const filterInitStates = { ...initFilters };
@@ -93,7 +91,8 @@ export default defineComponent({
StationTable,
StationFilterCard,
StationStats,
DonationCard
DonationCard,
FlagIcon
},
data: () => ({