From c54c398c567454eafde64666204d07b52dee4310 Mon Sep 17 00:00:00 2001 From: Jeff Sagal Date: Sun, 1 Aug 2021 13:15:23 -0700 Subject: [PATCH] fix tests --- src/components/Select.vue | 27 ++++++++++++++++----------- src/mixins/i18n.js | 6 +++++- src/mixins/index.js | 2 ++ tests/unit/InternationalText.spec.js | 2 +- 4 files changed, 24 insertions(+), 13 deletions(-) diff --git a/src/components/Select.vue b/src/components/Select.vue index a99a5ef..7bfc85b 100644 --- a/src/components/Select.vue +++ b/src/components/Select.vue @@ -12,7 +12,7 @@ role="combobox" :aria-expanded="dropdownOpen.toString()" :aria-owns="`vs${uid}__listbox`" - aria-label="Search for option" + :aria-label="i18n.search.ariaLabel" @mousedown="toggleDropdown($event)" >
@@ -37,8 +37,10 @@ :disabled="disabled" type="button" class="vs__deselect" - :title="`Deselect ${getOptionLabel(option)}`" - :aria-label="`Deselect ${getOptionLabel(option)}`" + :title="i18n.deselectButton.title(getOptionLabel(option))" + :aria-label=" + i18n.deselectButton.ariaLabel(getOptionLabel(option)) + " @click="deselect(option)" > @@ -78,7 +80,9 @@ -
Loading...
+
+ {{ i18n.spinner.text }} +
@@ -116,9 +120,9 @@
  • - Sorry, no matching options. + + {{ i18n.noOptions.text }} +
  • @@ -134,9 +138,10 @@