Skip to content

Commit

Permalink
add translation for mt-banner
Browse files Browse the repository at this point in the history
  • Loading branch information
Haberkamp committed Oct 9, 2024
1 parent b5eb36a commit 54b5fa4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilled-apricots-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@shopware-ag/meteor-component-library": patch
---

Add translation for mt-banner
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
<button
v-if="closable"
class="mt-banner__close"
aria-label="Schließen"
title="Schließen"
:aria-label="t('close')"
@click.prevent="$emit('close', bannerIndex)"
>
<mt-icon name="solid-times-s" />
Expand All @@ -37,6 +36,18 @@ import { computed } from "vue";
import MtIcon from "../../icons-media/mt-icon/mt-icon.vue";
import MtText from "@/components/content/mt-text/mt-text.vue";
import { useFutureFlags } from "@/composables/useFutureFlags";
import { useI18n } from "@/composables/useI18n";
const { t } = useI18n({
messages: {
de: {
close: "Schließen",
},
en: {
close: "Close",
},
},
});
const props = withDefaults(
defineProps<{
Expand Down

0 comments on commit 54b5fa4

Please sign in to comment.