Skip to content

Commit

Permalink
fix: 560 Removed duplicate i18n keys
Browse files Browse the repository at this point in the history
  • Loading branch information
mattburnett-repo committed Jan 6, 2024
1 parent aa4093d commit df66bfd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 24 deletions.
35 changes: 16 additions & 19 deletions frontend/components/modal/ModalCommandPalette.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,15 @@
name="bi:search"
size="1em"
/>
<Transition name="search">
<!-- TODO: Input area is much smaller that tag width. -->
<input
ref="input"
class="w-16 h-5 bg-transparent outline-none"
type="text"
size="100"
:placeholder="
$t('components.modal-command-palette.search-alt-text')
"
/>
</Transition>

<!-- TODO: Input area is much smaller that tag width. -->
<input
ref="input"
class="w-16 h-5 bg-transparent outline-none"
type="text"
size="100"
:placeholder="$t('_global.search')"
/>
</div>
</div>
<DialogTitle class="font-display flex justify-between mt-5">
Expand All @@ -41,11 +38,11 @@
<Icon
name="material-symbols:other-houses-outline"
size="1em"
:alt="$t('components.modal-command-palette.home')"
:alt="$t('_global.home')"
/>
</div>
<div class="group command-palette-element-hover">
{{ $t("components.modal-command-palette.home") }}
{{ $t("_global.home") }}
<span class="jump-link">
{{ $t("components.modal-command-palette.jump-to") }}
</span>
Expand Down Expand Up @@ -75,11 +72,11 @@
<Icon
name="material-symbols:notifications-outline"
size="1em"
:alt="$t('components.modal-command-palette.notifications')"
:alt="$t('_global.notifications')"
/>
</div>
<div class="group command-palette-element-hover">
{{ $t("components.modal-command-palette.notifications") }}
{{ $t("_global.notifications") }}
<span class="jump-link">{{
$t("components.modal-command-palette.jump-to")
}}</span>
Expand All @@ -92,11 +89,11 @@
<Icon
name="octicon:comment-discussion"
size="1em"
:alt="$t('components.modal-command-palette.discussions')"
:alt="$t('_global.discussions')"
/>
</div>
<div class="group command-palette-element-hover">
{{ $t("components.modal-command-palette.discussions") }}
{{ $t("_global.discussions") }}
<span class="jump-link">{{
$t("components.modal-command-palette.jump-to")
}}</span>
Expand All @@ -106,7 +103,7 @@

<DialogTitle class="font-display flex justify-between mt-3">
<p class="text-3xl md:responsive-h2 font-bold">
{{ $t("components.modal-command-palette.organizations-header") }}
{{ $t("_global.organization") }}
</p>
</DialogTitle>
<router-link to="/organizations">
Expand Down
6 changes: 1 addition & 5 deletions frontend/i18n/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"_global.imprint": "Imprint",
"_global.legal": "Legal",
"_global.legal-support": "Legal support",
"_global.notifications": "Notifications",
"_global.organization": "Organization",
"_global.press": "Press",
"_global.privacy-policy": "Privacy policy",
Expand Down Expand Up @@ -199,14 +200,9 @@
"components.menu-mobile-selector.label.organizations": "Organizations",
"components.meta-tag-stars.label": "stars",
"components.meta-tag.supporters_lower": "supporters",
"components.modal-command-palette.discussions": "Discussions",
"components.modal-command-palette.home": "Home",
"components.modal-command-palette.jump-to": "Jump to",
"components.modal-command-palette.notifications": "Notifications",
"components.modal-command-palette.organizations-header": "Organizations",
"components.modal-command-palette.organization-stub": "Organization Stub Text",
"components.modal-command-palette.pages-header": "Pages",
"components.modal-command-palette.search-alt-text": "Search",
"components.modal-command-palette.upcoming-events": "Upcoming Events",
"components.modal-image.close-modal-aria-label": "Close the larger version of this image",
"components.modal-image.open-modal-aria-label": "Open a larger version of this image",
Expand Down

0 comments on commit df66bfd

Please sign in to comment.