Skip to content

Commit ca05d34

Browse files
committed
added language switch for migros engagement image
1 parent e566e32 commit ca05d34

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

vue/src/views/Contact.vue

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@
1414
"cividi.link":
1515
"https://cividi.ch",
1616
"em.link":
17-
"https://www.engagement-migros.ch/de",
18-
"img.em":
19-
"EngagementM_d_rgb.jpg"
17+
"https://www.engagement-migros.ch/de"
2018
},
2119
"fr": {
2220
"h1.1": "Contact",
@@ -31,9 +29,7 @@
3129
"cividi.link":
3230
"https://cividi.ch/societe",
3331
"em.link":
34-
"https://www.engagement-migros.ch/fr",
35-
"img.em":
36-
"EngagementM_f_rgb.jpg"
32+
"https://www.engagement-migros.ch/fr"
3733
}
3834
}
3935
</i18n>
@@ -64,7 +60,10 @@
6460
</p>
6561

6662
<a :href="$t('em.link')" target="_blank">
67-
<img v-bind:src="$t('img.em')" width="220px">
63+
<img v-if="$i18n.locale === 'fr'"
64+
src="@/assets/images/EngagementM_f_rgb.jpg" width="220px">
65+
<img v-else
66+
src="@/assets/images/EngagementM_d_rgb.jpg" width="220px">
6867
</a>
6968

7069
</v-flex>

0 commit comments

Comments
 (0)