Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Update Locales json files with camelCase keys and interpolated strings (#2100)

sajeremyea17972522d5
diff --git a/frontend/src/assets/error_images/image_info.json b/frontend/src/assets/error_images/image_info.json
index 1056d8d13..e8ed239a5 100644
--- a/frontend/src/assets/error_images/image_info.json
+++ b/frontend/src/assets/error_images/image_info.json
@@ -3,7 +3,7 @@
{
"error": "NO_RESULT",
"image": {
- "id": "depressed-musician",
+ "id": "depressedMusician",
"file": "depressed_musician",
"title": "Depressed musician vintage drawing",
"foreign_landing_url": "https://www.rawpixel.com/image/573060/depressed-musician-vintage-drawing",
@@ -16,7 +16,7 @@
{
"error": "SERVER_TIMEOUT",
"image": {
- "id": "waiting-for-a-bite",
+ "id": "waitingForABite",
"file": "waiting_for_a_bite",
"title": "Waiting for a Bite, from Harper's Weekly, August 22, 1874, p. 693",
"foreign_landing_url": "https://collection.cooperhewitt.org/view/objects/asitem/id/105053",
diff --git a/frontend/src/components/VAudioDetails/VAudioDetails.vue b/frontend/src/components/VAudioDetails/VAudioDetails.vue
index d15cd1222..1cfeaa53e 100644
--- a/frontend/src/components/VAudioDetails/VAudioDetails.vue
+++ b/frontend/src/components/VAudioDetails/VAudioDetails.vue
@@ -34,7 +34,7 @@
<div v-if="audio.category">
<dt>{{ $t("audio-details.table.category") }}</dt>
<dd>
- {{ $t(`filters.audio-categories.${audio.category}`) }}
+ {{ $t(`filters.audioCategories.${audio.category}`) }}
</dd>
</div>
<div v-if="audio.sample_rate">
diff --git a/frontend/src/components/VAudioThumbnail/VAudioThumbnail.vue b/frontend/src/components/VAudioThumbnail/VAudioThumbnail.vue
index fc35b29d5..4f6c843cd 100644
--- a/frontend/src/components/VAudioThumbnail/VAudioThumbnail.vue
+++ b/frontend/src/components/VAudioThumbnail/VAudioThumbnail.vue
@@ -53,7 +53,7 @@ export default defineComponent({
setup(props) {
const i18n = useI18n()
const helpText = i18n
- .t("audio-thumbnail.alt", {
+ .t("audioThumbnail.alt", {
title: props.audio.title,
creator: props.audio.creator,
})
diff --git a/frontend/src/components/VAudioTrack/VAudioTrack.vue b/frontend/src/components/VAudioTrack/VAudioTrack.vue
index 5e9bec45f..48dc77eeb 100644
--- a/frontend/src/components/VAudioTrack/VAudioTrack.vue
+++ b/frontend/src/components/VAudioTrack/VAudioTrack.vue
@@ -359,7 +359,7 @@ export default defineComponent({
$sentry.captureException(err)
}
console.log("Error playing audio:", err, errorMsg)
- errorMsg = i18n.t(`audio-track.messages.${errorMsg}`).toString()
+ errorMsg = i18n.t(`audioTrack.messages.${errorMsg}`).toString()
console.log("Setting message in active media store: ", errorMsg)
activeMediaStore.setMessage({ message: errorMsg })
localAudio?.pause()
@@ -476,10 +476,10 @@ export default defineComponent({
)
const ariaLabel = computed(() =>
isComposite.value
- ? i18n.t("audio-track.aria-label-interactive-seekable", {
+ ? i18n.t("audioTrack.ariaLabelInteractiveSeekable", {
title: props.audio.title,
})
- : i18n.t("audio-track.aria-label", { title: props.audio.title })
+ : i18n.t("audioTrack.ariaLabel", { title: props.audio.title })
)
const togglePlayback = () => {
diff --git a/frontend/src/components/VAudioTrack/VGlobalAudioTrack.vue b/frontend/src/components/VAudioTrack/VGlobalAudioTrack.vue
index 9566b0b44..241510b60 100644
--- a/frontend/src/components/VAudioTrack/VGlobalAudioTrack.vue
+++ b/frontend/src/components/VAudioTrack/VGlobalAudioTrack.vue
@@ -68,7 +68,7 @@ export default defineComponent({
const activeAudio = useActiveAudio()
const ariaLabel = computed(() =>
- i18n.t("audio-track.aria-label", { title: props.audio.title }).toString()
+ i18n.t("audioTrack.ariaLabel", { title: props.audio.title }).toString()
)
const status = ref<AudioStatus>("paused")
@@ -184,10 +184,8 @@ export default defineComponent({
const pause = () => activeAudio.obj.value?.pause()
/* Timekeeping */
- const message = computed<string | undefined>(() =>
- activeMediaStore.message
- ? i18n.t(`audio-track.messages.${activeMediaStore.message}`).toString()
- : undefined
+ const message = computed<string | undefined>(
+ () => activeMediaStore.message ?? undefined
)
/* Interface with VPlayPause */
diff --git a/frontend/src/components/VAudioTrack/VPlayPause.vue b/frontend/src/components/VAudioTrack/VPlayPause.vue
index a3fef9c08..7a831ef81 100644
--- a/frontend/src/components/VAudioTrack/VPlayPause.vue
+++ b/frontend/src/components/VAudioTrack/VPlayPause.vue
@@ -96,7 +96,7 @@ export default defineComponent({
/**
* Get the button label based on the current status of the player.
*/
- const label = computed(() => `play-pause.${statusVerbMap[props.status]}`)
+ const label = computed(() => `playPause.${statusVerbMap[props.status]}`)
/**
* Get the button icon based on the current status of the player.
*/
diff --git a/frontend/src/components/VAudioTrack/layouts/VBoxLayout.vue b/frontend/src/components/VAudioTrack/layouts/VBoxLayout.vue
index ba29e3a39..d914ceb05 100644
--- a/frontend/src/components/VAudioTrack/layouts/VBoxLayout.vue
+++ b/frontend/src/components/VAudioTrack/layouts/VBoxLayout.vue
@@ -75,7 +75,7 @@ export default defineComponent({
return props.size ? `${magnitudes[props.size]}rem` : undefined
})
const categoryLabel = computed(() =>
- i18n.t(`filters.audio-categories.${props.audio.category}`).toString()
+ i18n.t(`filters.audioCategories.${props.audio.category}`).toString()
)
return {
diff --git a/frontend/src/components/VAudioTrack/layouts/VFullLayout.vue b/frontend/src/components/VAudioTrack/layouts/VFullLayout.vue
index 9e29eda5e..07419feec 100644
--- a/frontend/src/components/VAudioTrack/layouts/VFullLayout.vue
+++ b/frontend/src/components/VAudioTrack/layouts/VFullLayout.vue
@@ -29,7 +29,7 @@
<div
class="subtitle mt-1 flex flex-col gap-2 text-base leading-snug lg:flex-row lg:items-center"
>
- <i18n as="span" path="audio-track.creator" class="font-semibold">
+ <i18n as="span" path="audioTrack.creator" class="font-semibold">
<template #creator>
<VLink
class="rounded-sm p-px focus:outline-none focus:ring focus:ring-pink"
diff --git a/frontend/src/components/VAudioTrack/layouts/VRowLayout.vue b/frontend/src/components/VAudioTrack/layouts/VRowLayout.vue
index f2820bd6b..8ca7468c8 100644
--- a/frontend/src/components/VAudioTrack/layouts/VRowLayout.vue
+++ b/frontend/src/components/VAudioTrack/layouts/VRowLayout.vue
@@ -42,7 +42,7 @@
}"
>
<div class="part-a">
- <i18n tag="span" path="audio-track.creator">
+ <i18n tag="span" path="audioTrack.creator">
<template #creator>{{ audio.creator }}</template> </i18n
><span v-show="isLarge" class="mx-2" aria-hidden="true">{{
$t("interpunct")
@@ -60,7 +60,7 @@
</span>
<span v-if="audio.category">
- <span>{{ $t(`filters.audio-categories.${audio.category}`) }}</span
+ <span>{{ $t(`filters.audioCategories.${audio.category}`) }}</span
><span class="mx-2" aria-hidden="true">{{
$t("interpunct")
}}</span>
diff --git a/frontend/src/components/VBackToSearchResultsLink.vue b/frontend/src/components/VBackToSearchResultsLink.vue
index 8cb1946aa..9f396a6e0 100644
--- a/frontend/src/components/VBackToSearchResultsLink.vue
+++ b/frontend/src/components/VBackToSearchResultsLink.vue
@@ -11,7 +11,7 @@
@mousedown="handleClick"
>
<VIcon name="chevron-left" :rtl-flip="true" />
- {{ $t("single-result.back") }}
+ {{ $t("singleResult.back") }}
</VButton>
</template>
diff --git a/frontend/src/components/VBanner/VMigrationNotice.vue b/frontend/src/components/VBanner/VMigrationNotice.vue
index 828d3ece4..a693ab87c 100644
--- a/frontend/src/components/VBanner/VMigrationNotice.vue
+++ b/frontend/src/components/VBanner/VMigrationNotice.vue
@@ -3,22 +3,22 @@
v-bind="$attrs"
id="cc-referral"
nature="info"
- :close-button-label="$t('migration-notice.close')"
+ :close-button-label="$t('migrationNotice.close')"
@close="$emit('close')"
>
{{
- $t("migration-notice.intro", {
- "cc-search": "CC Search",
+ $t("migrationNotice.intro", {
+ ccSearch: "CC Search",
openverse: "Openverse",
wordpress: "WordPress",
})
}}
- <i18n tag="span" path="migration-notice.more">
- <template #read-more>
+ <i18n tag="span" path="migrationNotice.more">
+ <template #readMore>
<VLink
class="text-curr underline"
href="https://wordpress.org/news/2021/05/welcome-to-openverse/"
- >{{ $t("migration-notice.read") }}</VLink
+ >{{ $t("migrationNotice.read") }}</VLink
>
</template>
</i18n>
diff --git a/frontend/src/components/VBanner/VNotificationBanner.vue b/frontend/src/components/VBanner/VNotificationBanner.vue
index 4e5b2b5cd..c7a84f0f7 100644
--- a/frontend/src/components/VBanner/VNotificationBanner.vue
+++ b/frontend/src/components/VBanner/VNotificationBanner.vue
@@ -17,7 +17,7 @@
:variant="variant === 'dark' ? 'black' : 'transparent-gray'"
size="close"
icon-size="small"
- :label="closeButtonLabel || $t('modal.close-banner')"
+ :label="closeButtonLabel || $t('modal.closeBanner')"
@close="$emit('close')"
/>
</slot>
diff --git a/frontend/src/components/VErrorSection/VErrorImage.vue b/frontend/src/components/VErrorSection/VErrorImage.vue
index ecf3d174c..2b103ab7d 100644
--- a/frontend/src/components/VErrorSection/VErrorImage.vue
+++ b/frontend/src/components/VErrorSection/VErrorImage.vue
@@ -52,7 +52,7 @@ export default defineComponent({
...image,
originalTitle: image.title,
src: require(`~/assets/error_images/${image.file}.jpg`),
- alt: `error-images.${image.id}`,
+ alt: `errorImages.${image.id}`,
license: image.license as License,
license_version: image.license_version as LicenseVersion,
}
diff --git a/frontend/src/components/VErrorSection/VNoResults.vue b/frontend/src/components/VErrorSection/VNoResults.vue
index ee4114300..90888acf9 100644
--- a/frontend/src/components/VErrorSection/VNoResults.vue
+++ b/frontend/src/components/VErrorSection/VNoResults.vue
@@ -1,10 +1,10 @@
<template>
<div class="no-results text-center md:text-left">
<h1 class="heading-4 md:heading-2 break-words">
- {{ $t("no-results.heading", { query: searchTerm }) }}
+ {{ $t("noResults.heading", { query: searchTerm }) }}
</h1>
<h2 class="description-regular md:heading-5 mt-4">
- {{ $t("no-results.alternatives") }}
+ {{ $t("noResults.alternatives") }}
</h2>
<div class="mt-10 flex flex-col flex-wrap gap-4 sm:flex-row">
diff --git a/frontend/src/components/VExternalSearch/VExternalSearchForm.vue b/frontend/src/components/VExternalSearch/VExternalSearchForm.vue
index 8414fd454..2ead2497d 100644
--- a/frontend/src/components/VExternalSearch/VExternalSearchForm.vue
+++ b/frontend/src/components/VExternalSearch/VExternalSearchForm.vue
@@ -7,28 +7,28 @@
>
<i18n
v-if="!hasNoResults && isSupported"
- path="external-sources.form.supported-title"
+ path="externalSources.form.supportedTitle"
tag="p"
class="description-regular"
/>
<i18n
v-else-if="!hasNoResults && !isSupported"
- path="external-sources.form.unsupported-title"
+ path="externalSources.form.unsupportedTitle"
tag="p"
class="description-regular"
>
<template #openverse>Openverse</template>
- <template #type>{{ $t(`external-sources.form.types.${type}`) }}</template>
+ <template #type>{{ $t(`externalSources.form.types.${type}`) }}</template>
</i18n>
<i18n
v-else
- path="external-sources.form.no-results-title"
+ path="externalSources.form.noResultsTitle"
tag="p"
class="description-regular"
>
- <template #type>{{ $t(`external-sources.form.types.${type}`) }}</template>
+ <template #type>{{ $t(`externalSources.form.types.${type}`) }}</template>
<template #query>{{ searchTerm }}</template>
</i18n>
@@ -44,7 +44,7 @@
size="disabled"
class="caption-regular ms-2 min-w-max gap-1 px-3 py-1 pe-1 text-dark-charcoal focus-visible:border-tx"
@click="onTriggerClick"
- >{{ $t("external-sources.button").toString()
+ >{{ $t("externalSources.button").toString()
}}<VIcon
class="text-dark-charcoal-40"
:class="{ 'text-white': triggerA11yProps['aria-expanded'] }"
diff --git a/frontend/src/components/VExternalSearch/VExternalSourceList.vue b/frontend/src/components/VExternalSearch/VExternalSourceList.vue
index d321d8e98..ee572d474 100644
--- a/frontend/src/components/VExternalSearch/VExternalSourceList.vue
+++ b/frontend/src/components/VExternalSearch/VExternalSourceList.vue
@@ -1,7 +1,7 @@
<template>
<div class="relative max-w-[280px]" data-testid="source-list-popover">
<h2 class="description-bold mb-2 px-4 pt-5 text-start">
- {{ $t("external-sources.title") }}
+ {{ $t("externalSources.title") }}
</h2>
<VCloseButton
:label="$t('modal.close')"
@@ -9,7 +9,7 @@
@close="$emit('close')"
/>
<p class="caption-regular mb-4 px-4 text-start">
- {{ $t("external-sources.caption", { openverse: "Openverse" }) }}
+ {{ $t("externalSources.caption", { openverse: "Openverse" }) }}
</p>
<VButton
v-for="source in externalSources"
diff --git a/frontend/src/components/VFilters/VFilterChecklist.vue b/frontend/src/components/VFilters/VFilterChecklist.vue
index 9ec1f5931..dbae88b13 100644
--- a/frontend/src/components/VFilters/VFilterChecklist.vue
+++ b/frontend/src/components/VFilters/VFilterChecklist.vue
@@ -128,7 +128,7 @@ export default defineComponent({
const descriptions = elements
.map((element) => i18n.t(`browse-page.license-description.${element}`))
.join(" ")
- const close = i18n.t("modal.close-named", {
+ const close = i18n.t("modal.closeNamed", {
name: i18n.t("browse-page.aria.license-explanation"),
})
return `${descriptions} - ${close}`
diff --git a/frontend/src/components/VFilters/VLicenseExplanation.vue b/frontend/src/components/VFilters/VLicenseExplanation.vue
index f09939856..957614dc5 100644
--- a/frontend/src/components/VFilters/VLicenseExplanation.vue
+++ b/frontend/src/components/VFilters/VLicenseExplanation.vue
@@ -2,10 +2,10 @@
<div class="license-explanation w-70 max-w-xs p-6">
<h5 class="text-base font-semibold">
<template v-if="isLicense(license)">{{
- $t("filters.license-explanation.license-definition")
+ $t("filters.licenseExplanation.licenseDefinition")
}}</template>
<template v-else>{{
- $t("filters.license-explanation.mark-definition", {
+ $t("filters.licenseExplanation.markDefinition", {
mark: license.toUpperCase(),
})
}}</template>
@@ -19,15 +19,15 @@
/>
<i18n
- :path="`filters.license-explanation.more.${
+ :path="`filters.licenseExplanation.more.${
isLicense(license) ? 'license' : 'mark'
}`"
tag="p"
class="text-sm"
>
- <template #read-more>
+ <template #readMore>
<VLink :href="`${getLicenseUrl(license)}`">{{
- $t("filters.license-explanation.more.read-more")
+ $t("filters.licenseExplanation.more.readMore")
}}</VLink>
</template>
<template #mark>{{ license.toUpperCase() }}</template>
diff --git a/frontend/src/components/VFilters/VSearchGridFilter.vue b/frontend/src/components/VFilters/VSearchGridFilter.vue
index cf3fd77d9..dd711917a 100644
--- a/frontend/src/components/VFilters/VSearchGridFilter.vue
+++ b/frontend/src/components/VFilters/VSearchGridFilter.vue
@@ -5,7 +5,7 @@
class="relative mb-6 flex items-center justify-between"
>
<h4 id="filters-heading" class="caption-bold uppercase">
- {{ $t("filter-list.filter-by") }}
+ {{ $t("filterList.filterBy") }}
</h4>
<VButton
v-show="isAnyFilterApplied"
@@ -15,7 +15,7 @@
class="label-bold absolute end-0 !text-pink"
@click="clearFilters"
>
- {{ $t("filter-list.clear") }}
+ {{ $t("filterList.clear") }}
</VButton>
</header>
<form ref="filtersFormRef" class="filters-form">
@@ -23,7 +23,7 @@
v-for="filterType in filterTypes"
:key="filterType"
:options="filters[filterType]"
- :title="filterTypeTitle(filterType).toString()"
+ :title="filterTypeTitle(filterType)"
:filter-type="filterType"
@toggle-filter="toggleFilter"
/>
@@ -35,7 +35,6 @@
import { computed, defineComponent, ref } from "vue"
import { useRouter } from "@nuxtjs/composition-api"
-import { kebab } from "case"
import { watchDebounced } from "@vueuse/core"
@@ -89,8 +88,9 @@ export default defineComponent({
const filterTypes = computed(
() => Object.keys(filters.value) as NonMatureFilterCategory[]
)
- const filterTypeTitle = (filterType: string) =>
- i18n.t(`filters.${kebab(filterType)}.title`)
+ const filterTypeTitle = (filterType: string) => {
+ return i18n.t(`filters.${filterType}.title`).toString()
+ }
/**
* This watcher fires even when the queries are equal. We update the path only
diff --git a/frontend/src/components/VGlobalAudioSection/VGlobalAudioSection.vue b/frontend/src/components/VGlobalAudioSection/VGlobalAudioSection.vue
index 67874b18c..6ccaa38ef 100644
--- a/frontend/src/components/VGlobalAudioSection/VGlobalAudioSection.vue
+++ b/frontend/src/components/VGlobalAudioSection/VGlobalAudioSection.vue
@@ -6,7 +6,7 @@
class="!absolute end-0 top-0 z-30"
variant="filled-transparent"
size="large"
- :label="$t('audio-track.close')"
+ :label="$t('audioTrack.close')"
@close="handleClose"
/>
</div>
diff --git a/frontend/src/components/VHeader/VFilterButton.vue b/frontend/src/components/VHeader/VFilterButton.vue
index 4c2b59796..e2fce675c 100644
--- a/frontend/src/components/VHeader/VFilterButton.vue
+++ b/frontend/src/components/VHeader/VFilterButton.vue
@@ -53,9 +53,9 @@ export default defineComponent({
const filterCount = computed(() => searchStore.appliedFilterCount)
const filtersAreApplied = computed(() => filterCount.value > 0)
- const textLabel = computed(() => i18n.t("header.filter-button.simple"))
+ const textLabel = computed(() => i18n.t("header.filterButton.simple"))
const ariaLabel = computed(() =>
- i18n.tc("header.filter-button.with-count", filterCount.value)
+ i18n.tc("header.filterButton.withCount", filterCount.value)
)
return {
diff --git a/frontend/src/components/VHeader/VHeaderInternal.vue b/frontend/src/components/VHeader/VHeaderInternal.vue
index 9284d8c62..20673db37 100644
--- a/frontend/src/components/VHeader/VHeaderInternal.vue
+++ b/frontend/src/components/VHeader/VHeaderInternal.vue
@@ -56,7 +56,7 @@
<VCloseButton
variant="black"
icon-size="large"
- :label="$t('modal.close-pages-menu')"
+ :label="$t('modal.closePagesMenu')"
@close="closePageMenu"
/>
</div>
diff --git a/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsButton.vue b/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsButton.vue
index f2152fbaf..38e51ebd8 100644
--- a/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsButton.vue
+++ b/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsButton.vue
@@ -4,8 +4,8 @@
icon="source"
:label="
appliedFilterCount
- ? $tc('header.content-settings-button.with-count', appliedFilterCount)
- : $t('header.content-settings-button.simple')
+ ? $tc('header.contentSettingsButton.withCount', appliedFilterCount)
+ : $t('header.contentSettingsButton.simple')
"
aria-haspopup="dialog"
:aria-expanded="isPressed"
diff --git a/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue b/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue
index 7be599ba7..9be17a5af 100644
--- a/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue
+++ b/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue
@@ -36,7 +36,7 @@
:applied-filter-count="appliedFilterCount"
/>
<VCloseButton
- :label="$t('modal.close-content-settings')"
+ :label="$t('modal.closeContentSettings')"
variant="filled-white"
class="ms-auto self-center"
@close="close"
@@ -67,7 +67,7 @@
:disabled="isClearButtonDisabled"
size="large"
@click="clearFilters"
- >{{ $t("filter-list.clear") }}
+ >{{ $t("filterList.clear") }}
</VButton>
<VShowResultsButton :is-fetching="isFetching" @click="close" />
</footer>
diff --git a/frontend/src/components/VHeader/VHeaderMobile/VHeaderMobile.vue b/frontend/src/components/VHeader/VHeaderMobile/VHeaderMobile.vue
index 23f91c246..ede82a906 100644
--- a/frontend/src/components/VHeader/VHeaderMobile/VHeaderMobile.vue
+++ b/frontend/src/components/VHeader/VHeaderMobile/VHeaderMobile.vue
@@ -32,7 +32,7 @@
v-show="searchBarIsActive"
icon="chevron-left"
:inner-size="8"
- :label="$t('header.back-button')"
+ :label="$t('header.backButton')"
:rtl-flip="true"
inner-area-classes="bg-dark-charcoal-10 hover:bg-dark-charcoal hover:text-white"
@click="handleBack"
@@ -48,7 +48,7 @@
class="search-field ms-1 h-full w-full flex-grow appearance-none rounded-none border-tx bg-tx text-2xl text-dark-charcoal-70 placeholder-dark-charcoal-70 hover:text-dark-charcoal hover:placeholder-dark-charcoal focus-visible:outline-none"
:value="searchTerm"
:aria-label="
- $t('search.search-bar-label', {
+ $t('search.searchBarLabel', {
openverse: 'Openverse',
}).toString()
"
diff --git a/frontend/src/components/VHeader/VHeaderMobile/VShowResultsButton.vue b/frontend/src/components/VHeader/VHeaderMobile/VShowResultsButton.vue
index f31c53bc3..308a68f7b 100644
--- a/frontend/src/components/VHeader/VHeaderMobile/VShowResultsButton.vue
+++ b/frontend/src/components/VHeader/VHeaderMobile/VShowResultsButton.vue
@@ -37,7 +37,7 @@
<!-- To preserve the button width when state changes, this element is not
removed from the DOM, only hidden and muted. -->
<span :class="{ 'opacity-0': isFetching }" :aria-hidden="isFetching">
- {{ $t("header.see-results") }}
+ {{ $t("header.seeResults") }}
</span>
</VButton>
</template>
diff --git a/frontend/src/components/VHeader/VHomeLink.vue b/frontend/src/components/VHeader/VHomeLink.vue
index ff51a8760..15e6c7814 100644
--- a/frontend/src/components/VHeader/VHomeLink.vue
+++ b/frontend/src/components/VHeader/VHomeLink.vue
@@ -2,7 +2,7 @@
<VButton
as="VLink"
href="/"
- :aria-label="$t('header.home-link', { openverse: 'Openverse' }).toString()"
+ :aria-label="$t('header.homeLink', { openverse: 'Openverse' }).toString()"
variant="transparent-tx"
size="disabled"
:class="
diff --git a/frontend/src/components/VHeader/VLogoButton.vue b/frontend/src/components/VHeader/VLogoButton.vue
index ac123ccaa..62f8f2c90 100644
--- a/frontend/src/components/VHeader/VLogoButton.vue
+++ b/frontend/src/components/VHeader/VLogoButton.vue
@@ -2,7 +2,7 @@
<VButton
as="VLink"
href="/"
- :aria-label="$t('header.home-link', { openverse: 'Openverse' }).toString()"
+ :aria-label="$t('header.homeLink', { openverse: 'Openverse' }).toString()"
variant="transparent-tx"
size="disabled"
class="h-12 w-12 text-dark-charcoal hover:bg-yellow"
diff --git a/frontend/src/components/VHeader/VSearchBar/VSearchBar.vue b/frontend/src/components/VHeader/VSearchBar/VSearchBar.vue
index 16194c907..5f19ac18b 100644
--- a/frontend/src/components/VHeader/VSearchBar/VSearchBar.vue
+++ b/frontend/src/components/VHeader/VSearchBar/VSearchBar.vue
@@ -13,7 +13,7 @@
:placeholder="placeholder || $t('hero.search.placeholder')"
class="search-field flex-grow border-tx bg-dark-charcoal-10 text-dark-charcoal-70 focus-within:bg-white focus:border-pink group-hover:bg-dark-charcoal-10 group-hover:text-dark-charcoal group-hover:focus-within:bg-white"
:label-text="
- $t('search.search-bar-label', { openverse: 'Openverse' }).toString()
+ $t('search.searchBarLabel', { openverse: 'Openverse' }).toString()
"
:connection-sides="['end']"
:size="size"
diff --git a/frontend/src/components/VHeader/VSearchBar/VStandaloneSearchBar.vue b/frontend/src/components/VHeader/VSearchBar/VStandaloneSearchBar.vue
index cad8a8b54..c20eb73f9 100644
--- a/frontend/src/components/VHeader/VSearchBar/VStandaloneSearchBar.vue
+++ b/frontend/src/components/VHeader/VSearchBar/VStandaloneSearchBar.vue
@@ -20,7 +20,7 @@
:placeholder="$t('hero.search.placeholder').toString()"
class="paragraph-large md:label-regular ms-4 h-full w-full appearance-none rounded-none bg-tx leading-none text-dark-charcoal placeholder-dark-charcoal-70 focus:outline-none"
:aria-label="
- $t('search.search-bar-label', {
+ $t('search.searchBarLabel', {
openverse: 'Openverse',
}).toString()
"
diff --git a/frontend/src/components/VHeader/VWordPressLink.vue b/frontend/src/components/VHeader/VWordPressLink.vue
index 6c1c59802..58909d8cb 100644
--- a/frontend/src/components/VHeader/VWordPressLink.vue
+++ b/frontend/src/components/VHeader/VWordPressLink.vue
@@ -2,14 +2,14 @@
<VLink
href="https://wordpress.org"
:aria-label="
- $t('footer.wordpress-affiliation', { wordpress: 'WordPress' }).toString()
+ $t('footer.wordpressAffiliation', { wordpress: 'WordPress' }).toString()
"
:class="mode === 'light' ? 'text-dark-charcoal' : 'text-white'"
class="hover:no-underline focus-visible:rounded-sm focus-visible:outline-none focus-visible:ring focus-visible:ring-pink focus-visible:ring-offset-1 focus-visible:ring-offset-tx"
>
<i18n
tag="p"
- path="footer.wordpress-affiliation"
+ path="footer.wordpressAffiliation"
class="label-regular flex flex-row items-center gap-1"
>
<template #wordpress>
diff --git a/frontend/src/components/VLicense/VLicense.vue b/frontend/src/components/VLicense/VLicense.vue
index b8f516e02..cf3e85be8 100644
--- a/frontend/src/components/VLicense/VLicense.vue
+++ b/frontend/src/components/VLicense/VLicense.vue
@@ -17,6 +17,7 @@
</template>
<script lang="ts">
+import { camel } from "case"
import { computed, defineComponent, PropType } from "vue"
import type { License } from "~/constants/license"
@@ -62,7 +63,9 @@ export default defineComponent({
const iconNames = computed(() => getElements(props.license))
const licenseName = computed(() => {
return {
- readable: i18n.t(`license-readable-names.${props.license}`).toString(),
+ readable: i18n
+ .t(`licenseReadableNames.${camel(props.license)}`)
+ .toString(),
full: getFullLicenseName(props.license, "", i18n),
}
})
diff --git a/frontend/src/components/VRecentSearches/VRecentSearches.vue b/frontend/src/components/VRecentSearches/VRecentSearches.vue
index 933b013cc..1e7b76d8b 100644
--- a/frontend/src/components/VRecentSearches/VRecentSearches.vue
+++ b/frontend/src/components/VRecentSearches/VRecentSearches.vue
@@ -10,17 +10,17 @@
>
<!-- Left margin to align with the text of recent searches. -->
<span class="category mx-2 my-1">
- {{ $t("recent-searches.heading") }}
+ {{ $t("recentSearches.heading") }}
</span>
<VButton
v-show="entries.length"
variant="transparent-gray"
class="label-bold"
size="small"
- :aria-label="$t('recent-searches.clear.label').toString()"
+ :aria-label="$t('recentSearches.clear.label').toString()"
@click="handleClear"
>
- {{ $t("recent-searches.clear.text") }}
+ {{ $t("recentSearches.clear.text") }}
</VButton>
</div>
@@ -28,7 +28,7 @@
v-if="entries.length"
id="recent-searches-list"
role="listbox"
- :aria-label="$t('recent-searches.heading').toString()"
+ :aria-label="$t('recentSearches.heading').toString()"
>
<!-- eslint-disable vuejs-accessibility/interactive-supports-focus Combobox descendants only have visual focus. -->
<!-- eslint-disable vuejs-accessibility/click-events-have-key-events Key events handled by input field of combobox. -->
@@ -47,11 +47,11 @@
<!-- eslint-enable -->
</ul>
<span v-else class="description-regular mx-2 my-3">
- {{ $t("recent-searches.none") }}
+ {{ $t("recentSearches.none") }}
</span>
<span class="caption-regular mx-2 my-3 text-dark-charcoal-70">
- {{ $t("recent-searches.disclaimer") }}
+ {{ $t("recentSearches.disclaimer") }}
</span>
</div>
</template>
diff --git a/frontend/src/components/VSearchResultsGrid/VAllResultsGrid.vue b/frontend/src/components/VSearchResultsGrid/VAllResultsGrid.vue
index 1f0ea4cd1..9d5aa0670 100644
--- a/frontend/src/components/VSearchResultsGrid/VAllResultsGrid.vue
+++ b/frontend/src/components/VSearchResultsGrid/VAllResultsGrid.vue
@@ -14,9 +14,9 @@
/>
</div>
<VSnackbar size="large" :is-visible="isSnackbarVisible">
- <i18n path="all-results.snackbar.text" tag="p">
+ <i18n path="allResults.snackbar.text" tag="p">
<template #spacebar>
- <kbd class="font-sans">{{ $t(`all-results.snackbar.spacebar`) }}</kbd>
+ <kbd class="font-sans">{{ $t(`allResults.snackbar.spacebar`) }}</kbd>
</template>
</i18n>
</VSnackbar>
diff --git a/frontend/src/components/VSketchFabViewer.vue b/frontend/src/components/VSketchFabViewer.vue
index ec96ced06..59f0e2609 100644
--- a/frontend/src/components/VSketchFabViewer.vue
+++ b/frontend/src/components/VSketchFabViewer.vue
@@ -47,7 +47,7 @@ export default defineComponent({
setup(props, { emit }) {
const i18n = useI18n()
const label = i18n
- .t("sketchfab-iframe-title", { sketchfab: "Sketchfab" })
+ .t("sketchfabIframeTitle", { sketchfab: "Sketchfab" })
.toString()
const node = ref<Element | undefined>()
const { $sentry } = useContext()
diff --git a/frontend/src/components/VSkipToContentContainer.vue b/frontend/src/components/VSkipToContentContainer.vue
index 5d7b7b744..a51f4f28e 100644
--- a/frontend/src/components/VSkipToContentContainer.vue
+++ b/frontend/src/components/VSkipToContentContainer.vue
@@ -8,7 +8,7 @@
:class="$style.skipButton"
size="medium"
@click="skipToContent"
- >{{ $t("skip-to-content") }}</VButton
+ >{{ $t("skipToContent") }}</VButton
>
</VTeleport>
</Component>
diff --git a/frontend/src/composables/use-pages.ts b/frontend/src/composables/use-pages.ts
index 6ade99f42..660e138f3 100644
--- a/frontend/src/composables/use-pages.ts
+++ b/frontend/src/composables/use-pages.ts
@@ -23,12 +23,12 @@ export default function usePages(isNew = false) {
},
{
id: "search-help",
- name: "navigation.search-help",
+ name: "navigation.searchHelp",
link: app.localePath("/search-help"),
},
{
id: "get-involved",
- name: "navigation.get-involved",
+ name: "navigation.getInvolved",
link: "https://make.wordpress.org/openverse/handbook/",
},
{
diff --git a/frontend/src/composables/use-seekable.ts b/frontend/src/composables/use-seekable.ts
index 980be55cf..c0218544d 100644
--- a/frontend/src/composables/use-seekable.ts
+++ b/frontend/src/composables/use-seekable.ts
@@ -27,7 +27,7 @@ export const useSeekable = ({
"aria-valuemax": duration.value,
"aria-valuenow": currentTime.value,
"aria-valuetext": i18n
- .tc("waveform.current-time", currentTime.value, {
+ .tc("waveform.currentTime", currentTime.value, {
time: currentTime.value,
})
.toString(),
diff --git a/frontend/src/constants/filters.ts b/frontend/src/constants/filters.ts
index d1c965130..d44bfe3b7 100644
--- a/frontend/src/constants/filters.ts
+++ b/frontend/src/constants/filters.ts
@@ -1,5 +1,3 @@
-import { kebab } from "case"
-
import { ALL_MEDIA, AUDIO, IMAGE, VIDEO, MODEL_3D } from "~/constants/media"
import { ACTIVE_LICENSES } from "~/constants/license"
import { deepFreeze } from "~/utils/deep-freeze"
@@ -126,7 +124,7 @@ export const initFilters = () =>
...acc,
[filterType]: filters.map((item) => ({
code: item,
- name: `filters.${kebab(filterType)}.${item}`,
+ name: `filters.${filterType}.${item}`,
checked: false,
})),
}),
diff --git a/frontend/src/locales/scripts/en.json5 b/frontend/src/locales/scripts/en.json5
index 8a21b1264..e286f2484 100644
--- a/frontend/src/locales/scripts/en.json5
+++ b/frontend/src/locales/scripts/en.json5
@@ -13,7 +13,7 @@
content: "All {openverse} content is under a {license} or is in the public domain.",
license: "Creative Commons license",
},
- "license-filter": {
+ licenseFilter: {
label: "I want something I can",
},
aria: {
@@ -34,52 +34,50 @@
},
},
header: {
- "home-link": "{openverse} Home",
- "about-nav-item": "Our Story",
- "source-nav-item": "Sources",
- "search-guide-nav-item": "Search Guide",
- "external-sources-nav-item": "External Sources",
- "privacy-nav-item": "Privacy",
- "feedback-nav-item": "Feedback",
- "support-nav-item": "Support Us",
+ homeLink: "{openverse} Home",
+ aboutNavItem: "Our Story",
+ sourceNavItem: "Sources",
+ searchGuideNavItem: "Search Guide",
+ externalSourcesNavItem: "External Sources",
+ privacyNavItem: "Privacy",
+ feedbackNavItem: "Feedback",
+ supportNavItem: "Support Us",
placeholder: "Search all content",
aria: {
primary: "primary",
menu: "menu",
search: "search",
- "sr-search": "search button",
+ srSearch: "search button",
},
- "licenses-nav-item": "The Licenses",
- "about-tab": "About",
- "resources-tab": "Resources",
- "api-nav-item": "API",
+ aboutTab: "About",
+ resourcesTab: "Resources",
notification: {
text: "{example_notification_text}",
dismiss: "Dismiss",
okay: "OK",
},
loading: "Loading...",
- "filter-button": {
+ filterButton: {
simple: "Filters",
- "with-count": "{count} Filter|{count} Filters",
+ withCount: "{count} Filter|{count} Filters",
},
- "see-results": "See results",
- "back-button": "Go back",
- "content-settings-button": {
+ seeResults: "See results",
+ backButton: "Go back",
+ contentSettingsButton: {
simple: "Menu",
- "with-count": "Menu. {count} filter applied|Menu. {count} filters applied",
+ withCount: "Menu. {count} filter applied|Menu. {count} filters applied",
},
},
navigation: {
about: "About",
licenses: "Licenses",
- "get-involved": "Get involved",
+ getInvolved: "Get involved",
api: "API",
privacy: "Privacy",
feedback: "Feedback",
sources: "Sources",
- "external-sources": "External sources",
- "search-help": "Search help",
+ externalSources: "External sources",
+ searchHelp: "Search help",
},
about: {
title: "About {openverse}",
@@ -234,7 +232,6 @@
"operator-aria-label": "star operator (wildcard)",
"aria-label": "net star symbol",
example: "net*",
- // Do not translate 'network', 'Netflix' and 'Netherlands' are they are examples of words starting with 'net'.
content: "Example: {link}{br} This will search for images matching anything with 'net'. This might include 'network', 'Netflix', 'Netherlands', etc.",
},
precedence: {
@@ -266,37 +263,37 @@
},
error: {
occurred: "An error occurred",
- "image-not-found": "Couldn't find image with id {id}",
- "media-not-found": "Couldn't find {mediaType} with id {id}",
+ imageNotFound: "Couldn't find image with id {id}",
+ mediaNotFound: "Couldn't find {mediaType} with id {id}",
image: "image",
audio: "audio",
},
filters: {
title: "Filters",
- "filter-by": "Filter By",
+ filterBy: "Filter By",
licenses: {
title: "Licenses",
cc0: "CC0",
pdm: "Public Domain Mark",
by: "BY",
- "by-sa": "BY-SA",
- "by-nc": "BY-NC",
- "by-nd": "BY-ND",
- "by-nc-sa": "BY-NC-SA",
- "by-nc-nd": "BY-NC-ND",
+ bySa: "BY-SA",
+ byNc: "BY-NC",
+ byNd: "BY-ND",
+ byNcSa: "BY-NC-SA",
+ byNcNd: "BY-NC-ND",
},
- "license-types": {
+ licenseTypes: {
title: "Use",
commercial: "Use commercially",
modification: "Modify or adapt",
},
- "image-providers": {
+ imageProviders: {
title: "Source",
},
- "audio-providers": {
+ audioProviders: {
title: "Source",
},
- "audio-categories": {
+ audioCategories: {
title: "Audio category",
audiobook: "Audiobook",
music: "Music",
@@ -306,13 +303,13 @@
sound_effect: "Sound effects",
sound: "Sound effects",
},
- "image-categories": {
+ imageCategories: {
title: "Image type",
photograph: "Photographs",
illustration: "Illustrations",
digitized_artwork: "Digitized Artworks",
},
- "audio-extensions": {
+ audioExtensions: {
title: "Extension",
flac: "FLAC",
mid: "MID",
@@ -323,14 +320,14 @@
wav: "WAV",
webm: "WEBM",
},
- "image-extensions": {
+ imageExtensions: {
title: "Extension",
jpg: "JPEG",
png: "PNG",
gif: "GIF",
svg: "SVG",
},
- "aspect-ratios": {
+ aspectRatios: {
title: "Aspect ratio",
tall: "Tall",
wide: "Wide",
@@ -356,30 +353,30 @@
creator: {
title: "Search by Creator",
},
- "search-by": {
+ searchBy: {
title: "Search By",
creator: "Creator",
},
- "license-explanation": {
- "license-definition": "License definition",
- "mark-definition": "{mark} definition",
+ licenseExplanation: {
+ licenseDefinition: "License definition",
+ markDefinition: "{mark} definition",
more: {
- license: "{read-more} about this license.",
- mark: "{read-more} about {mark}.",
- "read-more": "Read more",
+ license: "{readMore} about this license.",
+ mark: "{readMore} about {mark}.",
+ readMore: "Read more",
},
},
aria: {
- "remove-filter": "Remove {label} filter",
+ removeFilter: "Remove {label} filter",
},
},
- "filter-list": {
- "filter-by": "Filter by",
+ filterList: {
+ filterBy: "Filter by",
hide: "Hide filters",
clear: "Clear filters",
- "clear-numbered": "Clear filters ({number})",
+ clearNumbered: "Clear filters ({number})",
show: "Show results",
- "category-aria": "filters list for {categoryName} category",
+ categoryAria: "filters list for {categoryName} category",
},
"browse-page": {
"all-no-results": "No results",
@@ -525,7 +522,7 @@
},
},
},
- "single-result": {
+ singleResult: {
back: "Back to results",
},
"image-details": {
@@ -560,13 +557,13 @@
information: "Audio information",
weblink: "Get this audio",
},
- "all-results": {
+ allResults: {
snackbar: {
text: "Press {spacebar} to play or pause the track.",
spacebar: "Spacebar",
},
},
- "audio-results": {
+ audioResults: {
snackbar: {
text: "Press {spacebar} to play or pause, and {left} & {right} to seek through the track.",
spacebar: "Spacebar",
@@ -574,7 +571,7 @@
right: "→",
},
},
- "external-sources": {
+ externalSources: {
caption: "{openverse} can not guarantee the accuracy of license information. Always verify that the work is actually under a CC license.",
button: "Source list",
title: "External sources",
@@ -583,21 +580,21 @@
caption: "Click on a source below to directly search other collections of CC-licensed images.{break}Please note that Use filters are not supported for Open Clip Art Library or Nappy.",
},
form: {
- "unsupported-title": "{openverse} does not yet support built-in {type} search.",
- "supported-title": "Not finding what you're looking for? Try an external source:",
- "no-results-title": 'No {type} results for "{query}".',
+ unsupportedTitle: "{openverse} does not yet support built-in {type} search.",
+ supportedTitle: "Not finding what you're looking for? Try an external source:",
+ noResultsTitle: 'No {type} results for "{query}".',
caption: "Click on a source below to directly search other collections of CC-licensed {type}.",
types: {
image: "image",
audio: "audio",
video: "video",
- "model-3d": "3D model",
+ model3d: "3D model",
},
- "types-plural": {
+ typesPlural: {
image: "images",
audio: "audios",
video: "videos",
- "model-3d": "3D models",
+ model3d: "3D models",
},
},
},
@@ -609,15 +606,15 @@
},
waveform: {
label: "Audio seek bar",
- "current-time": "{time} second|{time} seconds",
+ currentTime: "{time} second|{time} seconds",
},
- "audio-thumbnail": {
+ audioThumbnail: {
alt: 'Cover art for "{title}" by {creator}',
},
- "audio-track": {
- "aria-label": "Audio: {title}",
- "aria-label-interactive": "Audio: {title} - interactive player - press the space bar to play and pause a preview of the audio",
- "aria-label-interactive-seekable": "Audio: {title} - interactive player - press the space bar to play and pause a preview of the audio; use the left and right arrow keys to seek through the track.",
+ audioTrack: {
+ ariaLabel: "Audio: {title}",
+ ariaLabelInteractive: "Audio: {title} - interactive player - press the space bar to play and pause a preview of the audio",
+ ariaLabelInteractiveSeekable: "Audio: {title} - interactive player - press the space bar to play and pause a preview of the audio; use the left and right arrow keys to seek through the track.",
messages: {
err_aborted: "You aborted playback.",
err_network: "A network error occurred.",
@@ -630,7 +627,7 @@
creator: "by {creator}",
close: "Close the audio player",
},
- "play-pause": {
+ playPause: {
play: "Play",
pause: "Pause",
replay: "Replay",
@@ -638,55 +635,55 @@
},
search: {
search: "Search",
- "search-bar-label": "Search for content in {openverse}",
+ searchBarLabel: "Search for content in {openverse}",
},
- "license-readable-names": {
+ licenseReadableNames: {
cc0: "Zero",
pdm: "Public Domain Mark",
by: "Attribution",
- "by-sa": "Attribution-Share-Alike",
- "by-nc": "Attribution-NonCommercial",
- "by-nd": "Attribution-NoDerivatives",
- "by-nc-sa": "Attribution-NonCommercial-Share-Alike",
- "by-nc-nd": "Attribution-NonCommercial-NoDerivatives",
+ bySa: "Attribution-Share-Alike",
+ byNc: "Attribution-NonCommercial",
+ byNd: "Attribution-NoDerivatives",
+ byNcSa: "Attribution-NonCommercial-Share-Alike",
+ byNcNd: "Attribution-NonCommercial-NoDerivatives",
"sampling+": "Sampling Plus",
- "nc-sampling+": "NonCommercial Sampling Plus",
+ "ncSampling+": "NonCommercial Sampling Plus",
},
- "dropdown-button": {
+ dropdownButton: {
aria: {
- "arrow-label": "Dropdown",
+ arrowLabel: "Dropdown",
},
},
- "migration-notice": {
- intro: "{cc-search} is now called {openverse} and joins {wordpress} as an open source project.",
- more: "{read-more} about this announcement.",
+ migrationNotice: {
+ intro: "{ccSearch} is now called {openverse} and joins {wordpress} as an open source project.",
+ more: "{readMore} about this announcement.",
read: "Read more",
close: "Close the announcement",
},
- "download-button": {
+ downloadButton: {
aria: {
- "dropdown-label": "Select the download file format",
+ dropdownLabel: "Select the download file format",
},
download: "Download",
},
interpunct: "•",
modal: {
close: "Close",
- "aria-close": "Close the modal",
- "close-named": "Close {name}",
- "close-content-settings": "Close the content settings menu",
- "close-pages-menu": "Close the pages menu",
- "close-banner": "Close the banner",
+ ariaClose: "Close the modal",
+ closeNamed: "Close {name}",
+ closeContentSettings: "Close the content settings menu",
+ closePagesMenu: "Close the pages menu",
+ closeBanner: "Close the banner",
},
- "error-images": {
- "depressed-musician": "A depressed pianist rests their head in their hands.",
- "waiting-for-a-bite": "Three boys sit on a broken log while two of them fish.",
+ errorImages: {
+ depressedMusician: "A depressed pianist rests their head in their hands.",
+ waitingForABite: "Three boys sit on a broken log while two of them fish.",
},
- "no-results": {
+ noResults: {
heading: 'We couldn\'t find anything for "{query}".',
alternatives: "Try a different query or use one of the external sources to expand your search.",
},
- "server-timeout": {
+ serverTimeout: {
heading: "Whoops, it looks like that request took too long to complete. Please try again.",
},
"search-type": {
@@ -703,8 +700,8 @@
"see-audio": "See all audio",
"select-label": "Select a content type: {type}",
},
- "skip-to-content": "Skip to content",
- "pref-page": {
+ skipToContent: "Skip to content",
+ prefPage: {
title: "Preferences",
groups: {
analytics: {
@@ -727,21 +724,20 @@
"content-filtering": "Content filtering",
explanation: "Shown because {feat-name} is {feat-state}",
},
- "sketchfab-iframe-title": "{sketchfab} viewer",
+ sketchfabIframeTitle: "{sketchfab} viewer",
"flag-status": {
nonexistent: "Nonexistent",
on: "On",
off: "Off",
},
footer: {
- // Link back to WordPress, the word is replaced by the logo
- "wordpress-affiliation": "Part of the {wordpress} project",
- wip: "\uD83D\uDEA7",
+ wordpressAffiliation: "Part of the {wordpress} project",
+ wip: "🚧",
},
language: {
language: "Language",
},
- "recent-searches": {
+ recentSearches: {
heading: "Recent searches",
clear: {
text: "Clear",
@@ -751,6 +747,6 @@
disclaimer: "Openverse does not store your recent searches, this information is kept locally in your browser.",
},
report: {
- "image-details": "See image details",
+ imageDetails: "See image details",
},
}
diff --git a/frontend/src/pages/image/_id/report.vue b/frontend/src/pages/image/_id/report.vue
index 58c1d758d..c528cf236 100644
--- a/frontend/src/pages/image/_id/report.vue
+++ b/frontend/src/pages/image/_id/report.vue
@@ -26,7 +26,7 @@
size="medium"
class="label-bold"
>
- {{ $t("report.image-details") }}
+ {{ $t("report.imageDetails") }}
</VButton>
</figure>
diff --git a/frontend/src/pages/privacy.vue b/frontend/src/pages/privacy.vue
index 9fb9c81ef..a8fea1a82 100644
--- a/frontend/src/pages/privacy.vue
+++ b/frontend/src/pages/privacy.vue
@@ -42,10 +42,10 @@
</template>
</i18n>
- <h2>{{ $t("pref-page.groups.analytics.title") }}</h2>
+ <h2>{{ $t("prefPage.groups.analytics.title") }}</h2>
<p>
- {{ $t("pref-page.groups.analytics.desc", { openverse: "Openverse" }) }}
+ {{ $t("prefPage.groups.analytics.desc", { openverse: "Openverse" }) }}
</p>
<VCheckbox
@@ -56,7 +56,7 @@
@change="handleChange"
>
<div>
- {{ $t("pref-page.features.analytics") }}
+ {{ $t("prefPage.features.analytics") }}
</div>
</VCheckbox>
</VContentPage>
@@ -71,11 +71,12 @@ import { useFeatureFlagStore } from "~/stores/feature-flag"
import { ON, OFF } from "~/constants/feature-flag"
import VLink from "~/components/VLink.vue"
+import VCheckbox from "~/components/VCheckbox/VCheckbox.vue"
import VContentPage from "~/components/VContentPage.vue"
export default defineComponent({
name: "VPrivacyPage",
- components: { VLink, VContentPage },
+ components: { VLink, VCheckbox, VContentPage },
layout: "content-layout",
setup() {
const i18n = useI18n()
diff --git a/frontend/src/pages/search/audio.vue b/frontend/src/pages/search/audio.vue
index e96aab080..5ca815cbd 100644
--- a/frontend/src/pages/search/audio.vue
+++ b/frontend/src/pages/search/audio.vue
@@ -2,13 +2,13 @@
<!-- Negative margin compensates for the `p-4` padding in row layout. -->
<section class="-mx-2 md:-mx-4">
<VSnackbar size="large" :is-visible="isSnackbarVisible">
- <i18n path="audio-results.snackbar.text" tag="p">
+ <i18n path="audioResults.snackbar.text" tag="p">
<template
v-for="keyboardKey in ['spacebar', 'left', 'right']"
#[keyboardKey]
>
<kbd :key="keyboardKey" class="font-sans">{{
- $t(`audio-results.snackbar.${keyboardKey}`)
+ $t(`audioResults.snackbar.${keyboardKey}`)
}}</kbd>
</template>
</i18n>
diff --git a/frontend/src/utils/license.ts b/frontend/src/utils/license.ts
index a534d2d4b..b5e3b393b 100644
--- a/frontend/src/utils/license.ts
+++ b/frontend/src/utils/license.ts
@@ -3,6 +3,7 @@
* For any changes made here, please make the corresponding changes in the
* backend, or open an issue to track it.
*/
+import { camel } from "case"
import type {
License,
@@ -35,7 +36,7 @@ export const getFullLicenseName = (
// PDM has no abbreviation
if (license === "pdm" && i18n) {
- licenseName = i18n.t(`license-readable-names.${license}`).toString()
+ licenseName = i18n.t(`licenseReadableNames.${camel(license)}`).toString()
} else {
licenseName = license.toUpperCase().replace("SAMPLING", "Sampling")
}
diff --git a/frontend/test/locales/ar.json b/frontend/test/locales/ar.json
index 6b56d598e..5a3c67f89 100644
--- a/frontend/test/locales/ar.json
+++ b/frontend/test/locales/ar.json
@@ -2,26 +2,26 @@
"404": {
"title": "يبدو أن المحتوى الذي تبحث عنه قد اختفى.",
"main": "انتقل إلى {link} أو ابحث عن شيء مشابه من الحقل أدناه.",
- "search-placeholder": "البحث عن محتوى لإعادة استخدامه"
+ "searchPlaceholder": "البحث عن محتوى لإعادة استخدامه"
},
"interpunct": "•",
- "skip-to-content": "تخطى الى المحتوى",
- "sketchfab-iframe-title": "عارض {sketchfab}",
- "flag-status": {
+ "skipToContent": "تخطى الى المحتوى",
+ "sketchfabIframeTitle": "عارض {sketchfab}",
+ "flagStatus": {
"nonexistent": "غير موجود",
"on": "على",
"off": "عن"
},
- "pref-page": {
+ "prefPage": {
"title": "التفضيلات",
- "store-state": "حالة المتجر",
- "content-filtering": "تصفية المحتوى",
- "explanation": "يظهر لأن {feat-name} هي {feat-state}",
+ "storeState": "حالة المتجر",
+ "contentFiltering": "تصفية المحتوى",
+ "explanation": "يظهر لأن {featName} هي {featState}",
"switchable": {
"title": "ميزات قابلة للتبديل",
"desc": "يمكنك تشغيل هذه الميزات أو إيقاف تشغيلها كما تريد وسيتم حفظ تفضيلاتك في ملف تعريف ارتباط."
},
- "non-switchable": {
+ "nonSwitchable": {
"title": "ميزات غير قابلة للتحويل",
"desc": "لا يمكنك تعديل حالة هذه الميزات."
},
@@ -49,63 +49,63 @@
"see-audio": "مشاهدة كل الملفات الصوتية",
"select-label": "حدد نوع المحتوى: {type}"
},
- "server-timeout": {
+ "serverTimeout": {
"heading": "عفوًا ، يبدو أن هذا الطلب استغرق وقتًا طويلاً لإكماله. حاول مرة اخرى."
},
- "no-results": {
+ "noResults": {
"heading": "لم نتمكن من العثور على أي شيء لـ \"{query}\".",
"alternatives": "جرب استعلامًا مختلفًا أو استخدم أحد المصادر الخارجية لتوسيع نطاق البحث."
},
- "error-images": {
- "depressed-musician": "عازف البيانو المكتئب يضع رأسه في أيديهم.",
- "waiting-for-a-bite": "يجلس ثلاثة أولاد على جذع شجرة مكسور بينما يصطاد اثنان منهم."
+ "errorImages": {
+ "depressedMusician": "عازف البيانو المكتئب يضع رأسه في أيديهم.",
+ "waitingForABite": "يجلس ثلاثة أولاد على جذع شجرة مكسور بينما يصطاد اثنان منهم."
},
"modal": {
"close": "قريب",
- "aria-close": "أغلق النموذج",
- "close-named": "إغلاق {name}"
+ "ariaClose": "أغلق النموذج",
+ "closeNamed": "إغلاق {name}"
},
- "download-button": {
+ "downloadButton": {
"download": "تحميل",
"aria": {
- "dropdown-label": "حدد تنسيق ملف التنزيل"
+ "dropdownLabel": "حدد تنسيق ملف التنزيل"
}
},
- "migration-notice": {
- "intro": "{cc-search} يسمى الآن {openverse} وينضم إلى {wordpress} كمشروع مفتوح المصدر.",
- "more": "{read-more} حول هذا الإعلان.",
+ "migrationNotice": {
+ "intro": "{ccSearch} يسمى الآن {openverse} وينضم إلى {wordpress} كمشروع مفتوح المصدر.",
+ "more": "{readMore} حول هذا الإعلان.",
"read": "اقرأ أكثر"
},
- "dropdown-button": {
+ "dropdownButton": {
"aria": {
- "arrow-label": "اسقاط"
+ "arrowLabel": "اسقاط"
}
},
- "license-readable-names": {
+ "licenseReadableNames": {
"cc0": "صفر",
"pdm": "علامة المجال العام",
"by": "الإسناد",
- "by-sa": "نَسب المُصنَّف - شارك - على حدٍ سواء",
- "by-nc": "نَسب المُصنَّف - غير تجاري",
- "by-nd": "Attribution-NoDerivatives",
- "by-nc-sa": "Attribution-NonCommercial-Share-Alike",
- "by-nc-nd": "نسب المصنف غير التجاري لا المشتقات",
+ "bySa": "نَسب المُصنَّف - شارك - على حدٍ سواء",
+ "byNc": "نَسب المُصنَّف - غير تجاري",
+ "byNd": "Attribution-NoDerivatives",
+ "byNcSa": "Attribution-NonCommercial-Share-Alike",
+ "byNcNd": "نسب المصنف غير التجاري لا المشتقات",
"sampling+": "سامبلينغ بلس",
- "nc-sampling+": "أخذ العينات غير التجارية زائد"
+ "ncSampling+": "أخذ العينات غير التجارية زائد"
},
"search": {
"search": "يبحث",
- "search-bar-label": "البحث عن محتوى في {openverse}"
+ "searchBarLabel": "البحث عن محتوى في {openverse}"
},
- "play-pause": {
+ "playPause": {
"play": "لعب",
"pause": "يوقف",
"replay": "إعادة",
"loading": "جار التحميل"
},
- "audio-track": {
- "aria-label": "{title} - مشغل الصوت",
- "aria-label-interactive": "{title} - مشغل الصوت - اضغط على مفتاح المسافة لتشغيل معاينة الصوت وإيقافها مؤقتًا",
+ "audioTrack": {
+ "ariaLabel": "{title} - مشغل الصوت",
+ "ariaLabelInteractive": "{title} - مشغل الصوت - اضغط على مفتاح المسافة لتشغيل معاينة الصوت وإيقافها مؤقتًا",
"creator": "بواسطة {creator}",
"messages": {
"err_aborted": "لقد أجهضت التشغيل.",
@@ -116,12 +116,12 @@
},
"close": "أغلق مشغل الصوت"
},
- "audio-thumbnail": {
+ "audioThumbnail": {
"alt": "صورة الغلاف لـ \"{title}\" بواسطة {creator}"
},
"waveform": {
"label": "شريط البحث عن الصوت",
- "current-time": "{time} ثانية | {time} ثانية"
+ "currentTime": "{time} ثانية | {time} ثانية"
},
"browsers": {
"chrome": "كروم",
@@ -129,7 +129,7 @@
"opera": "Opera",
"edge": "حافة"
},
- "external-sources": {
+ "externalSources": {
"caption": "{openverse} لا يتحكم في النتائج ، تحقق دائمًا من أن العمل في الواقع خاضع لترخيص CC.",
"button": "قائمة مصدر",
"title": "مصادر خارجية",
@@ -138,21 +138,21 @@
"caption": "انقر فوق أحد المصادر أدناه للبحث مباشرة في مجموعات أخرى من الصور المرخصة CC. {break} يرجى ملاحظة أن استخدام المرشحات غير مدعوم لمكتبة Open Clip Art Library أو Nappy."
},
"form": {
- "unsupported-title": "{openverse} لا يدعم حتى الآن البحث المضمن {type}.",
- "supported-title": "لا تجد ما تبحث عنه؟ جرب مصدر خارجي:",
- "no-results-title": "لا توجد نتائج {type} لـ \"{query}\".",
+ "unsupportedTitle": "{openverse} لا يدعم حتى الآن البحث المضمن {type}.",
+ "supportedTitle": "لا تجد ما تبحث عنه؟ جرب مصدر خارجي:",
+ "noResultsTitle": "لا توجد نتائج {type} لـ \"{query}\".",
"caption": "انقر فوق أحد المصادر أدناه للبحث مباشرة في مجموعات أخرى من {type} المرخصة CC.",
- "types-plural": {
+ "typesPlural": {
"image": "الصور",
"audio": "صوتيات",
"video": "أشرطة فيديو",
- "model-3d": "نماذج ثلاثية الأبعاد"
+ "model3d": "نماذج ثلاثية الأبعاد"
},
"types": {
"image": "صورة",
"audio": "صوتي",
"video": "فيديو",
- "model-3d": "نموذج 3D"
+ "model3d": "نموذج 3D"
}
}
},
@@ -188,7 +188,7 @@
"unknown": "مجهول"
}
},
- "single-result": {
+ "singleResult": {
"back": "رجوع إلى نتائج البحث"
},
"media-details": {
@@ -319,29 +319,29 @@
"feedback-thanks": "شكرا لملاحظاتك!"
}
},
- "filter-list": {
- "filter-by": "مصنف بواسطة",
+ "filterList": {
+ "filterBy": "مصنف بواسطة",
"hide": "إخفاء عوامل التصفية",
"clear": "مسح عوامل التصفية",
"show": "أظهر النتائج",
- "category-aria": "قائمة عوامل التصفية لفئة {categoryName}"
+ "categoryAria": "قائمة عوامل التصفية لفئة {categoryName}"
},
"filters": {
"title": "مرشحات",
- "filter-by": "مصنف بواسطة",
+ "filterBy": "مصنف بواسطة",
"aria": {
- "remove-filter": "إزالة مرشح {label}"
+ "removeFilter": "إزالة مرشح {label}"
},
- "license-explanation": {
- "license-definition": "تعريف الترخيص",
- "mark-definition": "تعريف {mark}",
+ "licenseExplanation": {
+ "licenseDefinition": "تعريف الترخيص",
+ "markDefinition": "تعريف {mark}",
"more": {
- "license": "{read-more} حول هذا الترخيص.",
- "mark": "{read-more} حول {mark}.",
- "read-more": "اقرأ أكثر"
+ "license": "{readMore} حول هذا الترخيص.",
+ "mark": "{readMore} حول {mark}.",
+ "readMore": "اقرأ أكثر"
}
},
- "search-by": {
+ "searchBy": {
"title": "البحث عن طريق",
"creator": "المنشئ"
},
@@ -365,20 +365,20 @@
"medium": "متوسط",
"large": "كبير"
},
- "aspect-ratios": {
+ "aspectRatios": {
"title": "ابعاد متزنة",
"tall": "طويل",
"wide": "واسع",
"square": "ميدان"
},
- "image-extensions": {
+ "imageExtensions": {
"title": "امتداد",
"jpg": "JPEG",
"png": "بي إن جي",
"gif": "GIF",
"svg": "SVG"
},
- "audio-extensions": {
+ "audioExtensions": {
"title": "امتداد",
"flac": "FLAC",
"mid": "منتصف",
@@ -389,13 +389,13 @@
"wav": "WAV",
"webm": "WEBM"
},
- "image-categories": {
+ "imageCategories": {
"title": "نوع الصورة",
"photograph": "الصور",
"illustration": "الرسوم التوضيحية",
"digitized_artwork": "الأعمال الفنية الرقمية"
},
- "audio-categories": {
+ "audioCategories": {
"title": "فئة الصوت",
"audiobook": "كتاب مسموع",
"music": "موسيقى",
@@ -405,13 +405,13 @@
"sound_effect": "مؤثرات صوتية",
"sound": "مؤثرات صوتية"
},
- "audio-providers": {
+ "audioProviders": {
"title": "مصدر"
},
- "image-providers": {
+ "imageProviders": {
"title": "مصدر"
},
- "license-types": {
+ "licenseTypes": {
"title": "يستخدم",
"commercial": "استخدام تجاريًا",
"modification": "تعديل أو تكييف"
@@ -421,17 +421,17 @@
"cc0": "CC0",
"pdm": "علامة المجال العام",
"by": "بواسطة",
- "by-sa": "BY-SA",
- "by-nc": "BY-NC",
- "by-nd": "BY-ND",
- "by-nc-sa": "BY-NC-SA",
- "by-nc-nd": "BY-NC-ND"
+ "bySa": "BY-SA",
+ "byNc": "BY-NC",
+ "byNd": "BY-ND",
+ "byNcSa": "BY-NC-SA",
+ "byNcNd": "BY-NC-ND"
}
},
"error": {
"occurred": "حدث خطأ",
- "image-not-found": "تعذر العثور على الصورة بالمعرف {id}",
- "media-not-found": "تعذر العثور على {mediaType} بالمعرف {id}",
+ "imageNotFound": "تعذر العثور على الصورة بالمعرف {id}",
+ "mediaNotFound": "تعذر العثور على {mediaType} بالمعرف {id}",
"image": "صورة",
"audio": "صوتي"
},
@@ -636,23 +636,13 @@
}
},
"header": {
- "about-nav-item": "قصتنا",
- "source-nav-item": "مصادر",
- "search-guide-nav-item": "دليل البحث",
- "external-sources-nav-item": "بحث ميتا",
- "privacy-nav-item": "خصوصية",
- "feedback-nav-item": "استجابة",
- "support-nav-item": "ادعمنا",
- "extension-nav-item": "امتداد الويب",
"placeholder": "البحث في كل المحتوى",
- "licenses-nav-item": "التراخيص",
- "about-tab": "حول",
- "resources-tab": "موارد",
- "api-nav-item": "API",
+ "aboutTab": "حول",
+ "resourcesTab": "موارد",
"loading": "جار التحميل...",
- "filter-button": {
+ "filterButton": {
"simple": "مرشحات",
- "with-count": "{count} عامل التصفية | {count} عوامل التصفية"
+ "withCount": "{count} عامل التصفية | {count} عوامل التصفية"
},
"notification": {
"text": "{example_notification_text}",
@@ -663,7 +653,7 @@
"primary": "الأولية",
"menu": "قائمة",
"search": "بحث",
- "sr-search": "زر البحث"
+ "srSearch": "زر البحث"
}
},
"notification": {
@@ -677,9 +667,9 @@
"description": "مكتبة واسعة من الصور المجانية ، والصور ، والصوت ، متاحة للاستخدام المجاني.",
"aria": {
"search": "بحث",
- "search-type": "نوع البحث"
+ "searchType": "نوع البحث"
},
- "license-filter": {
+ "licenseFilter": {
"label": "أريد شيئًا أستطيعه"
},
"disclaimer": {
@@ -693,22 +683,22 @@
"navigation": {
"about": "حول",
"licenses": "التراخيص",
- "get-involved": "شارك",
+ "getInvolved": "شارك",
"api": "API",
"privacy": "خصوصية",
"feedback": "استجابة",
"sources": "مصادر",
- "external-sources": "مصادر خارجية",
- "search-help": "بحث في المساعدة"
+ "externalSources": "مصادر خارجية",
+ "searchHelp": "بحث في المساعدة"
},
"footer": {
- "wordpress-affiliation": "جزء من مشروع {wordpress}",
- "wip": "\uD83D\uDEA7"
+ "wordpressAffiliation": "جزء من مشروع {wordpress}",
+ "wip": "🚧"
},
"language": {
"language": "لغة"
},
- "recent-searches": {
+ "recentSearches": {
"heading": "عمليات البحث الأخيرة",
"clear": {
"text": "مسح",
diff --git a/frontend/test/locales/es.json b/frontend/test/locales/es.json
index 6c7360786..38bed5274 100644
--- a/frontend/test/locales/es.json
+++ b/frontend/test/locales/es.json
@@ -1,6 +1,6 @@
{
"404": {
- "search-placeholder": "Buscar contenido para reutilizar",
+ "searchPlaceholder": "Buscar contenido para reutilizar",
"main": "Ve a {link} o busca algo similar en el siguiente campo.",
"title": "El contenido que estás buscando parece haber desaparecido."
},
@@ -17,15 +17,15 @@
"search-type": "tipo de búsqueda",
"search": "buscar"
},
- "license-filter": {
+ "licenseFilter": {
"label": "Quiero algo que pueda"
}
},
"modal": {
- "close-named": "Cerrar {name}",
+ "closeNamed": "Cerrar {name}",
"close": "Cerrar"
},
- "sketchfab-iframe-title": "Visor {sketchfab}",
+ "sketchfabIframeTitle": "Visor {sketchfab}",
"media-details": {
"reuse": {
"credit": {
@@ -107,8 +107,8 @@
"source-label": "Fuente",
"provider-label": "Proveedor"
},
- "pref-page": {
- "non-switchable": {
+ "prefPage": {
+ "nonSwitchable": {
"desc": "No puedes modificar el estado de estas características.",
"title": "Características que no se pueden cambiar."
},
@@ -118,7 +118,7 @@
},
"explanation": "Mostrado porque {feat-name} es {feat-state}",
"content-filtering": "Filtrado de contenido",
- "store-state": "Provincia de la tienda",
+ "storeState": "Provincia de la tienda",
"title": "Preferencias"
},
"sources": {
@@ -155,9 +155,9 @@
"single-name": "Fuente",
"detail": "Hacer clic en una {single-name} te permite explorar y filtrar los elementos dentro de esa fuente."
},
- "audio-track": {
- "aria-label-interactive": "{title} - Reproductor de audio - Pulsa la barra de espacio para reproducir y pausar una muestra del audio",
- "aria-label": "{title} - Reproductor de audio",
+ "audioTrack": {
+ "ariaLabelInteractive": "{title} - Reproductor de audio - Pulsa la barra de espacio para reproducir y pausar una muestra del audio",
+ "ariaLabel": "{title} - Reproductor de audio",
"messages": {
"loading": "Cargando...",
"err_unsupported": "Este formato de audio no es compatible con tu navegador.",
@@ -226,7 +226,7 @@
"image": "Imágenes"
},
"filters": {
- "audio-categories": {
+ "audioCategories": {
"sound_effect": "Efectos de sonido",
"news": "Noticias",
"audiobook": "Audiolibro",
@@ -236,60 +236,60 @@
"sound": "Efectos de sonido",
"music": "Música"
},
- "license-explanation": {
+ "licenseExplanation": {
"more": {
- "read-more": "Leer más",
- "mark": "{read-more} sobre {mark}.",
- "license": "{read-more} sobre esta licencia."
+ "readMore": "Leer más",
+ "mark": "{readMore} sobre {mark}.",
+ "license": "{readMore} sobre esta licencia."
},
- "mark-definition": "Definición de {mark}",
- "license-definition": "Definición de la licencia"
+ "markDefinition": "Definición de {mark}",
+ "licenseDefinition": "Definición de la licencia"
},
"licenses": {
"title": "Licencias",
- "by-nc-nd": "BY-NC-ND",
- "by-nc-sa": "BY-NC-SA",
- "by-nd": "BY-ND",
- "by-nc": "BY-NC",
- "by-sa": "BY-SA",
+ "byNcNd": "BY-NC-ND",
+ "byNcSa": "BY-NC-SA",
+ "byNd": "BY-ND",
+ "byNc": "BY-NC",
+ "bySa": "BY-SA",
"by": "BY",
"pdm": "Marca de dominio público",
"cc0": "CC0"
},
"aria": {
- "remove-filter": "Eliminar el filtro {label}"
+ "removeFilter": "Eliminar el filtro {label}"
},
- "license-types": {
+ "licenseTypes": {
"title": "Uso",
"modification": "Modificar o adaptar",
"commercial": "Usar comercialmente"
},
- "image-providers": {
+ "imageProviders": {
"title": "Fuente"
},
- "audio-providers": {
+ "audioProviders": {
"title": "Fuente"
},
- "image-categories": {
+ "imageCategories": {
"title": "Tipo de imagen",
"digitized_artwork": "Obras de arte digitalizadas",
"illustration": "Ilustraciones",
"photograph": "Fotografías"
},
- "audio-extensions": {
+ "audioExtensions": {
"title": "Tipo de archivo",
"flac": "FLAC",
"ogg": "OGG",
"mp3": "MP3"
},
- "image-extensions": {
+ "imageExtensions": {
"title": "Tipo de archivo",
"svg": "SVG",
"gif": "GIF",
"png": "PNG",
"jpg": "JPEG"
},
- "aspect-ratios": {
+ "aspectRatios": {
"title": "Relación de aspecto",
"square": "Cuadrada",
"wide": "Panorámica",
@@ -314,34 +314,34 @@
"creator": {
"title": "Buscar por creador"
},
- "search-by": {
+ "searchBy": {
"creator": "Creador",
"title": "Buscar por"
},
"title": "Filtros",
- "filter-by": "Filtrar por"
+ "filterBy": "Filtrar por"
},
- "license-readable-names": {
- "nc-sampling+": "Sampling Plus NoComercial",
+ "licenseReadableNames": {
+ "ncSampling+": "Sampling Plus NoComercial",
"sampling+": "Sampling Plus",
- "by-nc-nd": "Reconocimiento-NoComercial-SinObraDerivada",
- "by-nc-sa": "Reconocimiento-NoComercial-CompartirIgual",
- "by-nd": "Reconocimiento-SinObraDerivada",
- "by-nc": "Reconocimiento-NoComercial",
- "by-sa": "Reconocimiento-CompartirIgual",
+ "byNcNd": "Reconocimiento-NoComercial-SinObraDerivada",
+ "byNcSa": "Reconocimiento-NoComercial-CompartirIgual",
+ "byNd": "Reconocimiento-SinObraDerivada",
+ "byNc": "Reconocimiento-NoComercial",
+ "bySa": "Reconocimiento-CompartirIgual",
"by": "Reconocimiento",
"pdm": "Marca de dominio público",
"cc0": "Cero"
},
- "error-images": {
- "waiting-for-a-bite": "Tres chicos sentados en un tronco roto mientras dos de ellos pescan.",
- "depressed-musician": "Un pianista deprimido descansa la cabeza en sus manos."
+ "errorImages": {
+ "waitingForABite": "Tres chicos sentados en un tronco roto mientras dos de ellos pescan.",
+ "depressedMusician": "Un pianista deprimido descansa la cabeza en sus manos."
},
- "no-results": {
+ "noResults": {
"alternatives": "Intenta una consulta diferente o usa una de las fuentes adicionales para ampliar tu búsqueda.",
"heading": "No hemos podido encontrar nada para «{query}»."
},
- "server-timeout": {
+ "serverTimeout": {
"heading": "¡Vaya! Parece que esa petición tarda demasiado en completarse. Por favor, inténtalo de nuevo."
},
"about": {
@@ -368,10 +368,10 @@
"content": "{openverse} es una herramienta que permite descubrir obras con licencia abierta y de dominio público y ser usadas por todos."
}
},
- "migration-notice": {
- "intro": "{cc-search} ahora se llama {openverse} y se une a {wordpress} como un proyecto de código abierto.",
+ "migrationNotice": {
+ "intro": "{ccSearch} ahora se llama {openverse} y se une a {wordpress} como un proyecto de código abierto.",
"read": "Lee más",
- "more": "{read-more} sobre este anuncio."
+ "more": "{readMore} sobre este anuncio."
},
"audio-details": {
"information": "Información del audio",
@@ -387,7 +387,7 @@
"related-audios": "Audios relacionados",
"genre-label": "Género"
},
- "skip-to-content": "Saltar al contenido",
+ "skipToContent": "Saltar al contenido",
"image-details": {
"information": {
"unknown": "Desconocida",
@@ -406,39 +406,29 @@
"weblink": "Ir a la web de la imagen"
},
"header": {
- "filter-button": {
- "with-count": "{count} filtro|{count} filtros",
+ "filterButton": {
+ "withCount": "{count} filtro|{count} filtros",
"simple": "Filtros"
},
- "privacy-nav-item": "Privacidad",
"loading": "Cargando...",
"aria": {
"search": "buscar",
- "sr-search": "botón de búsqueda",
+ "srSearch": "botón de búsqueda",
"menu": "menú",
"primary": "principal"
},
"placeholder": "Buscar todos los contenidos",
- "api-nav-item": "API",
- "licenses-nav-item": "Las licencias",
- "extension-nav-item": "Extensión web",
- "support-nav-item": "Apóyanos",
- "feedback-nav-item": "Opinión",
- "external-sources-nav-item": "Búsqueda meta",
- "search-guide-nav-item": "Guía de búsqueda",
- "source-nav-item": "Fuentes",
- "about-nav-item": "Nuestra historia",
"notification": {
"okay": "Aceptar",
"dismiss": "Descartar",
"text": "{example_notification_text}"
},
- "resources-tab": "Recursos",
- "about-tab": "Acerca de"
+ "resourcesTab": "Recursos",
+ "aboutTab": "Acerca de"
},
- "filter-list": {
- "filter-by": "Filtrar por",
- "category-aria": "lista de filtros para la categoría {categoryName}",
+ "filterList": {
+ "filterBy": "Filtrar por",
+ "categoryAria": "lista de filtros para la categoría {categoryName}",
"show": "Mostrar los resultados",
"clear": "Vaciar los filtros",
"hide": "Ocultar los filtros"
@@ -489,7 +479,7 @@
"search": {
"search": "Buscar"
},
- "play-pause": {
+ "playPause": {
"replay": "Volver a reproducir",
"pause": "Pausar",
"play": "Reproducir"
@@ -597,7 +587,7 @@
"intro": "Una extensión del navegador que te permite buscar y usar imágenes con licencia abierta y de dominio público."
}
},
- "external-sources": {
+ "externalSources": {
"card": {
"checkboxes": {
"commercial": "Uso para fines comerciales",
@@ -608,37 +598,37 @@
"search": "¿No encuentras lo que buscas? Prueba fuentes adicionales."
},
"form": {
- "no-results-title": "Ningún resultado de {type} para «{query}».",
+ "noResultsTitle": "Ningún resultado de {type} para «{query}».",
"caption": "Haz clic en una fuente de abajo para buscar directamente otras colecciones de {type} con licencia CC. {break}Por favor, ten en cuenta que el uso de filtros no es compatible con {filter}.",
- "supported-title": "¿No encuentras lo que buscas? Prueba fuentes adicionales de {type}.",
- "unsupported-title": "{openverse} todavía no es compatible con la búsqueda integrada de {type}."
+ "supportedTitle": "¿No encuentras lo que buscas? Prueba fuentes adicionales de {type}.",
+ "unsupportedTitle": "{openverse} todavía no es compatible con la búsqueda integrada de {type}."
},
"caption": "{openverse} no indexa actualmente las fuentes listadas anteriormente, pero, a través de esta interfaz, ofrece un cómodo acceso a los servicios de búsqueda proporcionados por otras organizaciones independientes. {openverse} no tiene control sobre los resultados devueltos. No asumas que los resultados mostrados en este portal de búsqueda están bajo una licencia CC. Comprueba siempre que la obra está realmente bajo una licencia CC siguiendo el enlace. Si tienes dudas, debes contactar directamente con el titular del copyright o intentar contactar con el sitio donde has encontrado el contenido."
},
"waveform": {
"label": "Barra de búsqueda de audio",
- "current-time": "{time} segundo|{time} segundos"
+ "currentTime": "{time} segundo|{time} segundos"
},
- "audio-thumbnail": {
+ "audioThumbnail": {
"alt": "Cubierta para «{title}» de {creator}"
},
- "download-button": {
+ "downloadButton": {
"download": "Descargar",
"aria": {
- "dropdown-label": "Selecciona el formato de archivo para descargar"
+ "dropdownLabel": "Selecciona el formato de archivo para descargar"
}
},
"interpunct": "•",
"error": {
"audio": "audio",
"image": "imagen",
- "media-not-found": "No se ha podido encontrar {mediaType} con ID {id}",
- "image-not-found": "No se ha podido encontrar la imagen con ID {id}",
+ "mediaNotFound": "No se ha podido encontrar {mediaType} con ID {id}",
+ "imageNotFound": "No se ha podido encontrar la imagen con ID {id}",
"occurred": "Ha ocurrido un error"
},
- "dropdown-button": {
+ "dropdownButton": {
"aria": {
- "arrow-label": "Desplegable"
+ "arrowLabel": "Desplegable"
}
},
"browsers": {
@@ -647,7 +637,7 @@
"firefox": "Firefox",
"chrome": "Chrome"
},
- "single-result": {
+ "singleResult": {
"back": "Volver a los resultados de búsqueda"
}
}
diff --git a/frontend/test/locales/ru.json b/frontend/test/locales/ru.json
index a42e942d8..31a07d225 100644
--- a/frontend/test/locales/ru.json
+++ b/frontend/test/locales/ru.json
@@ -10,7 +10,7 @@
"search-type": "Тип поиска",
"search": "поиск"
},
- "license-filter": {
+ "licenseFilter": {
"label": "Я хочу что-то, что можно"
}
},
@@ -73,83 +73,73 @@
"provider-label": "Поставщик"
},
"header": {
- "filter-button": {
- "with-count": "{count} Фильтр|{count} Фильтра|{count} Фильтров"
+ "filterButton": {
+ "withCount": "{count} Фильтр|{count} Фильтра|{count} Фильтров"
},
- "privacy-nav-item": "Конфиденциальность",
"aria": {
"search": "поиск",
- "sr-search": "кнопка поиска",
+ "srSearch": "кнопка поиска",
"menu": "меню",
"primary": "основное"
},
"placeholder": "Поиск по всему содержимому",
- "api-nav-item": "API",
- "licenses-nav-item": "Лицензии",
- "extension-nav-item": "Веб-расширение",
- "support-nav-item": "Поддержите нас",
- "feedback-nav-item": "Обратная связь",
- "external-sources-nav-item": "Мета поиск",
- "search-guide-nav-item": "Руководство по поиску",
- "source-nav-item": "Источники",
- "about-nav-item": "Наша история",
"notification": {
"okay": "ОК",
"dismiss": "Закрыть"
},
- "about-tab": "О нас"
+ "aboutTab": "О нас"
},
"filters": {
"licenses": {
"title": "Лицензии",
- "by-nc-nd": "BY-NC-ND",
- "by-nc-sa": "BY-NC-SA",
- "by-nd": "BY-ND",
- "by-nc": "BY-NC",
- "by-sa": "BY-SA",
+ "byNcNd": "BY-NC-ND",
+ "byNcSa": "BY-NC-SA",
+ "byNd": "BY-ND",
+ "byNc": "BY-NC",
+ "bySa": "BY-SA",
"by": "BY",
"pdm": "Public Domain Mark",
"cc0": "CC0"
},
"aria": {
- "remove-filter": "Очистить фильтр {label}"
+ "removeFilter": "Очистить фильтр {label}"
},
- "license-types": {
+ "licenseTypes": {
"title": "Использование",
"modification": "Изменить или адаптировать",
"commercial": "Использовать в коммерческих целях"
},
- "image-providers": {
+ "imageProviders": {
"title": "Источник"
},
- "audio-providers": {
+ "audioProviders": {
"title": "Источник"
},
- "audio-categories": {
+ "audioCategories": {
"title": "Категория аудиозаписей",
"podcast": "Подкасты",
"sound": "Звуковые эффекты",
"music": "Музыка"
},
- "image-categories": {
+ "imageCategories": {
"title": "Тип изображения",
"illustration": "Иллюстрации",
"photograph": "Фотографии"
},
- "audio-extensions": {
+ "audioExtensions": {
"title": "Тип файла",
"flac": "FLAC",
"ogg": "OGG",
"mp3": "MP3"
},
- "image-extensions": {
+ "imageExtensions": {
"title": "Тип файла",
"svg": "SVG",
"gif": "GIF",
"png": "PNG",
"jpg": "JPEG"
},
- "aspect-ratios": {
+ "aspectRatios": {
"title": "Формат кадра",
"square": "Квадрат",
"wide": "Широкий",
@@ -175,11 +165,11 @@
"title": "Поиск по автору"
},
"title": "Фильтры",
- "filter-by": "Фильтровать по"
+ "filterBy": "Фильтровать по"
},
- "filter-list": {
- "filter-by": "Фильтр по",
- "category-aria": "Список фильтров для категории {categoryName}",
+ "filterList": {
+ "filterBy": "Фильтр по",
+ "categoryAria": "Список фильтров для категории {categoryName}",
"show": "Показать результаты",
"clear": "Очистить фильтры",
"hide": "Скрыть фильтры"
@@ -194,7 +184,7 @@
"modal": {
"close": "Закрыть"
},
- "license-readable-names": {
+ "licenseReadableNames": {
"pdm": "Знак общественного достояния"
},
"search": {
@@ -205,17 +195,17 @@
"providers": {
"source": "Источник"
},
- "issue-button": "Предложить новый источник",
- "cc-content": {
+ "issueButton": "Предложить новый источник",
+ "ccContent": {
"smithsonian": "Смитсоновский институт",
- "europeana-api": "API Europeana"
+ "europeanaApi": "API Europeana"
},
- "single-name": "Источник"
+ "singleName": "Источник"
},
- "search-guide": {
+ "searchGuide": {
"exact": {
- "aria-label": "в кавычках, Клод Моне",
- "claude-monet": "\"Клод Моне\""
+ "ariaLabel": "в кавычках, Клод Моне",
+ "claudeMonet": "\"Клод Моне\""
}
},
"browse-page": {
@@ -262,22 +252,22 @@
},
"related-images": "Связанные изображения"
},
- "external-sources": {
+ "externalSources": {
"card": {
"checkboxes": {
"title": "Использование"
}
},
"form": {
- "no-results-title": "Не найдено {type} по запросу \"{query}\".",
+ "noResultsTitle": "Не найдено {type} по запросу \"{query}\".",
"caption": "Нажмите на источники ниже для прямого поиска в других коллекциях {type} с лицензиями CC.{break}Использование фильтров не поддерживается в {filter}.",
- "supported-title": "Не нашли то, что вы искали? Попробуйте дополнительные источники {type}."
+ "supportedTitle": "Не нашли то, что вы искали? Попробуйте дополнительные источники {type}."
}
},
- "download-button": {
+ "downloadButton": {
"download": "Скачать",
"aria": {
- "dropdown-label": "Выберите формат файла для скачивания"
+ "dropdownLabel": "Выберите формат файла для скачивания"
}
},
"interpunct": "•",
@@ -286,19 +276,19 @@
"image": "изображение",
"occurred": "Произошла ошибка"
},
- "migration-notice": {
+ "migrationNotice": {
"read": "Читать далее"
},
- "dropdown-button": {
+ "dropdownButton": {
"aria": {
- "arrow-label": "Выпадающий список"
+ "arrowLabel": "Выпадающий список"
}
},
- "play-pause": {
+ "playPause": {
"pause": "Приостановить",
"play": "Воспроизвести"
},
- "audio-track": {
+ "audioTrack": {
"messages": {
"err_unsupported": "Этот формат аудио не поддерживается вашим браузером.",
"err_decode": "Невозможно декодировать аудио.",
@@ -307,13 +297,13 @@
}
},
"waveform": {
- "current-time": "{time} секунда|{time} секунды|{time} секунд"
+ "currentTime": "{time} секунда|{time} секунды|{time} секунд"
},
- "external-sources-page": {
+ "externalSourcesPage": {
"why": {
- "feedback-suggestions": "Мы надеемся, что вам нравится. Если у вас есть предложения по улучшению, то есть {feedback}.",
- "feedback-link": "отзыв",
- "aria-label": "отзыв"
+ "feedbackSuggestions": "Мы надеемся, что вам нравится. Если у вас есть предложения по улучшению, то есть {feedback}.",
+ "feedbackLink": "отзыв",
+ "ariaLabel": "отзыв"
},
"new": {
"email": "email"
@@ -326,7 +316,7 @@
"firefox": "Firefox",
"chrome": "Chrome"
},
- "single-result": {
+ "singleResult": {
"back": "Назад к результатам поиска"
},
"about": {
diff --git a/frontend/test/playwright/e2e/filters-sidebar-keyboard.spec.ts b/frontend/test/playwright/e2e/filters-sidebar-keyboard.spec.ts
index ef0aaba7a..e991ae554 100644
--- a/frontend/test/playwright/e2e/filters-sidebar-keyboard.spec.ts
+++ b/frontend/test/playwright/e2e/filters-sidebar-keyboard.spec.ts
@@ -22,7 +22,7 @@ const walkToFilterButton = async (page: Page) => {
const firstFilterCheckbox = (page: Page, dir: LanguageDirection) => {
return page
- .getByRole("region", { name: t("filters.filter-by", dir) })
+ .getByRole("region", { name: t("filters.filterBy", dir) })
.getByRole("checkbox")
.first()
}
diff --git a/frontend/test/playwright/e2e/global-audio.spec.ts b/frontend/test/playwright/e2e/global-audio.spec.ts
index ad4a835be..01a0e7bed 100644
--- a/frontend/test/playwright/e2e/global-audio.spec.ts
+++ b/frontend/test/playwright/e2e/global-audio.spec.ts
@@ -36,7 +36,7 @@ test.describe("Global Audio", () => {
// Close the player
await page
.locator(".global-audio")
- .getByRole("button", { name: t("audio-track.close") })
+ .getByRole("button", { name: t("audioTrack.close") })
.click()
// and confirm the player is not visible
await expect(page.locator(".global-audio")).not.toBeVisible()
diff --git a/frontend/test/playwright/e2e/header-internal.spec.ts b/frontend/test/playwright/e2e/header-internal.spec.ts
index 257cb76a2..71fa4e143 100644
--- a/frontend/test/playwright/e2e/header-internal.spec.ts
+++ b/frontend/test/playwright/e2e/header-internal.spec.ts
@@ -22,7 +22,7 @@ const clickMenuButton = async (page: Page) => {
const closeMenu = async (page: Page, dir: LanguageDirection = "ltr") => {
await page
- .getByRole("button", { name: t("modal.close-pages-menu", dir) })
+ .getByRole("button", { name: t("modal.closePagesMenu", dir) })
.click()
}
@@ -97,7 +97,10 @@ test.describe("Header internal", () => {
await page.getByRole("link", { name: t("navigation.about") }).click()
// "Openverse Home" is hardcoded because our translation helper
// doesn't support named interpolation.
- await page.getByRole("link", { name: "Openverse Home" }).click()
+ await page
+ .getByRole("banner")
+ .getByRole("link", { name: "Openverse Home" })
+ .click()
expect(page.url()).toBe(homeUrl)
})
})
diff --git a/frontend/test/playwright/e2e/image-detail.spec.ts b/frontend/test/playwright/e2e/image-detail.spec.ts
index f1605aa27..7b3de2828 100644
--- a/frontend/test/playwright/e2e/image-detail.spec.ts
+++ b/frontend/test/playwright/e2e/image-detail.spec.ts
@@ -39,7 +39,7 @@ test("shows the main image with its title as alt text", async ({ page }) => {
test("does not show back to search results breadcrumb", async ({ page }) => {
await goToCustomImagePage(page)
await expect(
- page.locator(`text="${t("single-result.back")}"`)
+ page.locator(`text="${t("singleResult.back")}"`)
).not.toBeVisible({
timeout: 300,
})
diff --git a/frontend/test/playwright/e2e/migration-banner.spec.ts b/frontend/test/playwright/e2e/migration-banner.spec.ts
index 0b474b1a3..95f8c2719 100644
--- a/frontend/test/playwright/e2e/migration-banner.spec.ts
+++ b/frontend/test/playwright/e2e/migration-banner.spec.ts
@@ -56,7 +56,7 @@ test.describe("migration banner", () => {
await expect(migrationNotice).toBeVisible({ timeout: 500 })
await migrationNotice
- .locator(`[aria-label="${t("migration-notice.close")}"]:visible`)
+ .locator(`[aria-label="${t("migrationNotice.close")}"]:visible`)
.click({ timeout: 500 })
await expect(migrationNotice).not.toBeVisible({ timeout: 500 })
diff --git a/frontend/test/playwright/e2e/search-navigation.spec.ts b/frontend/test/playwright/e2e/search-navigation.spec.ts
index a2897efce..fe5f047ee 100644
--- a/frontend/test/playwright/e2e/search-navigation.spec.ts
+++ b/frontend/test/playwright/e2e/search-navigation.spec.ts
@@ -105,7 +105,7 @@ test.describe("search history navigation", () => {
const url = "/search/?q=galah"
await page.goto(url)
await page.locator('a[href^="/image"]').first().click()
- const link = page.locator(`text="${t("single-result.back")}"`)
+ const link = page.locator(`text="${t("singleResult.back")}"`)
await expect(link).toBeVisible()
await link.click()
await expect(page).toHaveURL(url)
diff --git a/frontend/test/playwright/utils/audio.ts b/frontend/test/playwright/utils/audio.ts
index 430b138e1..3117b99db 100644
--- a/frontend/test/playwright/utils/audio.ts
+++ b/frontend/test/playwright/utils/audio.ts
@@ -75,9 +75,7 @@ const getNthAudioRow = async (page: Page, num: number) => {
return nthAudioRow
}
const play = async (audioRow: Locator, dir: LanguageDirection = "ltr") => {
- await audioRow
- .getByRole("button", { name: t("play-pause.play", dir) })
- .click()
+ await audioRow.getByRole("button", { name: t("playPause.play", dir) }).click()
await expect(audioRow.locator("article")).toHaveAttribute(
"status",
/(loading|playing|played)/
@@ -86,7 +84,7 @@ const play = async (audioRow: Locator, dir: LanguageDirection = "ltr") => {
const pause = async (audioRow: Locator, dir: LanguageDirection = "ltr") => {
await audioRow
- .getByRole("button", { name: t("play-pause.pause", dir) })
+ .getByRole("button", { name: t("playPause.pause", dir) })
.click()
}
export default {
diff --git a/frontend/test/playwright/utils/navigation.ts b/frontend/test/playwright/utils/navigation.ts
index 5cf62363f..e096c8243 100644
--- a/frontend/test/playwright/utils/navigation.ts
+++ b/frontend/test/playwright/utils/navigation.ts
@@ -110,7 +110,7 @@ export const closeContentSettingsModal = async (
dir: LanguageDirection = "ltr"
) => {
return page
- .getByRole("button", { name: t("modal.close-content-settings", dir) })
+ .getByRole("button", { name: t("modal.closeContentSettings", dir) })
.click()
}
diff --git a/frontend/test/playwright/visual-regression/components/external-sources-section.spec.ts b/frontend/test/playwright/visual-regression/components/external-sources-section.spec.ts
index db9c31831..c9a7cb95c 100644
--- a/frontend/test/playwright/visual-regression/components/external-sources-section.spec.ts
+++ b/frontend/test/playwright/visual-regression/components/external-sources-section.spec.ts
@@ -21,7 +21,7 @@ for (const dir of languageDirections) {
await goToSearchTerm(page, "birds", { searchType, dir })
const externalSourcesButton = page.getByRole("button", {
- name: t("external-sources.button", dir),
+ name: t("externalSources.button", dir),
})
await externalSourcesButton.click()
diff --git a/frontend/test/unit/specs/components/v-filter-checklist.spec.js b/frontend/test/unit/specs/components/v-filter-checklist.spec.js
index 708aa1661..9113560be 100644
--- a/frontend/test/unit/specs/components/v-filter-checklist.spec.js
+++ b/frontend/test/unit/specs/components/v-filter-checklist.spec.js
@@ -14,7 +14,7 @@ describe("FilterChecklist", () => {
options: [
{
code: "music",
- name: "filters.audio-categories.music",
+ name: "filters.audioCategories.music",
checked: false,
},
],