Skip to content

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

Use camelCase for i18n strings (#2271)

Olga Bulat123666f5a41c
diff --git a/.eslintrc.js b/.eslintrc.js
index 197ddc8c7..60e58ec24 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -28,6 +28,7 @@ module.exports = {
"plugin:@intlify/vue-i18n/recommended",
"plugin:import/recommended",
"plugin:eslint-comments/recommended",
+ "plugin:jsonc/recommended-with-jsonc",
],
plugins: [
"@typescript-eslint",
@@ -213,7 +214,11 @@ module.exports = {
},
},
{
- files: ["automations/js/src/**"],
+ files: [
+ "automations/js/src/**",
+ "frontend/test/**",
+ "frontend/src/**/**.json",
+ ],
rules: {
"unicorn/filename-case": "off",
},
@@ -246,11 +251,35 @@ module.exports = {
// Allow things like `Component.stories.js` and `Component.types.js`
{
case: "pascalCase",
- ignore: [".eslintrc.js", ".*\\..*\\.js"],
+ ignore: [".eslintrc.js", ".*\\..*\\.js", ".*\\.json"],
},
],
},
},
+ {
+ files: [
+ "frontend/src/locales/scripts/en.json5",
+ "frontend/test/locales/*.json",
+ ],
+ rules: {
+ "jsonc/key-name-casing": [
+ "error",
+ {
+ camelCase: true,
+ "kebab-case": false,
+ snake_case: true, // for err_* keys
+ ignores: ["ncSampling+", "sampling+"],
+ },
+ ],
+ },
+ },
+ {
+ files: ["frontend/src/locales/scripts/en.json5"],
+ rules: {
+ "jsonc/quote-props": "off",
+ "jsonc/quotes": "off",
+ },
+ },
],
settings: {
"vue-i18n": {
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 46468767c..5fecc0dc6 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -118,11 +118,11 @@ repos:
pass_filenames: false
- id: eslint
name: eslint
- files: \.(js|ts|vue)$
+ files: (frontend|automations).*?\.(js|ts|vue|json5|json)$
"types": [file] # ESLint only accepts [javascript] by default.
language: system
pass_filenames: false
- entry: bash -c 'pnpm exec eslint --fix --ext .js,.ts,.vue --ignore-path .gitignore --ignore-path .eslintignore --max-warnings=0 frontend automations/js .pnpmfile.cjs .eslintrc.js prettier.config.js'
+ entry: bash -c 'pnpm exec eslint --fix --ext .js,.ts,.vue,.json,.json5 --ignore-path .gitignore --ignore-path .eslintignore --max-warnings=0 frontend automations/js .pnpmfile.cjs .eslintrc.js prettier.config.js'
- id: test:unit
name: test:unit
files: ^frontend/.*$
diff --git a/frontend/package.json b/frontend/package.json
index 180a81063..612ebe12f 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -131,6 +131,7 @@
"chokidar": "^3.5.3",
"comment-json": "^4.2.3",
"css-loader": "^5.2.7",
+ "eslint-plugin-jsonc": "^2.8.0",
"jest": "^26.6.3",
"jest-fail-on-console": "^3.1.1",
"jest-transform-stub": "^2.0.0",
diff --git a/frontend/src/components/VAudioDetails/VAudioDetails.vue b/frontend/src/components/VAudioDetails/VAudioDetails.vue
index 1cfeaa53e..289d8ba53 100644
--- a/frontend/src/components/VAudioDetails/VAudioDetails.vue
+++ b/frontend/src/components/VAudioDetails/VAudioDetails.vue
@@ -2,7 +2,7 @@
<section class="audio-info">
<header class="mb-6 flex flex-row items-center justify-between">
<h2 class="heading-6 md:heading-5">
- {{ $t("audio-details.information") }}
+ {{ $t("audioDetails.information") }}
</h2>
<VContentReportPopover :media="audio" />
</header>
@@ -24,7 +24,7 @@
</ul>
<dl v-if="audio">
<div v-if="audio.audio_set">
- <dt>{{ $t("audio-details.table.album") }}</dt>
+ <dt>{{ $t("audioDetails.table.album") }}</dt>
<dd>
<VLink :href="audio.audio_set.foreign_landing_url">{{
audio.audio_set.title
@@ -32,14 +32,14 @@
</dd>
</div>
<div v-if="audio.category">
- <dt>{{ $t("audio-details.table.category") }}</dt>
+ <dt>{{ $t("audioDetails.table.category") }}</dt>
<dd>
{{ $t(`filters.audioCategories.${audio.category}`) }}
</dd>
</div>
<div v-if="audio.sample_rate">
<dt>
- {{ $t("audio-details.table.sample-rate") }}
+ {{ $t("audioDetails.table.sampleRate") }}
</dt>
<dd>
{{ audio.sample_rate }}
@@ -47,7 +47,7 @@
</div>
<div v-if="audio.filetype">
<dt>
- {{ $t("audio-details.table.filetype") }}
+ {{ $t("audioDetails.table.filetype") }}
</dt>
<dd>
{{ audioFormats.toUpperCase() }}
@@ -55,7 +55,7 @@
</div>
<div>
<dt>
- {{ $t("audio-details.table.provider") }}
+ {{ $t("audioDetails.table.provider") }}
</dt>
<dd>
<VLink :href="audio.foreign_landing_url">
@@ -65,7 +65,7 @@
</div>
<div v-if="audio.source && audio.sourceName !== audio.providerName">
<dt>
- {{ $t("audio-details.table.source") }}
+ {{ $t("audioDetails.table.source") }}
</dt>
<dd>
{{ audio.sourceName }}
@@ -73,7 +73,7 @@
</div>
<div v-if="audio.genres && audio.genres.length > 0">
<dt>
- {{ $t("audio-details.table.genre") }}
+ {{ $t("audioDetails.table.genre") }}
</dt>
<dd>
{{ audio.genres.join(", ") }}
diff --git a/frontend/src/components/VAudioDetails/VRelatedAudio.vue b/frontend/src/components/VAudioDetails/VRelatedAudio.vue
index 319e1a262..e599efa93 100644
--- a/frontend/src/components/VAudioDetails/VRelatedAudio.vue
+++ b/frontend/src/components/VAudioDetails/VRelatedAudio.vue
@@ -1,12 +1,12 @@
<template>
- <aside :aria-label="$t('audio-details.related-audios')">
+ <aside :aria-label="$t('audioDetails.relatedAudios')">
<h2 class="heading-6 lg:heading-6 mb-6">
- {{ $t("audio-details.related-audios") }}
+ {{ $t("audioDetails.relatedAudios") }}
</h2>
<!-- Negative margin compensates for the `p-4` padding in row layout. -->
<ol
v-if="!fetchState.fetchingError"
- :aria-label="$t('audio-details.related-audios')"
+ :aria-label="$t('audioDetails.relatedAudios')"
class="-mx-2 mb-12 flex flex-col gap-4 md:-mx-4"
>
<li v-for="audio in media" :key="audio.id">
@@ -18,7 +18,7 @@
v-show="fetchState.isFetching"
/>
<p v-show="!!fetchState.fetchingError">
- {{ $t("media-details.related-error") }}
+ {{ $t("mediaDetails.relatedError") }}
</p>
</aside>
</template>
diff --git a/frontend/src/components/VAudioTrack/layouts/VFullLayout.vue b/frontend/src/components/VAudioTrack/layouts/VFullLayout.vue
index 87155146c..600125bfa 100644
--- a/frontend/src/components/VAudioTrack/layouts/VFullLayout.vue
+++ b/frontend/src/components/VAudioTrack/layouts/VFullLayout.vue
@@ -63,7 +63,7 @@
:send-external-link-click-event="false"
@click="sendGetMediaEvent"
>
- {{ $t("audio-details.weblink") }}
+ {{ $t("audioDetails.weblink") }}
</VButton>
</div>
</div>
diff --git a/frontend/src/components/VContentLink/VContentLink.vue b/frontend/src/components/VContentLink/VContentLink.vue
index 47ca0af2d..c7138afce 100644
--- a/frontend/src/components/VContentLink/VContentLink.vue
+++ b/frontend/src/components/VContentLink/VContentLink.vue
@@ -12,7 +12,7 @@
>
<VIcon :name="mediaType" />
<p class="label-bold sm:description-bold mt-1 sm:mt-0">
- {{ $t(`search-type.${mediaType}`) }}
+ {{ $t(`searchType.${mediaType}`) }}
</p>
<span
class="label-regular sm:description-regular text-dark-charcoal-70 group-hover/button:text-dark-charcoal sm:ms-auto"
diff --git a/frontend/src/components/VContentReport/VContentReportButton.vue b/frontend/src/components/VContentReport/VContentReportButton.vue
index 759c21aa6..cfb76653b 100644
--- a/frontend/src/components/VContentReport/VContentReportButton.vue
+++ b/frontend/src/components/VContentReport/VContentReportButton.vue
@@ -5,11 +5,9 @@
has-icon-end
class="label-bold"
>
- <span class="md:hidden">{{
- $t("media-details.content-report.short")
- }}</span>
+ <span class="md:hidden">{{ $t("mediaDetails.contentReport.short") }}</span>
<span class="hidden md:inline">{{
- $t("media-details.content-report.long")
+ $t("mediaDetails.contentReport.long")
}}</span>
<VIcon name="flag" />
</VButton>
diff --git a/frontend/src/components/VContentReport/VContentReportForm.vue b/frontend/src/components/VContentReport/VContentReportForm.vue
index ae6e4fbd1..4f617f9d8 100644
--- a/frontend/src/components/VContentReport/VContentReportForm.vue
+++ b/frontend/src/components/VContentReport/VContentReportForm.vue
@@ -2,10 +2,10 @@
<div id="content-report-form">
<div v-if="status === SENT">
<h2 class="heading-6 mb-4">
- {{ $t("media-details.content-report.success.title") }}
+ {{ $t("mediaDetails.contentReport.success.title") }}
</h2>
<i18n
- path="media-details.content-report.success.note"
+ path="mediaDetails.contentReport.success.note"
class="text-sm"
tag="p"
>
@@ -21,22 +21,22 @@
<div v-else-if="status === FAILED">
<h2 class="heading-6 mb-4">
- {{ $t("media-details.content-report.failure.title") }}
+ {{ $t("mediaDetails.contentReport.failure.title") }}
</h2>
<p class="text-sm">
- {{ $t("media-details.content-report.failure.note") }}
+ {{ $t("mediaDetails.contentReport.failure.note") }}
</p>
</div>
<!-- Main form -->
<div v-else>
<div class="heading-6 mb-4">
- {{ $t("media-details.content-report.long") }}
+ {{ $t("mediaDetails.contentReport.long") }}
</div>
<p class="mb-4 text-sm">
{{
- $t("media-details.content-report.form.disclaimer", {
+ $t("mediaDetails.contentReport.form.disclaimer", {
openverse: "Openverse",
})
}}
@@ -45,7 +45,7 @@
<form class="text-sm" @submit="handleSubmit">
<fieldset class="flex flex-col">
<legend class="label-bold mb-4">
- {{ $t("media-details.content-report.form.question") }}
+ {{ $t("mediaDetails.contentReport.form.question") }}
</legend>
<VRadio
v-for="reason in reasons"
@@ -56,7 +56,7 @@
name="reason"
:value_="reason"
>
- {{ $t(`media-details.content-report.form.${reason}.option`) }}
+ {{ $t(`mediaDetails.contentReport.form.${reason}.option`) }}
</VRadio>
</fieldset>
@@ -84,7 +84,7 @@
class="label-bold"
@click="handleCancel"
>
- {{ $t("media-details.content-report.form.cancel") }}
+ {{ $t("mediaDetails.contentReport.form.cancel") }}
</VButton>
<VButton
@@ -101,7 +101,7 @@
:send-external-link-click-event="false"
@click="handleDmcaSubmit"
>
- {{ $t("media-details.content-report.form.dmca.open") }}
+ {{ $t("mediaDetails.contentReport.form.dmca.open") }}
</VButton>
<VButton
v-else
@@ -112,9 +112,9 @@
variant="filled-dark"
size="medium"
class="label-bold"
- :value="$t('media-details.content-report.form.submit')"
+ :value="$t('mediaDetails.contentReport.form.submit')"
>
- {{ $t("media-details.content-report.form.submit") }}
+ {{ $t("mediaDetails.contentReport.form.submit") }}
</VButton>
</div>
</form>
diff --git a/frontend/src/components/VContentReport/VContentReportPopover.vue b/frontend/src/components/VContentReport/VContentReportPopover.vue
index 6e53b0af7..a3b5e7e9f 100644
--- a/frontend/src/components/VContentReport/VContentReportPopover.vue
+++ b/frontend/src/components/VContentReport/VContentReportPopover.vue
@@ -2,7 +2,7 @@
<VPopover
ref="popoverEl"
:hide-on-click-outside="false"
- :label="$t('media-details.content-report.long').toString()"
+ :label="$t('mediaDetails.contentReport.long').toString()"
placement="bottom-end"
width="w-80"
>
diff --git a/frontend/src/components/VContentReport/VDmcaNotice.vue b/frontend/src/components/VContentReport/VDmcaNotice.vue
index e860c6507..3fe98eafb 100644
--- a/frontend/src/components/VContentReport/VDmcaNotice.vue
+++ b/frontend/src/components/VContentReport/VDmcaNotice.vue
@@ -1,16 +1,16 @@
<template>
<i18n
class="dmca-notice"
- path="media-details.content-report.form.dmca.note"
+ path="mediaDetails.contentReport.form.dmca.note"
tag="p"
>
<template #form>
<VLink
- :aria-label="$t('media-details.content-report.form.dmca.form')"
+ :aria-label="$t('mediaDetails.contentReport.form.dmca.form')"
:href="DMCA_FORM_URL"
class="text-pink hover:underline"
@click="$emit('click')"
- >{{ $t("media-details.content-report.form.dmca.form") }}</VLink
+ >{{ $t("mediaDetails.contentReport.form.dmca.form") }}</VLink
>
</template>
<template #source>
diff --git a/frontend/src/components/VContentReport/VReportDescForm.vue b/frontend/src/components/VContentReport/VReportDescForm.vue
index 6b04ddf08..6af251c87 100644
--- a/frontend/src/components/VContentReport/VReportDescForm.vue
+++ b/frontend/src/components/VContentReport/VReportDescForm.vue
@@ -1,9 +1,9 @@
<template>
<label class="other-form block" for="description">
<span class="flex flex-row items-center justify-between">
- <span>{{ $t("media-details.content-report.form.other.note") }}</span>
+ <span>{{ $t("mediaDetails.contentReport.form.other.note") }}</span>
<span>{{
- $t(`media-details.content-report.form.${reason}.sub-label`)
+ $t(`mediaDetails.contentReport.form.${reason}.subLabel`)
}}</span>
</span>
<textarea
@@ -11,7 +11,7 @@
v-model="text"
class="mt-2 h-20 w-full border border-dark-charcoal-20 p-2 placeholder-dark-charcoal-70"
:placeholder="
- $t(`media-details.content-report.form.${reason}.placeholder`).toString()
+ $t(`mediaDetails.contentReport.form.${reason}.placeholder`).toString()
"
:required="isRequired"
:minlength="isRequired ? 20 : 0"
diff --git a/frontend/src/components/VContentSwitcher/VSearchTypeButton.vue b/frontend/src/components/VContentSwitcher/VSearchTypeButton.vue
index 12aea799d..5edb5519e 100644
--- a/frontend/src/components/VContentSwitcher/VSearchTypeButton.vue
+++ b/frontend/src/components/VContentSwitcher/VSearchTypeButton.vue
@@ -4,7 +4,7 @@
:class="showLabel ? '!px-3' : 'w-12'"
variant="bordered-white"
size="large"
- :aria-label="$t('search-type.select-label', { type: label })"
+ :aria-label="$t('searchType.selectLabel', { type: label })"
v-bind="$attrs"
@click="$emit('click')"
>
diff --git a/frontend/src/components/VContentSwitcher/VSearchTypeItem.vue b/frontend/src/components/VContentSwitcher/VSearchTypeItem.vue
index d811d66ab..b63a87a82 100644
--- a/frontend/src/components/VContentSwitcher/VSearchTypeItem.vue
+++ b/frontend/src/components/VContentSwitcher/VSearchTypeItem.vue
@@ -9,9 +9,9 @@
@click.native="$emit('click', item)"
>
<VIcon :name="icon" class="h-6 w-6" />
- <span>{{ $t(`search-type.${item}`) }}</span>
+ <span>{{ itemLabelKey }}</span>
<VPill v-if="isBeta" class="ms-auto">{{
- $t("search-type.status-beta")
+ $t("searchType.statusBeta")
}}</VPill>
</VItem>
</template>
@@ -21,6 +21,7 @@ import { computed, defineComponent, PropType } from "vue"
import { BETA, contentStatus, SearchType } from "~/constants/media"
import { isSearchTypeSupported, useSearchStore } from "~/stores/search"
+import useSearchType from "~/composables/use-search-type"
import VIcon from "~/components/VIcon/VIcon.vue"
import VItem from "~/components/VItemGroup/VItem.vue"
@@ -76,6 +77,9 @@ export default defineComponent({
},
setup(props) {
const searchStore = useSearchStore()
+ const { getSearchTypeProps } = useSearchType()
+
+ const itemLabelKey = computed(() => getSearchTypeProps(props.item).label)
/**
* Currently, there are no Beta search types, so TS raises an error saying
@@ -100,6 +104,7 @@ export default defineComponent({
component,
href,
isBeta,
+ itemLabelKey,
}
},
})
diff --git a/frontend/src/components/VContentSwitcher/VSearchTypePopover.vue b/frontend/src/components/VContentSwitcher/VSearchTypePopover.vue
index 164793b16..20df3f868 100644
--- a/frontend/src/components/VContentSwitcher/VSearchTypePopover.vue
+++ b/frontend/src/components/VContentSwitcher/VSearchTypePopover.vue
@@ -1,7 +1,7 @@
<template>
<VPopover
ref="contentMenuPopover"
- :label="$t('search-type.label').toString()"
+ :label="$t('searchType.label').toString()"
placement="bottom-end"
width="w-66"
:clippable="true"
diff --git a/frontend/src/components/VContentSwitcher/VSearchTypes.vue b/frontend/src/components/VContentSwitcher/VSearchTypes.vue
index bb89eec95..7ff8ef15a 100644
--- a/frontend/src/components/VContentSwitcher/VSearchTypes.vue
+++ b/frontend/src/components/VContentSwitcher/VSearchTypes.vue
@@ -21,7 +21,7 @@
:class="bordered ? 'ps-0' : 'ps-6'"
class="category pb-4 pt-6"
>
- {{ $t(`search-type.${category.heading}`) }}
+ {{ $t(`searchType.${category.heading}`) }}
</h4>
<VSearchTypeItem
v-for="(item, idx) in category.items"
diff --git a/frontend/src/components/VCopyButton.vue b/frontend/src/components/VCopyButton.vue
index c6547a93c..b99ba9666 100644
--- a/frontend/src/components/VCopyButton.vue
+++ b/frontend/src/components/VCopyButton.vue
@@ -8,10 +8,10 @@
:data-clipboard-target="el"
>
<span v-if="!success">
- {{ $t("media-details.reuse.copy-license.copy-text") }}
+ {{ $t("mediaDetails.reuse.copyLicense.copyText") }}
</span>
<span v-else>
- {{ $t("media-details.reuse.copy-license.copied") }}
+ {{ $t("mediaDetails.reuse.copyLicense.copied") }}
</span>
</VButton>
</template>
diff --git a/frontend/src/components/VFilters/VFilterChecklist.vue b/frontend/src/components/VFilters/VFilterChecklist.vue
index dbae88b13..d4bb94c2a 100644
--- a/frontend/src/components/VFilters/VFilterChecklist.vue
+++ b/frontend/src/components/VFilters/VFilterChecklist.vue
@@ -23,7 +23,7 @@
<VPopover
v-if="isLicense(item.code)"
strategy="fixed"
- :label="$t('browse-page.aria.license-explanation').toString()"
+ :label="$t('browsePage.aria.licenseExplanation').toString()"
:trap-focus="false"
>
<template #trigger="{ a11yProps }">
@@ -31,7 +31,7 @@
v-bind="a11yProps"
variant="transparent-tx"
size="disabled"
- :aria-label="$t('browse-page.aria.license-explanation')"
+ :aria-label="$t('browsePage.aria.licenseExplanation')"
class="h-6 w-6"
>
<VIcon name="help" />
@@ -126,10 +126,10 @@ export default defineComponent({
const getLicenseExplanationCloseAria = (license: License) => {
const elements = getElements(license).filter((icon) => icon !== "cc")
const descriptions = elements
- .map((element) => i18n.t(`browse-page.license-description.${element}`))
+ .map((element) => i18n.t(`browsePage.licenseDescription.${element}`))
.join(" ")
const close = i18n.t("modal.closeNamed", {
- name: i18n.t("browse-page.aria.license-explanation"),
+ name: i18n.t("browsePage.aria.licenseExplanation"),
})
return `${descriptions} - ${close}`
}
diff --git a/frontend/src/components/VFooter/VFooter.vue b/frontend/src/components/VFooter/VFooter.vue
index da24c0308..42adc465f 100644
--- a/frontend/src/components/VFooter/VFooter.vue
+++ b/frontend/src/components/VFooter/VFooter.vue
@@ -77,7 +77,7 @@ export default defineComponent({
},
setup(props) {
const uiStore = useUiStore()
- const { all: allPages, current: currentPage } = usePages(true)
+ const { all: allPages, current: currentPage } = usePages()
const isContentMode = computed(() => props.mode === "content")
diff --git a/frontend/src/components/VHeader/VHeaderDesktop.vue b/frontend/src/components/VHeader/VHeaderDesktop.vue
index ab9cb836a..9a1fe10b9 100644
--- a/frontend/src/components/VHeader/VHeaderDesktop.vue
+++ b/frontend/src/components/VHeader/VHeaderDesktop.vue
@@ -19,7 +19,7 @@
<VSearchBarButton
v-show="searchTerm !== ''"
icon="close-small"
- :label="$t('browse-page.search-form.clear')"
+ :label="$t('browsePage.searchForm.clear')"
inner-area-classes="bg-white hover:bg-dark-charcoal-10"
class="hidden group-focus-within:flex"
@click="clearSearchTerm"
diff --git a/frontend/src/components/VHeader/VHeaderInternal.vue b/frontend/src/components/VHeader/VHeaderInternal.vue
index 20673db37..0b9481e1e 100644
--- a/frontend/src/components/VHeader/VHeaderInternal.vue
+++ b/frontend/src/components/VHeader/VHeaderInternal.vue
@@ -119,7 +119,7 @@ export default defineComponent({
const route = useRoute()
- const { all: allPages, current: currentPage } = usePages(true)
+ const { all: allPages, current: currentPage } = usePages()
const isModalVisible = ref(false)
diff --git a/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue b/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue
index 9be17a5af..66ad22433 100644
--- a/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue
+++ b/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue
@@ -22,14 +22,14 @@
size="medium"
class="me-4 gap-x-2"
><VIcon :name="searchType.searchType" />
- <h2 class="label-regular">{{ $t("search-type.heading") }}</h2></VTab
+ <h2 class="label-regular">{{ $t("searchType.heading") }}</h2></VTab
>
<h2
v-else
class="label-regular relative my-2 me-4 flex h-12 items-center gap-x-2 px-2 after:absolute after:bottom-[-0.625rem] after:right-1/2 after:h-0.5 after:w-full after:translate-x-1/2 after:translate-y-[-50%] after:bg-dark-charcoal"
>
<VIcon :name="searchType.searchType" />
- {{ $t("search-type.heading") }}
+ {{ $t("searchType.heading") }}
</h2>
<VFilterTab
v-if="showFilters"
diff --git a/frontend/src/components/VHeader/VHeaderMobile/VHeaderMobile.vue b/frontend/src/components/VHeader/VHeaderMobile/VHeaderMobile.vue
index ede82a906..9b581041b 100644
--- a/frontend/src/components/VHeader/VHeaderMobile/VHeaderMobile.vue
+++ b/frontend/src/components/VHeader/VHeaderMobile/VHeaderMobile.vue
@@ -68,7 +68,7 @@
<VSearchBarButton
v-show="searchBarIsActive && searchTerm"
icon="close-small"
- :label="$t('browse-page.search-form.clear')"
+ :label="$t('browsePage.searchForm.clear')"
inner-area-classes="bg-white hover:bg-dark-charcoal-10"
@click="clearSearchText"
/>
diff --git a/frontend/src/components/VHeader/VPageLinks.vue b/frontend/src/components/VHeader/VPageLinks.vue
index 7c8c46312..25380d285 100644
--- a/frontend/src/components/VHeader/VPageLinks.vue
+++ b/frontend/src/components/VHeader/VPageLinks.vue
@@ -98,7 +98,7 @@ export default defineComponent({
},
},
setup(props, { emit }) {
- const { all: allPages, current: currentPage } = usePages(true)
+ const { all: allPages, current: currentPage } = usePages()
// The modal isn't closed if we click on the current page link,
// so we need to close it manually.
diff --git a/frontend/src/components/VHeader/meta/VSearchBarButton.stories.mdx b/frontend/src/components/VHeader/meta/VSearchBarButton.stories.mdx
index 40b3e10e7..1c6c897c9 100644
--- a/frontend/src/components/VHeader/meta/VSearchBarButton.stories.mdx
+++ b/frontend/src/components/VHeader/meta/VSearchBarButton.stories.mdx
@@ -99,7 +99,7 @@ export const activeButtonsTemplate = (args) => ({
/>
<VSearchBarButton
icon="close-small"
- :label="$t('browse-page.search-form.clear')"
+ :label="$t('browsePage.searchForm.clear')"
inner-area-classes="bg-white hover:bg-dark-charcoal-10"
/>
</div>`,
diff --git a/frontend/src/components/VImageDetails/VImageDetails.vue b/frontend/src/components/VImageDetails/VImageDetails.vue
index e0bb7a85f..92adaefe8 100644
--- a/frontend/src/components/VImageDetails/VImageDetails.vue
+++ b/frontend/src/components/VImageDetails/VImageDetails.vue
@@ -2,7 +2,7 @@
<section class="w-full">
<div class="mb-6 flex flex-row items-center justify-between">
<h2 class="heading-6 md:heading-5">
- {{ $t("image-details.information.title") }}
+ {{ $t("imageDetails.information.title") }}
</h2>
<VContentReportPopover :media="image" />
</div>
@@ -16,15 +16,15 @@
</ul>
<dl>
<div>
- <dt>{{ $t("image-details.information.type") }}</dt>
+ <dt>{{ $t("imageDetails.information.type") }}</dt>
<dd class="uppercase">{{ imgType }}</dd>
</div>
<div v-if="image.providerName !== image.sourceName">
- <dt>{{ $t("image-details.information.provider") }}</dt>
+ <dt>{{ $t("imageDetails.information.provider") }}</dt>
<dd>{{ image.providerName }}</dd>
</div>
<div>
- <dt>{{ $t("image-details.information.source") }}</dt>
+ <dt>{{ $t("imageDetails.information.source") }}</dt>
<dd>
<VLink :href="image.foreign_landing_url" class="text-pink">{{
image.sourceName
@@ -32,11 +32,11 @@
</dd>
</div>
<div>
- <dt>{{ $t("image-details.information.dimensions") }}</dt>
+ <dt>{{ $t("imageDetails.information.dimensions") }}</dt>
<dd>
<!-- eslint-disable-next-line @intlify/vue-i18n/no-raw-text -->
{{ imageWidth }} &times; {{ imageHeight }}
- {{ $t("image-details.information.pixels") }}
+ {{ $t("imageDetails.information.pixels") }}
</dd>
</div>
</dl>
@@ -80,7 +80,7 @@ export default defineComponent({
}
return props.imageType
}
- return i18n.t("image-details.information.unknown")
+ return i18n.t("imageDetails.information.unknown")
})
return { imgType }
diff --git a/frontend/src/components/VImageDetails/VRelatedImages.vue b/frontend/src/components/VImageDetails/VRelatedImages.vue
index 70ebda2b1..2d8d9d978 100644
--- a/frontend/src/components/VImageDetails/VRelatedImages.vue
+++ b/frontend/src/components/VImageDetails/VRelatedImages.vue
@@ -1,14 +1,14 @@
<template>
<aside>
<h2 class="heading-6 md:heading-5 mb-6">
- {{ $t("image-details.related-images") }}
+ {{ $t("imageDetails.relatedImages") }}
</h2>
<VLoadingIcon v-if="fetchState.isFetching" />
<VImageGrid
:images="media"
:is-single-page="true"
:fetch-state="fetchState"
- :image-grid-label="$t('image-details.related-images').toString()"
+ :image-grid-label="$t('imageDetails.relatedImages').toString()"
/>
</aside>
</template>
diff --git a/frontend/src/components/VLicense/VLicenseElements.vue b/frontend/src/components/VLicense/VLicenseElements.vue
index a1317402f..7edef234b 100644
--- a/frontend/src/components/VLicense/VLicenseElements.vue
+++ b/frontend/src/components/VLicense/VLicenseElements.vue
@@ -14,7 +14,7 @@
element.toUpperCase()
}}</span>
<p class="label-regular" :class="{ 'md:description-regular': !isSmall }">
- {{ $t(`browse-page.license-description.${element}`) }}
+ {{ getLicenseDescription(element) }}
</p>
</li>
</ul>
@@ -22,8 +22,10 @@
<script lang="ts">
import { computed, defineComponent, PropType } from "vue"
+import { camel } from "case"
import type { License } from "~/constants/license"
+import { useI18n } from "~/composables/use-i18n"
import { useUiStore } from "~/stores/ui"
import { getElements } from "~/utils/license"
@@ -50,6 +52,7 @@ export default defineComponent({
},
},
setup(props) {
+ const i18n = useI18n()
const elementNames = computed(() =>
getElements(props.license).filter((icon) => icon !== "cc")
)
@@ -58,10 +61,16 @@ export default defineComponent({
const uiStore = useUiStore()
const isMobile = computed(() => !uiStore.isDesktopLayout)
+ const getLicenseDescription = (element: string) => {
+ return i18n.t(`browsePage.licenseDescription.${camel(element)}`)
+ }
+
return {
elementNames,
isSmall,
isMobile,
+
+ getLicenseDescription,
}
},
})
diff --git a/frontend/src/components/VLoadMore.vue b/frontend/src/components/VLoadMore.vue
index e2e1717a3..60c4c1911 100644
--- a/frontend/src/components/VLoadMore.vue
+++ b/frontend/src/components/VLoadMore.vue
@@ -62,8 +62,8 @@ export default defineComponent({
const buttonLabel = computed(() =>
isFetching.value
- ? i18n.t("browse-page.loading")
- : i18n.t("browse-page.load")
+ ? i18n.t("browsePage.loading")
+ : i18n.t("browsePage.load")
)
return {
diff --git a/frontend/src/components/VMediaInfo/VCopyLicense.vue b/frontend/src/components/VMediaInfo/VCopyLicense.vue
index 5becd9878..a6244acaf 100644
--- a/frontend/src/components/VMediaInfo/VCopyLicense.vue
+++ b/frontend/src/components/VMediaInfo/VCopyLicense.vue
@@ -1,13 +1,13 @@
<template>
<div>
<h3 id="copy-license-title" class="description-bold md:heading-6 mb-4">
- {{ $t("media-details.reuse.copy-license.title") }}
+ {{ $t("mediaDetails.reuse.copyLicense.title") }}
</h3>
<VTabs label="#copy-license-title" :selected-id="tabs[0]">
<template #tabs>
<VTab v-for="tab in tabs" :id="tab" :key="tab">
- {{ $t(`media-details.reuse.copy-license.${tab}`) }}
+ {{ $t(`mediaDetails.reuse.copyLicense.${tab}`) }}
</VTab>
</template>
<VLicenseTabPanel
diff --git a/frontend/src/components/VMediaInfo/VMediaLicense.vue b/frontend/src/components/VMediaInfo/VMediaLicense.vue
index 2f07618a9..c8326fffb 100644
--- a/frontend/src/components/VMediaInfo/VMediaLicense.vue
+++ b/frontend/src/components/VMediaInfo/VMediaLicense.vue
@@ -6,7 +6,7 @@
<template v-if="isLicense">
<i18n
- path="media-details.reuse.attribution"
+ path="mediaDetails.reuse.attribution"
tag="span"
class="mb-2 block text-sm md:mb-4 md:text-base"
>
@@ -26,17 +26,17 @@
<template v-else>
<VLicenseElements :license="license" />
<i18n
- path="media-details.reuse.tool.content"
+ path="mediaDetails.reuse.tool.content"
tag="span"
class="description-bold"
>
<template #link>
<VLink
- :aria-label="$t('media-details.aria.attribution.tool')"
+ :aria-label="$t('mediaDetails.aria.attribution.tool')"
:href="licenseUrl"
:send-external-link-click-event="false"
@click="sendVisitLicensePage"
- >{{ $t("media-details.reuse.tool.link") }}</VLink
+ >{{ $t("mediaDetails.reuse.tool.link") }}</VLink
>
</template>
</i18n>
@@ -80,7 +80,7 @@ export default defineComponent({
const isLicense = computed(() => isLicenseFn(props.license))
const headerText = computed(() => {
const licenseOrTool = isLicense.value ? "license" : "tool"
- return i18n.t(`media-details.reuse.${licenseOrTool}-header`)
+ return i18n.t(`mediaDetails.reuse.${licenseOrTool}Header`)
})
const fullLicenseName = computed(() =>
getFullLicenseName(props.license, props.licenseVersion, i18n)
diff --git a/frontend/src/components/VMediaInfo/VMediaReuse.vue b/frontend/src/components/VMediaInfo/VMediaReuse.vue
index d5dc396fb..0fb118791 100644
--- a/frontend/src/components/VMediaInfo/VMediaReuse.vue
+++ b/frontend/src/components/VMediaInfo/VMediaReuse.vue
@@ -1,14 +1,14 @@
<template>
<section
- :aria-label="$t('media-details.reuse.title').toString()"
+ :aria-label="$t('mediaDetails.reuse.title').toString()"
class="media-reuse"
>
<h2 class="heading-6 md:heading-5 mb-4">
- {{ $t("media-details.reuse.title") }}
+ {{ $t("mediaDetails.reuse.title") }}
</h2>
<p class="description-regular">
{{
- $t("media-details.reuse.description", {
+ $t("mediaDetails.reuse.description", {
media: media.frontendMediaType,
})
}}
diff --git a/frontend/src/components/VScrollButton.vue b/frontend/src/components/VScrollButton.vue
index d6290e9be..b3c806532 100644
--- a/frontend/src/components/VScrollButton.vue
+++ b/frontend/src/components/VScrollButton.vue
@@ -1,6 +1,6 @@
<template>
<button
- :aria-label="$t('browse-page.aria.scroll').toString()"
+ :aria-label="$t('browsePage.aria.scroll').toString()"
type="button"
class="scroll fixed bottom-4 mb-4 ms-auto h-14 w-14 rounded-full bg-pink text-center text-white transition-all duration-100 ease-linear hover:bg-dark-pink hover:shadow-md"
:class="hClass"
diff --git a/frontend/src/components/VSearchResultsGrid/VAllResultsGrid.vue b/frontend/src/components/VSearchResultsGrid/VAllResultsGrid.vue
index 9d5aa0670..b601cb13a 100644
--- a/frontend/src/components/VSearchResultsGrid/VAllResultsGrid.vue
+++ b/frontend/src/components/VSearchResultsGrid/VAllResultsGrid.vue
@@ -32,7 +32,7 @@
? 'lg:grid-cols-3 xl:grid-cols-4 2xl:grid-cols-5'
: 'sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 xl:grid-cols-6'
"
- :aria-label="$t('browse-page.aria.results', { query: searchTerm })"
+ :aria-label="$t('browsePage.aria.results', { query: searchTerm })"
>
<template v-for="item in allMedia">
<VImageCell
@@ -108,8 +108,8 @@ export default defineComponent({
const fetchState = computed(() => mediaStore.fetchState)
const errorHeader = computed(() => {
- const type = i18n.t("browse-page.search-form.audio")
- return i18n.t("browse-page.fetching-error", { type })
+ const type = i18n.t("browsePage.searchForm.audio")
+ return i18n.t("browsePage.fetchingError", { type })
})
const resultCounts = computed(() => mediaStore.resultCountsPerMediaType)
diff --git a/frontend/src/components/VSearchResultsGrid/VImageCell.vue b/frontend/src/components/VSearchResultsGrid/VImageCell.vue
index 2d8ef6ca0..27faf170f 100644
--- a/frontend/src/components/VSearchResultsGrid/VImageCell.vue
+++ b/frontend/src/components/VSearchResultsGrid/VImageCell.vue
@@ -134,7 +134,7 @@ export default defineComponent({
}
const contextSensitiveTitle = computed(() => {
- return i18n.t("browse-page.aria.image-title", {
+ return i18n.t("browsePage.aria.imageTitle", {
title: props.image.title,
})
})
diff --git a/frontend/src/composables/use-i18n-utilities.ts b/frontend/src/composables/use-i18n-utilities.ts
index b69b36b7f..4b7b03478 100644
--- a/frontend/src/composables/use-i18n-utilities.ts
+++ b/frontend/src/composables/use-i18n-utilities.ts
@@ -9,19 +9,19 @@ import { ALL_MEDIA, AUDIO, IMAGE } from "~/constants/media"
*/
const i18nKeys = {
[ALL_MEDIA]: {
- noResult: "browse-page.all-no-results",
- result: "browse-page.all-result-count",
- more: "browse-page.all-result-count-more",
+ noResult: "browsePage.allNoResults",
+ result: "browsePage.allResultCount",
+ more: "browsePage.allResultCountMore",
},
[IMAGE]: {
- noResult: "browse-page.contentLink.image.zero",
- result: "browse-page.contentLink.image.count",
- more: "browse-page.contentLink.image.countMore",
+ noResult: "browsePage.contentLink.image.zero",
+ result: "browsePage.contentLink.image.count",
+ more: "browsePage.contentLink.image.countMore",
},
[AUDIO]: {
- noResult: "browse-page.contentLink.audio.zero",
- result: "browse-page.contentLink.audio.count",
- more: "browse-page.contentLink.audio.countMore",
+ noResult: "browsePage.contentLink.audio.zero",
+ result: "browsePage.contentLink.audio.count",
+ more: "browsePage.contentLink.audio.countMore",
},
}
diff --git a/frontend/src/composables/use-pages.ts b/frontend/src/composables/use-pages.ts
index 660e138f3..e4b4e5d12 100644
--- a/frontend/src/composables/use-pages.ts
+++ b/frontend/src/composables/use-pages.ts
@@ -1,89 +1,51 @@
import { computed } from "vue"
import { useContext, useRoute } from "@nuxtjs/composition-api"
-export default function usePages(isNew = false) {
+export default function usePages() {
const { app } = useContext()
- const pages = isNew
- ? [
- {
- id: "about",
- name: "navigation.about",
- link: app.localePath("/about"),
- },
- {
- id: "licenses",
- name: "navigation.licenses",
- link: "https://creativecommons.org/about/cclicenses/",
- },
- {
- id: "sources",
- name: "navigation.sources",
- link: app.localePath("/sources"),
- },
- {
- id: "search-help",
- name: "navigation.searchHelp",
- link: app.localePath("/search-help"),
- },
- {
- id: "get-involved",
- name: "navigation.getInvolved",
- link: "https://make.wordpress.org/openverse/handbook/",
- },
- {
- id: "api",
- name: "navigation.api",
- link: "https://api.openverse.engineering/v1/",
- },
- {
- id: "privacy",
- name: "navigation.privacy",
- link: app.localePath("/privacy"),
- },
- {
- id: "feedback",
- name: "navigation.feedback",
- link: app.localePath("/feedback"),
- },
- ]
- : [
- {
- id: "about",
- name: "header.about-nav-item",
- link: app.localePath("/about"),
- },
- {
- id: "sources",
- name: "header.source-nav-item",
- link: app.localePath("/sources"),
- },
- {
- id: "licenses",
- name: "header.licenses-nav-item",
- link: "https://creativecommons.org/about/cclicenses/",
- },
- {
- id: "search-help",
- name: "header.search-guide-nav-item",
- link: app.localePath("/search-help"),
- },
- {
- id: "feedback",
- name: "header.feedback-nav-item",
- link: app.localePath("/feedback"),
- },
- {
- id: "api",
- name: "header.api-nav-item",
- link: "https://api.openverse.engineering/v1/",
- },
- {
- id: "privacy",
- name: "navigation.privacy",
- link: app.localePath("/privacy"),
- },
- ]
+ const pages = [
+ {
+ id: "about",
+ name: "navigation.about",
+ link: app.localePath("/about"),
+ },
+ {
+ id: "licenses",
+ name: "navigation.licenses",
+ link: "https://creativecommons.org/about/cclicenses/",
+ },
+ {
+ id: "sources",
+ name: "navigation.sources",
+ link: app.localePath("/sources"),
+ },
+ {
+ id: "search-help",
+ name: "navigation.searchHelp",
+ link: app.localePath("/search-help"),
+ },
+ {
+ id: "get-involved",
+ name: "navigation.getInvolved",
+ link: "https://make.wordpress.org/openverse/handbook/",
+ },
+ {
+ id: "api",
+ name: "navigation.api",
+ link: "https://api.openverse.engineering/v1/",
+ },
+ {
+ id: "privacy",
+ name: "navigation.privacy",
+ link: app.localePath("/privacy"),
+ },
+ {
+ id: "feedback",
+ name: "navigation.feedback",
+ link: app.localePath("/feedback"),
+ },
+ ]
const route = useRoute()
/**
diff --git a/frontend/src/composables/use-search-type.ts b/frontend/src/composables/use-search-type.ts
index ff787601a..e2f8560fd 100644
--- a/frontend/src/composables/use-search-type.ts
+++ b/frontend/src/composables/use-search-type.ts
@@ -29,11 +29,11 @@ const icons = {
} as const
const labels = {
- [ALL_MEDIA]: "search-type.all",
- [IMAGE]: "search-type.image",
- [AUDIO]: "search-type.audio",
- [VIDEO]: "search-type.video",
- [MODEL_3D]: "search-type.model-3d",
+ [ALL_MEDIA]: "searchType.all",
+ [IMAGE]: "searchType.image",
+ [AUDIO]: "searchType.audio",
+ [VIDEO]: "searchType.video",
+ [MODEL_3D]: "searchType.model3d",
} as const
export default function useSearchType() {
diff --git a/frontend/src/locales/scripts/en.json5 b/frontend/src/locales/scripts/en.json5
index e286f2484..c94cdcf57 100644
--- a/frontend/src/locales/scripts/en.json5
+++ b/frontend/src/locales/scripts/en.json5
@@ -18,7 +18,7 @@
},
aria: {
search: "search",
- "search-type": "search type",
+ searchType: "search type",
},
},
notification: {
@@ -35,13 +35,6 @@
},
header: {
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",
@@ -85,7 +78,7 @@
content: "{openverse} is a tool that allows openly licensed and public domain works to be discovered and used by everyone.",
},
collection: {
- content: "{openverse} searches across more than 300 million images from open APIs and the {common-crawl} dataset. It goes beyond simple search to aggregate results across multiple public repositories into a single catalog, and facilitates reuse through features like machine-generated tags and one-click attribution.",
+ content: "{openverse} searches across more than 300 million images from open APIs and the {commonCrawl} dataset. It goes beyond simple search to aggregate results across multiple public repositories into a single catalog, and facilitates reuse through features like machine-generated tags and one-click attribution.",
},
planning: {
content: "Currently {openverse} only searches images and audio, with search for video provided through External Sources. But we plan to add additional media types such as open texts and 3D models, with the ultimate goal of providing access to the estimated 2.5 billion CC licensed and public domain works on the web. All of our code is open source ({frontend}, {api}, {catalog}) and we {community}. You can see what {working}.",
@@ -96,7 +89,7 @@
working: "we’re currently working on",
},
transfer: {
- content: "{openverse} is the successor to CC Search which was launched by Creative Commons in 2019, after its migration to WordPress in 2021. You can read more about this transition in the official announcements from {creative-commons} and {wordpress}. We remain committed to our goal of tackling discoverability and accessibility of open access media.",
+ content: "{openverse} is the successor to CC Search which was launched by Creative Commons in 2019, after its migration to WordPress in 2021. You can read more about this transition in the official announcements from {creativeCommons} and {wordpress}. We remain committed to our goal of tackling discoverability and accessibility of open access media.",
},
declaration: {
content: "Please note that {openverse} does not verify whether the images are properly CC licensed, or whether the attribution and other licensing information we have aggregated is accurate or complete. Please independently verify the licensing status and attribution information before reusing the content. For more details, read the {terms}.",
@@ -105,30 +98,30 @@
},
sources: {
title: "Sources",
- detail: "Clicking on a {single-name} allows you to browse and filter items within that source.",
- "single-name": "Source",
+ detail: "Clicking on a {singleName} allows you to browse and filter items within that source.",
+ singleName: "Source",
providers: {
source: "Source",
domain: "Domain",
item: "Total items",
},
- "cc-content": {
+ ccContent: {
where: "Where does the content on {openverse} come from?",
content: "There is openly licensed content hosted on millions of domains across the breadth of the internet. Our team systematically identifies providers hosting CC-licensed content. If it’s a good fit, we index that content and make it discoverable through {openverse}.",
provider: "Some providers have multiple different groupings of content within them. {flickr} has sources ranging from NASA to personal photography. The {smithsonian} comprises a dozen diverse collections. Wikimedia Commons runs the gamut in terms of content, and is used by several Galleries, Libraries, Archives, and Museums highlighting some or all of their digitized collections.",
- europeana: "{openverse} is especially grateful for the work of {link}, an organization that works to digitize and make discoverable cultural heritage works across Europe. {openverse} is able to index hundreds of valuable sources through a single integration with the {link-api}.",
- "europeana-api": "Europeana API",
+ europeana: "{openverse} is especially grateful for the work of {link}, an organization that works to digitize and make discoverable cultural heritage works across Europe. {openverse} is able to index hundreds of valuable sources through a single integration with the {linkApi}.",
+ europeanaApi: "Europeana API",
smithsonian: "Smithsonian Institute",
},
- "new-content": {
+ newContent: {
next: "How do we decide what sources to add next?",
integrate: "We have a never ending list of possible sources to research prior to integration. We ask ourselves questions like:",
impact: " What is the impact or importance of this source to our users? If it exists within a provider like Wikimedia Commons, is it valuable for our users to be able to filter by this source directly?",
reuse: "Is licensing and attribution information clearly displayed to enable confident reuse?",
- "total-items": "How many new total items or new types of items can we bring to our users through this integration? Some sources are direct integrations, while others may be a source within a source.",
+ totalItems: "How many new total items or new types of items can we bring to our users through this integration? Some sources are direct integrations, while others may be a source within a source.",
},
suggestions: "We appreciate suggestions for new sources from our community of users.",
- "issue-button": "Suggest a new source",
+ issueButton: "Suggest a new source",
aria: {
table: "sources table",
},
@@ -137,7 +130,7 @@
audio: "Audio Sources",
},
},
- "external-sources-page": {
+ externalSourcesPage: {
title: "External Sources",
intro: "{openverse} is built on top of a catalog that indexes CC-licensed and public domain content from selected sources. Learn more about our {link}.",
link: "sources here",
@@ -153,9 +146,9 @@
content: "For many years, Creative Commons has offered its users a dedicated search portal for searching platforms that have CC licensing filters built in. In fact, this is still maintained at {old}.",
old: "oldsearch.creativecommons.org",
new: 'For users of the legacy CC Meta Search site, the "External Sources" feature on {openverse} will look familiar. The goal was to ensure that the functionality is not lost, but is updated and embedded within our new search engine for openly licensed content. In addition, the "External Sources" feature builds on this functionality, allowing us to quickly add new external sources as we discover them, and support new content types in the future, as we expand.',
- "aria-label": "feedback",
- "feedback-suggestions": "We hope you enjoy, and if you have suggestions for improvement, leave us {feedback}.",
- "feedback-link": "feedback",
+ ariaLabel: "feedback",
+ feedbackSuggestions: "We hope you enjoy, and if you have suggestions for improvement, leave us {feedback}.",
+ feedbackLink: "feedback",
},
relationships: "This functionality also allows us to start conversations and build relationships with sources that may like to be included in {openverse} in the future. Finally, we can also offer external sources of media types we do not include in {openverse} yet, but plan to.",
explanation: "You can find links to external sources at the bottom of every {openverse} search results page; on pages for searches which return no results; and on pages for media types we do not yet support but intend to.",
@@ -177,13 +170,13 @@
chat: "Making WordPress Chat",
},
},
- "search-guide": {
+ searchGuide: {
title: "{openverse} Syntax Guide",
intro: "When you search, you can enter special symbols or words to your search term to make your search results more precise.",
exact: {
title: "Search for an exact match",
- "aria-label": "quote unquote Claude Monet",
- "claude-monet": '"Claude Monet"',
+ ariaLabel: "quote unquote Claude Monet",
+ claudeMonet: '"Claude Monet"',
content: "Put a word or phrase inside quotes. For example, {link}.",
},
combine: {
@@ -195,7 +188,7 @@
prefix: "{symbol} at the end of a term signifies a prefix query",
precedence: "{symbol} signify precedence",
fuzziness: "{symbol} after a word signifies edit distance (fuzziness)",
- "aria-labels": {
+ ariaLabels: {
fuzziness: "tilde N",
open: "open parenthesis",
close: "close parenthesis",
@@ -204,46 +197,47 @@
and: "plus symbol",
or: "vertical bar symbol",
prefix: "asterisk symbol",
- "vertical-bar": "vertical bar symbol",
+ verticalBar: "vertical bar symbol",
+ precedence: "parentheses",
},
},
example: {
and: {
description: "Example: {link}{br} This will search for images related to both dog and cat.",
- "aria-label": "dog plus cat",
+ ariaLabel: "dog plus cat",
example: "dog+cat",
},
or: {
description: "Example: {link}{br} This will search for images related to dog or cat, but not necessarily both.",
- "aria-label": "dog vertical bar cat",
+ ariaLabel: "dog vertical bar cat",
example: "dog|cat",
},
negate: {
description: "You can use the {operator} to exclude a search term from the results.",
- "operator-name": "operator (signifies NOT)",
- "operator-aria-label": "minus operator (signifies NOT)",
- "aria-label": "dog minus pug",
+ operatorName: "operator (signifies NOT)",
+ operatorAriaLabel: "minus operator (signifies NOT)",
+ ariaLabel: "dog minus pug",
example: "dog -pug",
content: "Example: {link}{br} This will search for images related to dog but won't include results related to 'pug'",
},
prefix: {
- description: "You can use the {operator-name} to mark a prefix term. This will match anything after the *.",
- "operator-name": "operator (wildcard)",
- "operator-aria-label": "star operator (wildcard)",
- "aria-label": "net star symbol",
+ description: "You can use the {operatorName} to mark a prefix term. This will match anything after the *.",
+ operatorName: "operator (wildcard)",
+ operatorAriaLabel: "star operator (wildcard)",
+ ariaLabel: "net star symbol",
example: "net*",
content: "Example: {link}{br} This will search for images matching anything with 'net'. This might include 'network', 'Netflix', 'Netherlands', etc.",
},
precedence: {
description: "You can use parentheses {highlight} to specify precedence of terms or combine more complex queries.",
- "aria-label": "dogs plus open parenthesis corgis vertical bar labrador close parenthesis",
+ ariaLabel: "dogs plus open parenthesis corgis vertical bar labrador close parenthesis",
example: "dogs + (corgis | labrador)",
content: "Example: {link}{br} This will search for images that match dogs that are either corgis or labrador.",
},
fuzziness: {
description: "You can use {highlight} to specify some fuzzy logic to the term according to the {link} — the number of one character changes that need to be made to one string to make it the same as another string.",
- "link-text": "Levenshtein Edit Distance",
- "aria-label": "theatre tilde 1",
+ linkText: "Levenshtein Edit Distance",
+ ariaLabel: "theatre tilde 1",
example: "theatre~1",
content: "Example: {link}{br} This will search for images that match strings close to the term 'theatre' with a difference of one character. Results might include terms with different spellings like 'theater'.",
},
@@ -251,12 +245,12 @@
},
feedback: {
title: "Feedback",
- intro: "Thank you for using {openverse}! We welcome your ideas for improving the tool below. To provide regular feedback, join the {slack} channel in the {making-wordpress} Slack workspace.",
+ intro: "Thank you for using {openverse}! We welcome your ideas for improving the tool below. To provide regular feedback, join the {slack} channel in the {makingWordpress} Slack workspace.",
improve: "Help us Improve",
report: "Report a Bug",
loading: "Loading...",
aria: {
- "cc-usability": "slack cc-usability channel",
+ ccUsability: "slack cc-usability channel",
improve: "help us improve form",
report: "report a bug form",
},
@@ -378,10 +372,10 @@
show: "Show results",
categoryAria: "filters list for {categoryName} category",
},
- "browse-page": {
- "all-no-results": "No results",
- "all-result-count": "{localeCount} result|{localeCount} results",
- "all-result-count-more": "Over {localeCount} results",
+ browsePage: {
+ allNoResults: "No results",
+ allResultCount: "{localeCount} result|{localeCount} results",
+ allResultCountMore: "Over {localeCount} results",
contentLink: {
image: {
zero: "No images found for {query}.",
@@ -396,25 +390,25 @@
},
load: "Load more results",
loading: "Loading...",
- "fetching-error": "Error fetching {type}:",
- "search-rating": {
+ fetchingError: "Error fetching {type}:",
+ searchRating: {
content: "Are these results relevant?",
yes: "Yes",
no: "No",
- "feedback-thanks": "Thank you for the feedback!",
+ feedbackThanks: "Thank you for the feedback!",
},
- "search-form": {
+ searchForm: {
placeholder: "Search all {type}",
image: "images",
audio: "audio",
video: "videos",
- "model-3d": "3D Models",
+ model3d: "3D Models",
all: "content",
- "collection-placeholder": "Search this collection",
+ collectionPlaceholder: "Search this collection",
button: "Search",
clear: "Clear",
},
- "license-description": {
+ licenseDescription: {
title: "License CC",
by: "Credit the creator.",
nc: "Noncommercial uses only.",
@@ -422,7 +416,7 @@
sa: "Share adaptations under the same terms.",
zero: "This work has been marked as dedicated to the public domain.",
pd: "This work is marked as being in the public domain.",
- "sampling-plus": "Samples, mash-ups, creative transformations permitted.",
+ samplingPlus: "Samples, mash-ups, creative transformations permitted.",
},
aria: {
close: "close",
@@ -432,20 +426,20 @@
yes: "relevant result? answer: yes",
no: "relevant result? answer: no",
},
- "remove-filter": "remove filter",
- "license-explanation": "license explanation",
+ removeFilter: "remove filter",
+ licenseExplanation: "license explanation",
creator: "search by creator",
- "image-title": "Image: {title}",
- "audio-title": "Audio: {title}",
+ imageTitle: "Image: {title}",
+ audioTitle: "Audio: {title}",
results: "Search results for {query}.",
},
},
- "media-details": {
+ mediaDetails: {
reuse: {
title: "How to use",
description: "Visit the {media}'s website to download and use it. Make sure to credit the creator by showing the attribution information where you are sharing your work.",
- "license-header": "License",
- "tool-header": "Public Domain",
+ licenseHeader: "License",
+ toolHeader: "Public Domain",
audio: "Audio",
image: "Image",
tool: {
@@ -453,40 +447,40 @@
link: "here",
},
credit: {
- "generic-title": "This work",
- "actual-title": '"{title}"',
- text: "{title} {creator} {marked-licensed} {license}. {view-legal}",
- "creator-text": "by {creator-name}",
+ genericTitle: "This work",
+ actualTitle: '"{title}"',
+ text: "{title} {creator} {markedLicensed} {license}. {viewLegal}",
+ creatorText: "by {creatorName}",
marked: "is marked with",
licensed: "is licensed under",
- "view-legal-text": "To view {terms-copy}, visit {url}.",
- "terms-text": "the terms",
- "copy-text": "a copy of this license",
+ viewLegalText: "To view {termsCopy}, visit {url}.",
+ termsText: "the terms",
+ copyText: "a copy of this license",
},
- "copy-license": {
+ copyLicense: {
title: "Credit the creator",
rich: "Rich Text",
html: "HTML",
plain: "Plain text",
- "copy-text": "Copy text",
+ copyText: "Copy text",
copied: "Copied!",
},
attribution: "This image was marked with a {link} license:",
},
- "provider-label": "Provider",
- "source-label": "Source",
+ providerLabel: "Provider",
+ sourceLabel: "Source",
loading: "Loading...",
- "related-error": "Error fetching related media",
+ relatedError: "Error fetching related media",
aria: {
attribution: {
license: "read more about the license",
tool: "read more about the tool",
},
- "creator-url": "author {name}",
+ creatorUrl: "author {name}",
},
- "image-info": "Image information",
- "audio-info": "Audio information",
- "content-report": {
+ imageInfo: "Image information",
+ audioInfo: "Audio information",
+ contentReport: {
short: "Report",
long: "Report this content",
form: {
@@ -500,13 +494,13 @@
},
mature: {
option: "Contains mature content",
- "sub-label": "Optional",
+ subLabel: "Optional",
placeholder: "Optionally, provide a description.",
},
other: {
option: "Other",
note: "Describe the issue.",
- "sub-label": "Required",
+ subLabel: "Required",
placeholder: "Please enter at least 20 characters.",
},
submit: "Report",
@@ -525,7 +519,7 @@
singleResult: {
back: "Back to results",
},
- "image-details": {
+ imageDetails: {
creator: "by {name}",
weblink: "Get this image",
information: {
@@ -537,18 +531,18 @@
pixels: "pixels",
unknown: "Unknown",
},
- "related-images": "Related images",
+ relatedImages: "Related images",
aria: {
- "creator-url": "Author {creator}",
+ creatorUrl: "Author {creator}",
},
},
- "audio-details": {
- "genre-label": "Genre",
- "related-audios": "Related audio",
+ audioDetails: {
+ genreLabel: "Genre",
+ relatedAudios: "Related audio",
table: {
album: "Album",
category: "Type",
- "sample-rate": "Sample Rate",
+ sampleRate: "Sample Rate",
filetype: "Format",
provider: "Provider",
source: "Source",
@@ -686,19 +680,19 @@
serverTimeout: {
heading: "Whoops, it looks like that request took too long to complete. Please try again.",
},
- "search-type": {
+ searchType: {
image: "Images",
audio: "Audio",
all: "All content",
video: "Videos",
- "model-3d": "3D Models",
+ model3d: "3D Models",
label: "Type of content to search",
heading: "Content type",
additional: "Coming soon",
- "status-beta": "Beta",
- "see-image": "See all images",
- "see-audio": "See all audio",
- "select-label": "Select a content type: {type}",
+ statusBeta: "Beta",
+ seeImage: "See all images",
+ seeAudio: "See all audio",
+ selectLabel: "Select a content type: {type}",
},
skipToContent: "Skip to content",
prefPage: {
@@ -712,7 +706,7 @@
features: {
analytics: "Record custom events and page views for analytics.",
},
- "non-switchable": {
+ nonSwitchable: {
title: "Non-switchable features",
desc: "You cannot modify the status of these features.",
},
@@ -720,12 +714,12 @@
title: "Switchable features",
desc: "You can toggle these features on or off as you like and your preferences will be saved in a cookie.",
},
- "store-state": "Store state",
- "content-filtering": "Content filtering",
- explanation: "Shown because {feat-name} is {feat-state}",
+ storeState: "Store state",
+ contentFiltering: "Content filtering",
+ explanation: "Shown because {featName} is {featState}",
},
sketchfabIframeTitle: "{sketchfab} viewer",
- "flag-status": {
+ flagStatus: {
nonexistent: "Nonexistent",
on: "On",
off: "Off",
diff --git a/frontend/src/locales/scripts/jed1x-json-to-json.js b/frontend/src/locales/scripts/jed1x-json-to-json.js
index 495dc035d..92d1f1020 100644
--- a/frontend/src/locales/scripts/jed1x-json-to-json.js
+++ b/frontend/src/locales/scripts/jed1x-json-to-json.js
@@ -8,19 +8,19 @@ const { setToValue } = require("./utils")
* if strings are for plural forms, join them with the pipe character.
* Go from this:
* {
- * "browse-page.load\u0004Load more results": [
+ * "browsePage.load\u0004Load more results": [
* "Загрузить ещё результаты"
* ],
- * "browse-page.all-result-count-more\u0004Over ###localeCount### results": [
+ * "browsePage.allResultCountMore\u0004Over ###localeCount### results": [
* "Более ###localeCount### результата",
* "Более ###localeCount### результатов",
* "Более ###localeCount### результатов"
* ]
- * "browse-page.search-form.button\u0004Search": [],
+ * "browsePage.searchForm.button\u0004Search": [],
* }
* To:
* {
- * "browse-page: {
+ * "browsePage: {
* "load": "Загрузить ещё результаты"
* "all-result-count-more": "Более ###localeCount### результата|Более ###localeCount### результатов|Более ###localeCount### результатов",
* }
diff --git a/frontend/src/locales/scripts/parse-vue-files.js b/frontend/src/locales/scripts/parse-vue-files.js
index 299294554..191222d01 100644
--- a/frontend/src/locales/scripts/parse-vue-files.js
+++ b/frontend/src/locales/scripts/parse-vue-files.js
@@ -106,7 +106,7 @@ function parseVueFiles(vueFilesPath) {
* Parses all vue files found in the glob paths, and returns an
* array of objects with i18n path, line number, and vue file path.
* {
- path: 'browse-page.aria.close',
+ path: 'browsePage.aria.close',
line: 13,
file: '/components/AppModal.vue'
},
diff --git a/frontend/src/pages/about.vue b/frontend/src/pages/about.vue
index a69cdd1d4..1636de2f9 100644
--- a/frontend/src/pages/about.vue
+++ b/frontend/src/pages/about.vue
@@ -9,7 +9,7 @@
<i18n path="about.collection.content" tag="p">
<template #openverse>Openverse</template>
- <template #common-crawl>
+ <template #commonCrawl>
<VLink href="https://commoncrawl.org/">Common Crawl</VLink>
</template>
</i18n>
@@ -45,7 +45,7 @@
<i18n path="about.transfer.content" tag="p">
<template #openverse>Openverse</template>
- <template #creative-commons>
+ <template #creativeCommons>
<VLink
href="https://creativecommons.org/2021/05/03/cc-search-to-join-wordpress/"
>Creative Commons</VLink
@@ -68,65 +68,63 @@
</i18n>
<h2 id="external-sources">
- {{ $t("external-sources-page.title") }}
+ {{ $t("externalSourcesPage.title") }}
</h2>
- <i18n path="external-sources-page.intro" tag="p">
+ <i18n path="externalSourcesPage.intro" tag="p">
<template #openverse>Openverse</template>
<template #link>
- <VLink href="/sources">{{ $t("external-sources-page.link") }}</VLink>
+ <VLink href="/sources">{{ $t("externalSourcesPage.link") }}</VLink>
</template>
</i18n>
<p>
- {{ $t("external-sources-page.license", { openverse: "Openverse" }) }}
+ {{ $t("externalSourcesPage.license", { openverse: "Openverse" }) }}
</p>
<p>
- {{ $t("external-sources-page.explanation", { openverse: "Openverse" }) }}
+ {{ $t("externalSourcesPage.explanation", { openverse: "Openverse" }) }}
</p>
<p>
- {{
- $t("external-sources-page.relationships", { openverse: "Openverse" })
- }}
+ {{ $t("externalSourcesPage.relationships", { openverse: "Openverse" }) }}
</p>
<h2>
- {{ $t("external-sources-page.new.title") }}
+ {{ $t("externalSourcesPage.new.title") }}
</h2>
- <i18n path="external-sources-page.new.content" tag="p">
+ <i18n path="externalSourcesPage.new.content" tag="p">
<template #issue>
<VLink
aria-label="issue"
href="https://github.com/WordPress/openverse/issues"
- >{{ $t("external-sources-page.new.issue") }}</VLink
+ >{{ $t("externalSourcesPage.new.issue") }}</VLink
>
</template>
<template #email>
<VLink aria-label="email" href="mailto:[email protected]">{{
- $t("external-sources-page.new.email")
+ $t("externalSourcesPage.new.email")
}}</VLink>
</template>
</i18n>
<h2>
- {{ $t("external-sources-page.why.title") }}
+ {{ $t("externalSourcesPage.why.title") }}
</h2>
- <i18n path="external-sources-page.why.content" tag="p">
+ <i18n path="externalSourcesPage.why.content" tag="p">
<template #old>
<VLink
aria-label="email"
href="https://oldsearch.creativecommons.org"
- >{{ $t("external-sources-page.why.old") }}</VLink
+ >{{ $t("externalSourcesPage.why.old") }}</VLink
>
</template>
</i18n>
<p>
- {{ $t("external-sources-page.why.new", { openverse: "Openverse" }) }}
+ {{ $t("externalSourcesPage.why.new", { openverse: "Openverse" }) }}
</p>
- <i18n path="external-sources-page.why.feedback-suggestions" tag="p">
+ <i18n path="externalSourcesPage.why.feedbackSuggestions" tag="p">
<template #feedback>
<VLink
- :aria-label="$t('external-sources-page.why.aria-label')"
+ :aria-label="$t('externalSourcesPage.why.ariaLabel')"
href="/feedback"
- >{{ $t("external-sources-page.why.feedback-link") }}</VLink
+ >{{ $t("externalSourcesPage.why.feedbackLink") }}</VLink
>
</template>
</i18n>
diff --git a/frontend/src/pages/external-sources.vue b/frontend/src/pages/external-sources.vue
index 840ba866f..6924ea599 100644
--- a/frontend/src/pages/external-sources.vue
+++ b/frontend/src/pages/external-sources.vue
@@ -1,63 +1,61 @@
<template>
<VContentPage>
<h1>
- {{ $t("external-sources-page.title") }}
+ {{ $t("externalSourcesPage.title") }}
</h1>
- <i18n path="external-sources-page.intro" tag="p">
+ <i18n path="externalSourcesPage.intro" tag="p">
<template #openverse>Openverse</template>
<template #link>
- <VLink href="/sources">{{ $t("external-sources-page.link") }}</VLink>
+ <VLink href="/sources">{{ $t("externalSourcesPage.link") }}</VLink>
</template>
</i18n>
- <p>{{ $t("external-sources-page.license", { openverse: "Openverse" }) }}</p>
+ <p>{{ $t("externalSourcesPage.license", { openverse: "Openverse" }) }}</p>
<p>
- {{ $t("external-sources-page.explanation", { openverse: "Openverse" }) }}
+ {{ $t("externalSourcesPage.explanation", { openverse: "Openverse" }) }}
</p>
<p>
- {{
- $t("external-sources-page.relationships", { openverse: "Openverse" })
- }}
+ {{ $t("externalSourcesPage.relationships", { openverse: "Openverse" }) }}
</p>
<h2>
- {{ $t("external-sources-page.new.title") }}
+ {{ $t("externalSourcesPage.new.title") }}
</h2>
- <i18n path="external-sources-page.new.content" tag="p">
+ <i18n path="externalSourcesPage.new.content" tag="p">
<template #issue>
<VLink
aria-label="issue"
href="https://github.com/WordPress/openverse/issues/new?assignees=&labels=%F0%9F%9A%A6+status%3A+awaiting+triage%2C%F0%9F%A7%B9+status%3A+ticket+work+required%2C%E2%98%81%EF%B8%8F+provider%3A+any&template=new_source_suggestion.yml&title=%3CSource+name+here%3E"
- >{{ $t("external-sources-page.new.issue") }}</VLink
+ >{{ $t("externalSourcesPage.new.issue") }}</VLink
>
</template>
<template #email>
<VLink aria-label="email" href="mailto:[email protected]">{{
- $t("external-sources-page.new.email")
+ $t("externalSourcesPage.new.email")
}}</VLink>
</template>
</i18n>
<h2>
- {{ $t("external-sources-page.why.title") }}
+ {{ $t("externalSourcesPage.why.title") }}
</h2>
- <i18n path="external-sources-page.why.content" tag="p">
+ <i18n path="externalSourcesPage.why.content" tag="p">
<template #old>
<VLink
aria-label="email"
href="https://oldsearch.creativecommons.org"
- >{{ $t("external-sources-page.why.old") }}</VLink
+ >{{ $t("externalSourcesPage.why.old") }}</VLink
>
</template>
</i18n>
<p>
- {{ $t("external-sources-page.why.new", { openverse: "Openverse" }) }}
+ {{ $t("externalSourcesPage.why.new", { openverse: "Openverse" }) }}
</p>
- <i18n path="external-sources-page.why.feedback-suggestions" tag="p">
+ <i18n path="externalSourcesPage.why.feedbackSuggestions" tag="p">
<template #feedback>
<VLink
- :aria-label="$t('external-sources-page.why.aria-label')"
+ :aria-label="$t('externalSourcesPage.why.ariaLabel')"
href="/feedback"
- >{{ $t("external-sources-page.why.feedback-link") }}</VLink
+ >{{ $t("externalSourcesPage.why.feedbackLink") }}</VLink
>
</template>
</i18n>
@@ -79,7 +77,7 @@ export default defineComponent({
const i18n = useI18n()
useMeta({
- title: `${i18n.t("external-sources-page.title")} | Openverse`,
+ title: `${i18n.t("externalSourcesPage.title")} | Openverse`,
meta: [{ hid: "robots", name: "robots", content: "all" }],
})
},
diff --git a/frontend/src/pages/feedback.vue b/frontend/src/pages/feedback.vue
index 09f9f7889..b232d092e 100644
--- a/frontend/src/pages/feedback.vue
+++ b/frontend/src/pages/feedback.vue
@@ -11,7 +11,7 @@
>#openverse</VLink
>
</template>
- <template #making-wordpress>
+ <template #makingWordpress>
<VLink href="https://make.wordpress.org/chat/">Making WordPress</VLink>
</template>
<!-- eslint-enable @intlify/vue-i18n/no-raw-text -->
diff --git a/frontend/src/pages/image/_id/index.vue b/frontend/src/pages/image/_id/index.vue
index ad3d5fe78..f31ad6e17 100644
--- a/frontend/src/pages/image/_id/index.vue
+++ b/frontend/src/pages/image/_id/index.vue
@@ -41,18 +41,18 @@
:send-external-link-click-event="false"
@click="sendGetMediaEvent"
>
- {{ $t("image-details.weblink") }}
+ {{ $t("imageDetails.weblink") }}
</VButton>
<div class="description-bold flex flex-1 flex-col justify-center">
<h1 class="description-bold md:heading-5 line-clamp-2">
{{ image.title }}
</h1>
- <i18n v-if="image.creator" path="image-details.creator" tag="span">
+ <i18n v-if="image.creator" path="imageDetails.creator" tag="span">
<template #name>
<VLink
v-if="image.creator_url"
:aria-label="
- $t('media-details.aria.creator-url', {
+ $t('mediaDetails.aria.creatorUrl', {
creator: image.creator,
})
"
diff --git a/frontend/src/pages/preferences.vue b/frontend/src/pages/preferences.vue
index e83c72bc7..06c37ae87 100644
--- a/frontend/src/pages/preferences.vue
+++ b/frontend/src/pages/preferences.vue
@@ -1,6 +1,6 @@
<template>
<VContentPage>
- <h1>{{ $t("pref-page.title") }}</h1>
+ <h1>{{ $t("prefPage.title") }}</h1>
<!-- TODO: Extract this to preferences modal. -->
<!--
@@ -13,11 +13,11 @@
class="not-prose border-b border-dark-charcoal-20 py-6 last-of-type:border-b-0"
>
<h2 class="label-bold mb-2">
- {{ $t(`pref-page.groups.${group.title}.title`) }}
+ {{ $t(`prefPage.groups.${group.title}.title`) }}
</h2>
<p class="label-regular mb-4">
{{
- $t(`pref-page.groups.${group.title}.desc`, { openverse: "Openverse" })
+ $t(`prefPage.groups.${group.title}.desc`, { openverse: "Openverse" })
}}
</p>
<ul>
@@ -33,7 +33,7 @@
:checked="featureState(name) === ON"
is-switch
@change="handleChange"
- >{{ $t(`pref-page.features.${name}`) }}</VCheckbox
+ >{{ $t(`prefPage.features.${name}`) }}</VCheckbox
>
</li>
</ul>
@@ -45,10 +45,10 @@
class="not-prose border-b border-dark-charcoal-20 py-6 last-of-type:border-b-0"
>
<h2 class="label-bold mb-2">
- {{ $t(`pref-page.${isSwitchable ? "" : "non-"}switchable.title`) }}
+ {{ $t(`prefPage.${isSwitchable ? "s" : "nonS"}witchable.title`) }}
</h2>
<p class="label-regular mb-4">
- {{ $t(`pref-page.${isSwitchable ? "" : "non-"}switchable.desc`) }}
+ {{ $t(`prefPage.${isSwitchable ? "s" : "nonS"}witchable.desc`) }}
</p>
<ul>
<template v-for="(feature, name) in flags">
@@ -76,7 +76,7 @@
</ul>
</div>
- <h2>{{ $t("pref-page.store-state") }}</h2>
+ <h2>{{ $t("prefPage.store-state") }}</h2>
<pre><code>{{ flags }}</code></pre>
</VContentPage>
</template>
diff --git a/frontend/src/pages/search-help.vue b/frontend/src/pages/search-help.vue
index b15121ddc..6ba1fdf24 100644
--- a/frontend/src/pages/search-help.vue
+++ b/frontend/src/pages/search-help.vue
@@ -1,34 +1,34 @@
<template>
<VContentPage>
- <h1>{{ $t("search-guide.title", { openverse: "Openverse" }) }}</h1>
- <p>{{ $t("search-guide.intro") }}</p>
+ <h1>{{ $t("searchGuide.title", { openverse: "Openverse" }) }}</h1>
+ <p>{{ $t("searchGuide.intro") }}</p>
- <h2>{{ $t("search-guide.exact.title") }}</h2>
- <i18n path="search-guide.exact.content" tag="p">
+ <h2>{{ $t("searchGuide.exact.title") }}</h2>
+ <i18n path="searchGuide.exact.content" tag="p">
<template #link>
<VLink
- :aria-label="$t('search-guide.exact.aria-label')"
+ :aria-label="$t('searchGuide.exact.ariaLabel')"
:href="pathFromQuery('&quot;Claude Monet&quot;')"
>
- <em>{{ $t("search-guide.exact.claude-monet") }}</em>
+ <em>{{ $t("searchGuide.exact.claudeMonet") }}</em>
</VLink>
</template>
</i18n>
- <h2>{{ $t("search-guide.combine.title") }}</h2>
+ <h2>{{ $t("searchGuide.combine.title") }}</h2>
- <p>{{ $t("search-guide.combine.description") }}</p>
+ <p>{{ $t("searchGuide.combine.description") }}</p>
<ul class="not-prose marker:text-dark-charcoal-20">
<i18n
v-for="[name, operator] in Object.entries(operators)"
:key="name"
- :path="`search-guide.combine.${name}`"
+ :path="`searchGuide.combine.${name}`"
tag="li"
>
<template #symbol>
<code
:aria-label="
- $t(`search-guide.combine.aria-labels.${name}`).toString()
+ $t(`searchGuide.combine.ariaLabels.${name}`).toString()
"
>{{ operator.symbol }}</code
>
@@ -36,25 +36,25 @@
</i18n>
</ul>
<!-- eslint-disable @intlify/vue-i18n/no-raw-text -->
- <i18n path="search-guide.example.and.description" tag="p">
+ <i18n path="searchGuide.example.and.description" tag="p">
<template #link>
<VLink
- :aria-label="$t('search-guide.example.and.aria-label').toString()"
+ :aria-label="$t('searchGuide.example.and.ariaLabel').toString()"
:href="pathFromQuery('dog+cat')"
>
- <em>{{ $t("search-guide.example.and.example") }}</em>
+ <em>{{ $t("searchGuide.example.and.example") }}</em>
</VLink>
</template>
<template #br><br /></template>
</i18n>
- <i18n path="search-guide.example.or.description" tag="p">
+ <i18n path="searchGuide.example.or.description" tag="p">
<template #link>
<VLink
- :aria-label="$t('search-guide.example.or.aria-label')"
+ :aria-label="$t('searchGuide.example.or.ariaLabel')"
:href="pathFromQuery('dog|cat')"
>
- <em>{{ $t("search-guide.example.or.example").toString() }}</em>
+ <em>{{ $t("searchGuide.example.or.example").toString() }}</em>
</VLink>
</template>
<template #br>
@@ -62,25 +62,24 @@
</template>
</i18n>
- <i18n path="search-guide.example.negate.description" tag="p" class="mt-4">
+ <i18n path="searchGuide.example.negate.description" tag="p" class="mt-4">
<template #operator>
<em
:aria-label="
- $t('search-guide.example.negate.operator-aria-label').toString()
+ $t('searchGuide.example.negate.operatorAriaLabel').toString()
"
- >-
- {{ $t("search-guide.example.negate.operator-name").toString() }}</em
+ >- {{ $t("searchGuide.example.negate.operatorName").toString() }}</em
>
</template>
</i18n>
- <i18n path="search-guide.example.negate.content" tag="p" class="mb-4">
+ <i18n path="searchGuide.example.negate.content" tag="p" class="mb-4">
<template #link>
<VLink
- :aria-label="$t('search-guide.example.negate.aria-label')"
+ :aria-label="$t('searchGuide.example.negate.ariaLabel')"
:href="pathFromQuery('dog -pug')"
>
- <em>{{ $t("search-guide.example.negate.example") }}</em>
+ <em>{{ $t("searchGuide.example.negate.example") }}</em>
</VLink>
</template>
<template #br>
@@ -88,23 +87,21 @@
</template>
</i18n>
- <i18n path="search-guide.example.prefix.description" tag="p" class="mt-4">
+ <i18n path="searchGuide.example.prefix.description" tag="p" class="mt-4">
<template #operator>
- <em
- :aria-label="$t('search-guide.example.prefix.aria-label').toString()"
- >*
- {{ $t("search-guide.example.prefix.operator-name").toString() }}</em
+ <em :aria-label="$t('searchGuide.example.prefix.ariaLabel').toString()"
+ >* {{ $t("searchGuide.example.prefix.operatorName").toString() }}</em
>
</template>
</i18n>
- <i18n path="search-guide.example.prefix.content" tag="p" class="mb-4">
+ <i18n path="searchGuide.example.prefix.content" tag="p" class="mb-4">
<template #link>
<VLink
- :aria-label="$t('search-guide.example.prefix.aria-label')"
+ :aria-label="$t('searchGuide.example.prefix.ariaLabel')"
:href="pathFromQuery('net*')"
>
- <em>{{ $t("search-guide.example.prefix.example") }}</em>
+ <em>{{ $t("searchGuide.example.prefix.example") }}</em>
</VLink>
</template>
<template #br>
@@ -112,19 +109,19 @@
</template>
</i18n>
- <i18n path="search-guide.example.precedence.description" tag="p">
+ <i18n path="searchGuide.example.precedence.description" tag="p">
<template #highlight>
<em>( and )</em>
</template>
</i18n>
- <i18n path="search-guide.example.precedence.content" tag="p" class="mb-4">
+ <i18n path="searchGuide.example.precedence.content" tag="p" class="mb-4">
<template #link>
<VLink
- :aria-label="$t('search-guide.example.precedence.aria-label')"
+ :aria-label="$t('searchGuide.example.precedence.ariaLabel')"
:href="pathFromQuery('dog (corgis | labrador)')"
>
- <em>{{ $t("search-guide.example.precedence.example") }}</em>
+ <em>{{ $t("searchGuide.example.precedence.example") }}</em>
</VLink>
</template>
<template #br>
@@ -132,24 +129,24 @@
</template>
</i18n>
- <i18n path="search-guide.example.fuzziness.description" tag="p">
+ <i18n path="searchGuide.example.fuzziness.description" tag="p">
<template #highlight>
<em aria-label="tilde N">~N</em>
</template>
<template #link>
<VLink href="https://en.wikipedia.org/wiki/Levenshtein_distance">
- {{ $t("search-guide.example.fuzziness.link-text") }}
+ {{ $t("searchGuide.example.fuzziness.linkText") }}
</VLink>
</template>
</i18n>
- <i18n path="search-guide.example.fuzziness.content" tag="p">
+ <i18n path="searchGuide.example.fuzziness.content" tag="p">
<template #link>
<VLink
- :aria-label="$t('search-guide.example.fuzziness.aria-label')"
+ :aria-label="$t('searchGuide.example.fuzziness.ariaLabel')"
:href="pathFromQuery('theatre~1')"
>
- <em>{{ $t("search-guide.example.fuzziness.example") }}</em>
+ <em>{{ $t("searchGuide.example.fuzziness.example") }}</em>
</VLink>
</template>
<template #br>
@@ -192,7 +189,7 @@ export default defineComponent({
const searchStore = useSearchStore()
useMeta({
- title: `${i18n.t("search-guide.title", {
+ title: `${i18n.t("searchGuide.title", {
openverse: "Openverse",
})} | Openverse`,
meta: [{ hid: "robots", name: "robots", content: "all" }],
diff --git a/frontend/src/pages/search/audio.vue b/frontend/src/pages/search/audio.vue
index 5ca815cbd..3114d6dfa 100644
--- a/frontend/src/pages/search/audio.vue
+++ b/frontend/src/pages/search/audio.vue
@@ -17,7 +17,7 @@
v-if="results.length === 0 && !fetchState.isFinished"
is-for-tab="audio"
/>
- <ol :aria-label="$t('browse-page.aria.results', { query: searchTerm })">
+ <ol :aria-label="$t('browsePage.aria.results', { query: searchTerm })">
<li v-for="audio in results" :key="audio.id">
<VAudioTrack
class="mb-2 md:mb-1"
diff --git a/frontend/src/pages/search/image.vue b/frontend/src/pages/search/image.vue
index 012918286..3a1f01f77 100644
--- a/frontend/src/pages/search/image.vue
+++ b/frontend/src/pages/search/image.vue
@@ -3,7 +3,7 @@
:images="results"
:is-single-page="false"
:fetch-state="fetchState"
- :image-grid-label="$t('browse-page.aria.results', { query: searchTerm })"
+ :image-grid-label="$t('browsePage.aria.results', { query: searchTerm })"
/>
</template>
diff --git a/frontend/src/pages/sources.vue b/frontend/src/pages/sources.vue
index 5d719d299..6a0cce518 100644
--- a/frontend/src/pages/sources.vue
+++ b/frontend/src/pages/sources.vue
@@ -5,48 +5,48 @@
</h1>
<h2>
- {{ $t("sources.cc-content.where", { openverse: "Openverse" }) }}
+ {{ $t("sources.ccContent.where", { openverse: "Openverse" }) }}
</h2>
<p>
- {{ $t("sources.cc-content.content", { openverse: "Openverse" }) }}
+ {{ $t("sources.ccContent.content", { openverse: "Openverse" }) }}
</p>
- <i18n path="sources.cc-content.provider" tag="p">
+ <i18n path="sources.ccContent.provider" tag="p">
<template #flickr>
<VLink href="https://www.flickr.com/">Flickr</VLink>
</template>
<template #smithsonian>
<VLink href="https://www.si.edu/">{{
- $t("sources.cc-content.smithsonian")
+ $t("sources.ccContent.smithsonian")
}}</VLink>
</template>
</i18n>
- <i18n path="sources.cc-content.europeana" tag="p">
+ <i18n path="sources.ccContent.europeana" tag="p">
<template #openverse>Openverse</template>
<template #link>
<VLink href="https://www.europeana.eu/en">Europeana</VLink>
</template>
- <template #link-api>
+ <template #linkApi>
<VLink href="https://pro.europeana.eu/page/apis">{{
- $t("sources.cc-content.europeana-api")
+ $t("sources.ccContent.europeanaApi")
}}</VLink>
</template>
</i18n>
<h2>
- {{ $t("sources.new-content.next") }}
+ {{ $t("sources.newContent.next") }}
</h2>
<p>
- {{ $t("sources.new-content.integrate") }}
+ {{ $t("sources.newContent.integrate") }}
</p>
<ul>
<li>
- {{ $t("sources.new-content.impact") }}
+ {{ $t("sources.newContent.impact") }}
</li>
<li>
- {{ $t("sources.new-content.reuse") }}
+ {{ $t("sources.newContent.reuse") }}
</li>
<li>
- {{ $t("sources.new-content.total-items") }}
+ {{ $t("sources.newContent.totalItems") }}
</li>
</ul>
@@ -65,14 +65,14 @@
has-icon-end
href="https://github.com/WordPress/openverse/issues/new?assignees=&labels=%F0%9F%9A%A6+status%3A+awaiting+triage%2C+%F0%9F%A7%B9+status%3A+ticket+work+required%2C+%E2%98%81%EF%B8%8F+provider%3A+any&template=new-source-suggestion.md&title=[Source+Suggestion]+Insert+source+name+here"
>
- {{ $t("sources.issue-button") }}
+ {{ $t("sources.issueButton") }}
</VButton>
</p>
<i18n path="sources.detail" tag="p">
- <template #single-name>
+ <template #singleName>
<strong>
- {{ $t("sources.single-name") }}
+ {{ $t("sources.singleName") }}
</strong>
</template>
</i18n>
diff --git a/frontend/src/utils/attribution-html.ts b/frontend/src/utils/attribution-html.ts
index 6e24451cf..5857fabb8 100644
--- a/frontend/src/utils/attribution-html.ts
+++ b/frontend/src/utils/attribution-html.ts
@@ -71,7 +71,7 @@ const fakeT = (
}
const segments = path.split(".")
- let fraction: NestedRecord = enJson["media-details"].reuse.credit
+ let fraction: NestedRecord = enJson["mediaDetails"].reuse.credit
let text: string | undefined = undefined
segments.forEach((segment) => {
const piece = fraction[segment]
@@ -154,7 +154,7 @@ export const getAttribution = (
const isPd = isPublicDomain(mediaItem.license)
- const i18nBase = "media-details.reuse.credit"
+ const i18nBase = "mediaDetails.reuse.credit"
const tFn = i18n
? (key: string, values?: VueI18n.Values) =>
i18n.t(`${i18nBase}.${key}`, values).toString()
@@ -162,10 +162,10 @@ export const getAttribution = (
/* Title */
- let title = mediaItem.originalTitle || tFn("generic-title")
+ let title = mediaItem.originalTitle || tFn("genericTitle")
if (!isPlaintext && mediaItem.foreign_landing_url)
title = extLink(mediaItem.foreign_landing_url, title)
- if (mediaItem.originalTitle) title = tFn("actual-title", { title })
+ if (mediaItem.originalTitle) title = tFn("actualTitle", { title })
/* License */
@@ -189,15 +189,15 @@ export const getAttribution = (
const attributionParts: Record<string, string> = {
title,
- "marked-licensed": tFn(isPd ? "marked" : "licensed"),
+ markedLicensed: tFn(isPd ? "marked" : "licensed"),
license: license,
- "view-legal": "",
+ viewLegal: "",
creator: "",
}
if (isPlaintext && mediaItem.license_url) {
- attributionParts["view-legal"] = tFn("view-legal-text", {
- "terms-copy": tFn(isPd ? "terms-text" : "copy-text"),
+ attributionParts["viewLegal"] = tFn("viewLegalText", {
+ termsCopy: tFn(isPd ? "termsText" : "copyText"),
url: `${mediaItem.license_url}?ref=openverse`,
})
}
@@ -206,8 +206,8 @@ export const getAttribution = (
let creator = mediaItem.creator
if (!isPlaintext && mediaItem.creator_url)
creator = extLink(mediaItem.creator_url, creator)
- attributionParts.creator = tFn("creator-text", {
- "creator-name": creator,
+ attributionParts.creator = tFn("creatorText", {
+ creatorName: creator,
})
}
diff --git a/frontend/test/locales/ar.json b/frontend/test/locales/ar.json
index 5a3c67f89..ccdfe3775 100644
--- a/frontend/test/locales/ar.json
+++ b/frontend/test/locales/ar.json
@@ -35,19 +35,19 @@
"analytics": "سجل الأحداث المخصصة وطرق عرض الصفحة."
}
},
- "search-type": {
+ "searchType": {
"image": "الصور",
"audio": "صوتي",
"all": "كل المحتوى",
"video": "أشرطة فيديو",
- "model-3d": "نماذج ثلاثية الأبعاد",
+ "model3d": "نماذج ثلاثية الأبعاد",
"label": "نوع المحتوى للبحث",
"heading": "أنواع المحتويات",
"additional": "مصادر إضافية",
- "status-beta": "بيتا",
- "see-image": "مشاهدة جميع الصور",
- "see-audio": "مشاهدة كل الملفات الصوتية",
- "select-label": "حدد نوع المحتوى: {type}"
+ "statusBeta": "بيتا",
+ "seeImage": "مشاهدة جميع الصور",
+ "seeAudio": "مشاهدة كل الملفات الصوتية",
+ "selectLabel": "حدد نوع المحتوى: {type}"
},
"serverTimeout": {
"heading": "عفوًا ، يبدو أن هذا الطلب استغرق وقتًا طويلاً لإكماله. حاول مرة اخرى."
@@ -156,27 +156,27 @@
}
}
},
- "audio-details": {
- "genre-label": "النوع",
- "related-audios": "الصوت ذو الصلة",
+ "audioDetails": {
+ "genreLabel": "النوع",
+ "relatedAudios": "الصوت ذو الصلة",
"information": "معلومات صوتية",
"weblink": "احصل على هذا الصوت",
"table": {
"album": "الألبوم",
"category": "يكتب",
- "sample-rate": "معدل العينة",
+ "sampleRate": "معدل العينة",
"filetype": "شكل",
"provider": "مزود",
"source": "مصدر",
"genre": "النوع"
}
},
- "image-details": {
+ "imageDetails": {
"creator": "بالاسم{name}",
"weblink": "احصل على هذه الصورة",
- "related-images": "الصور ذات الصلة",
+ "relatedImages": "الصور ذات الصلة",
"aria": {
- "creator-url": "المؤلف {creator}"
+ "creatorUrl": "المؤلف {creator}"
},
"information": {
"title": "معلومات الصورة",
@@ -191,14 +191,14 @@
"singleResult": {
"back": "رجوع إلى نتائج البحث"
},
- "media-details": {
- "provider-label": "مزود",
- "source-label": "مصدر",
+ "mediaDetails": {
+ "providerLabel": "مزود",
+ "sourceLabel": "مصدر",
"loading": "جار التحميل...",
- "related-error": "خطأ في جلب الوسائط ذات الصلة",
- "image-info": "معلومات الصورة",
- "audio-info": "معلومات صوتية",
- "content-report": {
+ "relatedError": "خطأ في جلب الوسائط ذات الصلة",
+ "imageInfo": "معلومات الصورة",
+ "audioInfo": "معلومات صوتية",
+ "contentReport": {
"short": "تقرير",
"long": "الإبلاغ عن هذا المحتوى",
"failure": {
@@ -217,12 +217,12 @@
"other": {
"option": "آخر",
"note": "صف القضية.",
- "sub-label": "مطلوب",
+ "subLabel": "مطلوب",
"placeholder": "الرجاء إدخال 20 حرفًا على الأقل."
},
"mature": {
"option": "هل يحتوي على محتويات للبالغين",
- "sub-label": "اختياري",
+ "subLabel": "اختياري",
"placeholder": "اختياريًا ، قدم وصفًا."
},
"dmca": {
@@ -234,7 +234,7 @@
}
},
"aria": {
- "creator-url": "اسم المؤلف}",
+ "creatorUrl": "اسم المؤلف}",
"attribution": {
"license": "اقرأ المزيد عن الترخيص",
"tool": "اقرأ المزيد عن الأداة"
@@ -243,29 +243,29 @@
"reuse": {
"title": "كيف تستعمل",
"description": "قم بزيارة موقع ويب {media} لتنزيله واستخدامه. تأكد من أن تنسب الفضل إلى المنشئ من خلال إظهار معلومات الإسناد حيث تشارك عملك.",
- "license-header": "رخصة",
- "tool-header": "المجال العام",
+ "licenseHeader": "رخصة",
+ "toolHeader": "المجال العام",
"audio": "صوتي",
"image": "صورة",
"attribution": "تم تمييز هذه الصورة بترخيص {link}:",
- "copy-license": {
+ "copyLicense": {
"title": "انسب الفضل إلى المنشئ",
"rich": "النص الغني",
"html": "لغة البرمجة",
"plain": "نص عادي",
- "copy-text": "نسخ النص",
+ "copyText": "نسخ النص",
"copied": "نسخ!"
},
"credit": {
- "generic-title": "هذا العمل",
- "actual-title": "\"{title}\"",
- "text": "{title} {creator} {marked-licensed} {license}. {view-legal}",
- "creator-text": "بواسطة {creator-name}",
+ "genericTitle": "هذا العمل",
+ "actualTitle": "\"{title}\"",
+ "text": "{title} {creator} {markedLicensed} {license}. {viewLegal}",
+ "creatorText": "بواسطة {creatorName}",
"marked": "تم وضع علامة",
"licensed": "مرخص بموجب",
- "view-legal-text": "لعرض {terms-copy} ، قم بزيارة {url}.",
- "terms-text": "الشروط",
- "copy-text": "نسخة من هذا الترخيص"
+ "viewLegalText": "لعرض {termsCopy} ، قم بزيارة {url}.",
+ "termsText": "الشروط",
+ "copyText": "نسخة من هذا الترخيص"
},
"tool": {
"content": "اقرأ المزيد عن الأداة {link}.",
@@ -273,26 +273,26 @@
}
}
},
- "browse-page": {
- "all-no-results": "لا نتائج",
- "all-result-count": "{localeCount} نتيجة | {localeCount} نتيجة",
- "all-result-count-more": "أكثر من {localeCount} نتيجة | أكثر من {localeCount} نتيجة",
+ "browsePage": {
+ "allNoResults": "لا نتائج",
+ "allResultCount": "{localeCount} نتيجة | {localeCount} نتيجة",
+ "allResultCountMore": "أكثر من {localeCount} نتيجة | أكثر من {localeCount} نتيجة",
"load": "تحميل المزيد من النتائج",
"loading": "جار التحميل...",
- "fetching-error": "خطأ في جلب {type}:",
+ "fetchingError": "خطأ في جلب {type}:",
"aria": {
"close": "أغلق",
"scroll": "انتقل إلى أعلى",
"search": "بحث",
- "remove-filter": "إزالة عامل التصفية",
- "license-explanation": "شرح الترخيص",
+ "removeFilter": "إزالة عامل التصفية",
+ "licenseExplanation": "شرح الترخيص",
"creator": "البحث عن طريق المنشئ",
"relevance": {
"yes": "نتيجة ذات صلة؟ الجواب: نعم",
"no": "نتيجة ذات صلة؟ الجواب: لا"
}
},
- "license-description": {
+ "licenseDescription": {
"title": "رخصة CC",
"by": "ائتمن الخالق.",
"nc": "الاستخدامات غير التجارية فقط.",
@@ -300,23 +300,23 @@
"sa": "شارك التعديلات تحت نفس الشروط.",
"zero": "تم وضع علامة على هذا العمل على أنه مخصص للملك العام.",
"pd": "تم وضع علامة على هذا العمل على أنه في المجال العام.",
- "sampling-plus": "العينات والمزج والتحولات الإبداعية مسموح بها."
+ "samplingPlus": "العينات والمزج والتحولات الإبداعية مسموح بها."
},
- "search-form": {
+ "searchForm": {
"placeholder": "بحث في كل {type}",
"image": "الصور",
"audio": "صوتي",
"video": "أشرطة فيديو",
- "model-3d": "نماذج ثلاثية الأبعاد",
+ "model3d": "نماذج ثلاثية الأبعاد",
"all": "المحتوى",
- "collection-placeholder": "بحث في هذه المجموعة",
+ "collectionPlaceholder": "بحث في هذه المجموعة",
"button": "يبحث"
},
- "search-rating": {
+ "searchRating": {
"content": "هل هذه النتائج ذات صلة؟",
"yes": "نعم",
"no": "رقم",
- "feedback-thanks": "شكرا لملاحظاتك!"
+ "feedbackThanks": "شكرا لملاحظاتك!"
}
},
"filterList": {
@@ -458,12 +458,12 @@
},
"feedback": {
"title": "استجابة",
- "intro": "شكرًا لك على استخدام {openverse}! نرحب بأفكارك لتحسين الأداة أدناه. لتقديم ملاحظات منتظمة ، انضم إلى قناة {slack} في مساحة عمل {making-wordpress} Slack.",
+ "intro": "شكرًا لك على استخدام {openverse}! نرحب بأفكارك لتحسين الأداة أدناه. لتقديم ملاحظات منتظمة ، انضم إلى قناة {slack} في مساحة عمل {makingWordpress} Slack.",
"improve": "ساعدنا لنتحسن",
"report": "الإبلاغ عن خطأ",
"loading": "جار التحميل...",
"aria": {
- "cc-usability": "قناة slack cc-usability",
+ "ccUsability": "قناة slack cc-usability",
"improve": "ساعدنا في تحسين الشكل",
"report": "الإبلاغ عن نموذج خطأ"
}
@@ -485,47 +485,47 @@
"chat": "جعل WordPress دردشة"
}
},
- "search-guide": {
+ "searchGuide": {
"title": "{openverse} دليل البنية",
"intro": "عند البحث ، يمكنك إدخال رموز أو كلمات خاصة لمصطلح البحث الخاص بك لجعل نتائج البحث أكثر دقة.",
"example": {
"fuzziness": {
"description": "يمكنك استخدام {light} لتحديد بعض المنطق الضبابي للمصطلح وفقًا لـ {link} - عدد التغييرات التي يجب إجراؤها على حرف واحد لسلسلة واحدة لجعلها مماثلة لسلسلة أخرى.",
- "link-text": "Levenshtein تحرير المسافة",
- "aria-label": "مسرح التلدة 1",
+ "linkText": "Levenshtein تحرير المسافة",
+ "ariaLabel": "مسرح التلدة 1",
"example": "المسرح ~ 1",
"content": "مثال: {link} {br} سيبحث هذا عن الصور التي تطابق السلاسل القريبة من مصطلح \"مسرح\" مع اختلاف حرف واحد. قد تتضمن النتائج مصطلحات ذات تهجئات مختلفة مثل \"مسرح\"."
},
"precedence": {
"description": "يمكنك استخدام الأقواس {light} لتحديد أسبقية المصطلحات أو دمج الاستعلامات الأكثر تعقيدًا.",
- "aria-label": "الكلاب بالإضافة إلى فتح قوس كورجي شريط عمودي لابرادور إغلاق الأقواس",
+ "ariaLabel": "الكلاب بالإضافة إلى فتح قوس كورجي شريط عمودي لابرادور إغلاق الأقواس",
"example": "الكلاب + (corgis | labrador)",
"content": "مثال: {link} {br} سيبحث هذا عن الصور المطابقة للكلاب التي تكون إما كلاب كورجي أو لابرادور."
},
"prefix": {
- "description": "يمكنك استخدام {operator-name} لتمييز مصطلح البادئة. سيطابق هذا أي شيء بعد ملف *.",
- "operator-name": "عامل (wildcard)",
- "operator-aria-label": "عامل تشغيل نجمة (wildcard)",
- "aria-label": "رمز النجمة الصافية",
+ "description": "يمكنك استخدام {operatorName} لتمييز مصطلح البادئة. سيطابق هذا أي شيء بعد ملف *.",
+ "operatorName": "عامل (wildcard)",
+ "operatorAriaLabel": "عامل تشغيل نجمة (wildcard)",
+ "ariaLabel": "رمز النجمة الصافية",
"example": "صافي*",
"content": "مثال: {link} {br} سيبحث هذا عن الصور التي تطابق أي شيء مع \"net\". قد يشمل ذلك \"الشبكة\" و \"Netflix\" و \"هولندا\" وما إلى ذلك .."
},
"negate": {
"description": "يمكنك استخدام {operator} لاستبعاد مصطلح بحث من النتائج.",
- "operator-name": "عامل التشغيل (يدل على \"لا\")",
- "operator-aria-label": "عامل ناقص (يدل على \"لا\")",
- "aria-label": "الكلب ناقص الصلصال",
+ "operatorName": "عامل التشغيل (يدل على \"لا\")",
+ "operatorAriaLabel": "عامل ناقص (يدل على \"لا\")",
+ "ariaLabel": "الكلب ناقص الصلصال",
"example": "كلب-الصلصال",
"content": "مثال: {link} {br} سيبحث هذا عن الصور المتعلقة بالكلاب ولكنه لن يتضمن النتائج المتعلقة بـ \"الكلب\""
},
"or": {
"description": "مثال: {link} {br} سيبحث هذا عن الصور المتعلقة بكلب أو قطة ، ولكن ليس بالضرورة كليهما.",
- "aria-label": "الكلب شريط عمودي القط",
+ "ariaLabel": "الكلب شريط عمودي القط",
"example": "كلب | قطة"
},
"and": {
"description": "مثال: {link} {br} سيبحث هذا عن الصور المتعلقة بكل من الكلب والقط.",
- "aria-label": "كلب بلس قطة",
+ "ariaLabel": "كلب بلس قطة",
"example": "كلب + قطة"
}
},
@@ -538,24 +538,24 @@
"prefix": "يشير {symbol} في نهاية المصطلح إلى استعلام البادئة",
"precedence": "تشير {open} و {close} إلى الأسبقية",
"fuzziness": "تشير كلمة {symbol} بعد الكلمة إلى تعديل المسافة (ضبابية)",
- "aria-labels": {
+ "ariaLabels": {
"fuzziness": "تيلدا N",
"open": "فتح قوس",
"close": "أقواس قريبة",
"star": "رمز النجمة",
"minus": "رمز الطرح",
"plus": "رمز زائد",
- "vertical-bar": "رمز شريط عمودي"
+ "verticalBar": "رمز شريط عمودي"
}
},
"exact": {
"title": "ابحث عن تطابق تام",
- "aria-label": "اقتبس اقتباس كلود مونيه",
- "claude-monet": "\"كلود مونيه\"",
+ "ariaLabel": "اقتبس اقتباس كلود مونيه",
+ "claudeMonet": "\"كلود مونيه\"",
"content": "ضع كلمة أو عبارة داخل علامات الاقتباس. على سبيل المثال ، {link}."
}
},
- "external-sources-page": {
+ "externalSourcesPage": {
"title": "بحث ميتا",
"intro": "تم إنشاء {openverse} فوق كتالوج يقوم بفهرسة المحتوى المرخص لـ CC والمحتوى العام من مصادر محددة. تعرف على المزيد حول {link} الخاص بنا.",
"link": "مصادر",
@@ -565,9 +565,9 @@
"content": "لسنوات عديدة ، قدمت Creative Commons لمستخدميها بوابة بحث مخصصة لمنصات البحث التي تحتوي على عوامل تصفية ترخيص CC مضمنة. في الواقع ، لا يزال هذا قيد الصيانة في {old}.",
"old": "oldsearch.creativecommons.org",
"new": "بالنسبة لمستخدمي موقع CC Meta Search القديم ، ستبدو ميزة \\ \"مصادر خارجية \\\" على {openverse} مألوفة. كان الهدف هو ضمان عدم فقدان الوظيفة ، ولكن يتم تحديثها ودمجها في محرك البحث الجديد الخاص بنا للمحتوى المرخص بشكل علني. بالإضافة إلى ذلك ، تعتمد ميزة \\ \"المصادر الخارجية \\\" على هذه الوظيفة ، مما يسمح لنا بإضافة مصادر خارجية جديدة بسرعة عندما نكتشفها ، ودعم أنواع المحتويات الجديدة في المستقبل ، مع توسعنا.",
- "aria-label": "استجابة",
- "feedback-suggestions": "نأمل أن تستمتع ، وإذا كانت لديك اقتراحات للتحسين ، فاترك لنا {feedback}.",
- "feedback-link": "استجابة"
+ "ariaLabel": "استجابة",
+ "feedbackSuggestions": "نأمل أن تستمتع ، وإذا كانت لديك اقتراحات للتحسين ، فاترك لنا {feedback}.",
+ "feedbackLink": "استجابة"
},
"new": {
"title": "هل يمكنني اقتراح مصادر خارجية جديدة؟",
@@ -580,10 +580,10 @@
},
"sources": {
"title": "مصادر",
- "detail": "يتيح لك النقر فوق {single-name} تصفح العناصر الموجودة داخل هذا المصدر وتصفيتها.",
- "single-name": "مصدر",
+ "detail": "يتيح لك النقر فوق {singleName} تصفح العناصر الموجودة داخل هذا المصدر وتصفيتها.",
+ "singleName": "مصدر",
"suggestions": "نحن نقدر الاقتراحات لمصادر جديدة من مجتمع المستخدمين لدينا.",
- "issue-button": "اقترح مصدر جديد",
+ "issueButton": "اقترح مصدر جديد",
"heading": {
"image": "مصادر الصور",
"audio": "مصادر الصوت"
@@ -591,19 +591,19 @@
"aria": {
"table": "جدول المصادر"
},
- "new-content": {
+ "newContent": {
"next": "كيف نقرر ما هي المصادر التي يجب إضافتها بعد ذلك؟",
"integrate": "لدينا قائمة لا تنتهي أبدًا بالمصادر المحتملة للبحث قبل التكامل. نسأل أنفسنا أسئلة مثل:",
"impact": " ما هو تأثير أو أهمية هذا المصدر لمستخدمينا؟ إذا كان موجودًا داخل مزود مثل ويكيميديا كومنز ، فهل من المفيد لمستخدمينا أن يكونوا قادرين على التصفية حسب هذا المصدر مباشرة؟",
"reuse": "هل معلومات الترخيص والإسناد معروضة بوضوح لتمكين إعادة الاستخدام الواثق؟",
- "total-items": "كم عدد العناصر الإجمالية الجديدة أو الأنواع الجديدة من العناصر التي يمكننا تقديمها لمستخدمينا من خلال هذا التكامل؟ بعض المصادر عبارة عن تكاملات مباشرة ، بينما قد يكون البعض الآخر مصدرًا داخل المصدر."
+ "totalItems": "كم عدد العناصر الإجمالية الجديدة أو الأنواع الجديدة من العناصر التي يمكننا تقديمها لمستخدمينا من خلال هذا التكامل؟ بعض المصادر عبارة عن تكاملات مباشرة ، بينما قد يكون البعض الآخر مصدرًا داخل المصدر."
},
- "cc-content": {
+ "ccContent": {
"where": "من أين يأتي المحتوى على {openverse}؟",
"content": "هناك محتوى مرخص بشكل علني مستضاف على ملايين المجالات عبر اتساع الإنترنت. يحدد فريقنا بشكل منهجي مقدمي الخدمة الذين يستضيفون محتوى مرخصًا بـ CC. إذا كان ملائمًا ، فنحن نفهرس هذا المحتوى ونجعله قابلاً للاكتشاف من خلال {openverse}.",
"provider": "لدى بعض الموفرين مجموعات مختلفة من المحتوى بداخلهم. {flickr} له مصادر تتراوح من وكالة ناسا إلى التصوير الشخصي. يتألف {smithsonian} من عشرات المجموعات المتنوعة. تدير ويكيميديا كومنز سلسلة كاملة من حيث المحتوى ، وتستخدمها العديد من المعارض والمكتبات ودور المحفوظات والمتاحف لتسليط الضوء على بعض أو كل مجموعاتها الرقمية.",
- "europeana": "{openverse} ممتن بشكل خاص لعمل {link} ، وهي منظمة تعمل على رقمنة وإنشاء أعمال التراث الثقافي القابلة للاكتشاف في جميع أنحاء أوروبا. {openverse} قادر على فهرسة مئات المصادر القيمة من خلال تكامل واحد مع {link-api}.",
- "europeana-api": "واجهة برمجة تطبيقات Europeana",
+ "europeana": "{openverse} ممتن بشكل خاص لعمل {link} ، وهي منظمة تعمل على رقمنة وإنشاء أعمال التراث الثقافي القابلة للاكتشاف في جميع أنحاء أوروبا. {openverse} قادر على فهرسة مئات المصادر القيمة من خلال تكامل واحد مع {linkApi}.",
+ "europeanaApi": "واجهة برمجة تطبيقات Europeana",
"smithsonian": "معهد سميثسونيان"
},
"providers": {
@@ -619,7 +619,7 @@
"terms": "{openverse} شروط الاستخدام"
},
"transfer": {
- "content": "{openverse} هو خليفة CC Search الذي أطلقته Creative Commons في عام 2019 ، بعد انتقاله إلى WordPress في عام 2021. يمكنك قراءة المزيد حول هذا الانتقال في الإعلانات الرسمية من {creative-commons} و {wordpress}. لا نزال ملتزمين بهدفنا المتمثل في معالجة قابلية الاكتشاف والوصول إلى الوسائط المفتوحة."
+ "content": "{openverse} هو خليفة CC Search الذي أطلقته Creative Commons في عام 2019 ، بعد انتقاله إلى WordPress في عام 2021. يمكنك قراءة المزيد حول هذا الانتقال في الإعلانات الرسمية من {creativeCommons} و {wordpress}. لا نزال ملتزمين بهدفنا المتمثل في معالجة قابلية الاكتشاف والوصول إلى الوسائط المفتوحة."
},
"planning": {
"content": "يبحث {openverse} حاليًا عن الصور والصوت فقط ، مع البحث عن الفيديو المقدم من خلال مصادر خارجية. لكننا نخطط لإضافة أنواع وسائط إضافية مثل النصوص المفتوحة والنماذج ثلاثية الأبعاد ، مع الهدف النهائي المتمثل في توفير الوصول إلى جميع أعمال المجال العام المرخصة والبالغ عددها 1.4 مليار CC على الويب. جميع التعليمات البرمجية لدينا مفتوحة المصدر ({frontend} ، {api} ، {catalog}) ونحن {community}. يمكنك أن ترى ما {working}.",
@@ -629,7 +629,7 @@
"working": "نحن نعمل حاليا على"
},
"collection": {
- "content": "يبحث {openverse} عبر أكثر من 300 مليون صورة من واجهات برمجة التطبيقات المفتوحة ومجموعة البيانات {common-crawl}. يتجاوز البحث البسيط إلى تجميع النتائج عبر مستودعات عامة متعددة في كتالوج واحد ، ويسهل إعادة الاستخدام من خلال ميزات مثل العلامات التي تم إنشاؤها آليًا والإسناد بنقرة واحدة."
+ "content": "يبحث {openverse} عبر أكثر من 300 مليون صورة من واجهات برمجة التطبيقات المفتوحة ومجموعة البيانات {commonCrawl}. يتجاوز البحث البسيط إلى تجميع النتائج عبر مستودعات عامة متعددة في كتالوج واحد ، ويسهل إعادة الاستخدام من خلال ميزات مثل العلامات التي تم إنشاؤها آليًا والإسناد بنقرة واحدة."
},
"description": {
"content": "{openverse} هي أداة تسمح باكتشاف أعمال المجال العام والمرخصة بشكل مفتوح واستخدامها من قبل الجميع."
diff --git a/frontend/test/locales/es.json b/frontend/test/locales/es.json
index 38bed5274..4bffdf78f 100644
--- a/frontend/test/locales/es.json
+++ b/frontend/test/locales/es.json
@@ -14,7 +14,7 @@
"placeholder": "Buscar contenidos"
},
"aria": {
- "search-type": "tipo de búsqueda",
+ "searchType": "tipo de búsqueda",
"search": "buscar"
},
"licenseFilter": {
@@ -26,22 +26,22 @@
"close": "Cerrar"
},
"sketchfabIframeTitle": "Visor {sketchfab}",
- "media-details": {
+ "mediaDetails": {
"reuse": {
"credit": {
- "actual-title": "«{title}»",
- "generic-title": "Esta obra",
- "text": "{title} {creator} {marked-licensed} {license}. {view-legal}",
- "copy-text": "una copia de esta licencia",
- "terms-text": "los términos",
- "view-legal-text": "Para ver los {terms-copy}, visita {url}.",
+ "actualTitle": "«{title}»",
+ "genericTitle": "Esta obra",
+ "text": "{title} {creator} {markedLicensed} {license}. {viewLegal}",
+ "copyText": "una copia de esta licencia",
+ "termsText": "los términos",
+ "viewLegalText": "Para ver los {termsCopy}, visita {url}.",
"licensed": "está bajo la licencia",
"marked": "está marcado con",
- "creator-text": "por {creator-name}"
+ "creatorText": "por {creatorName}"
},
- "copy-license": {
+ "copyLicense": {
"copied": "¡Copiado!",
- "copy-text": "Copiar el texto",
+ "copyText": "Copiar el texto",
"title": "Reconocer al creador",
"plain": "Texto sin formato",
"html": "HTML",
@@ -55,10 +55,10 @@
"audio": "Audio",
"title": "Reutilizar el contenido",
"attribution": "Esta imagen se ha marcado con una licencia {link}:",
- "tool-header": "Dominio público",
- "license-header": "Licencia"
+ "toolHeader": "Dominio público",
+ "licenseHeader": "Licencia"
},
- "content-report": {
+ "contentReport": {
"short": "Informar",
"form": {
"dmca": {
@@ -69,12 +69,12 @@
},
"mature": {
"placeholder": "Opcionalmente, proporciona una descripción.",
- "sub-label": "Opcional",
+ "subLabel": "Opcional",
"option": "Contiene contenido para adultos"
},
"other": {
"placeholder": "Por favor, introduce al menos 20 caracteres.",
- "sub-label": "Obligatorio",
+ "subLabel": "Obligatorio",
"note": "Describe el problema.",
"option": "Otra"
},
@@ -94,18 +94,18 @@
"long": "Informar de este contenido"
},
"aria": {
- "creator-url": "autor {name}",
+ "creatorUrl": "autor {name}",
"attribution": {
"tool": "lee más sobre la herramienta",
"license": "lee más sobre la licencia"
}
},
- "audio-info": "Información del audio",
- "image-info": "Información de la imagen",
+ "audioInfo": "Información del audio",
+ "imageInfo": "Información de la imagen",
"loading": "Cargando...",
- "related-error": "Error al recuperar los medios relacionados",
- "source-label": "Fuente",
- "provider-label": "Proveedor"
+ "relatedError": "Error al recuperar los medios relacionados",
+ "sourceLabel": "Fuente",
+ "providerLabel": "Proveedor"
},
"prefPage": {
"nonSwitchable": {
@@ -116,8 +116,8 @@
"desc": "Puedes activar o desactivar estas características a tu gusto y tus preferencias se guardarán en una cookie.",
"title": "Características que se pueden cambiar"
},
- "explanation": "Mostrado porque {feat-name} es {feat-state}",
- "content-filtering": "Filtrado de contenido",
+ "explanation": "Mostrado porque {featName} es {featState}",
+ "contentFiltering": "Filtrado de contenido",
"storeState": "Provincia de la tienda",
"title": "Preferencias"
},
@@ -135,25 +135,25 @@
"item": "Elementos totales",
"domain": "Dominio"
},
- "issue-button": "Sugiere una nueva fuente",
+ "issueButton": "Sugiere una nueva fuente",
"suggestions": "Apreciamos sugerencias de nuevas fuentes por parte de nuestra comunidad de usuarios.",
- "new-content": {
- "total-items": "¿Cuántos nuevos elementos totales o nuevos tipos de elementos podemos aportar a nuestros usuarios a través de esta integración? Algunas fuentes son integraciones directas, mientras que otras pueden ser una fuente dentro de otra fuente.",
+ "newContent": {
+ "totalItems": "¿Cuántos nuevos elementos totales o nuevos tipos de elementos podemos aportar a nuestros usuarios a través de esta integración? Algunas fuentes son integraciones directas, mientras que otras pueden ser una fuente dentro de otra fuente.",
"reuse": "¿Se muestra claramente la información sobre la licencia y la atribución para permitir una reutilización segura?",
"impact": " ¿Cuál es el impacto o la importancia de esta fuente para nuestros usuarios? Si existe dentro de un proveedor como Wikimedia Commons, ¿es valioso para nuestros usuarios poder filtrar por esta fuente directamente?",
"integrate": "Tenemos una lista interminable de posibles fuentes para investigar antes de la integración. Nos hacemos preguntas como:",
"next": "¿Cómo decidimos cuáles serán las siguientes fuentes a añadir?"
},
- "cc-content": {
+ "ccContent": {
"smithsonian": "Instituto Smithsonian",
- "europeana-api": "API de Euroepeana",
- "europeana": "{openverse} agradece especialmente el trabajo de {link}, una organización que trabaja para digitalizar y hacer localizables las obras del patrimonio cultural en toda Europa. {openverse} es capaz de indexar cientos de valiosas fuentes a través de una única integración con la {link-api}.",
+ "europeanaApi": "API de Euroepeana",
+ "europeana": "{openverse} agradece especialmente el trabajo de {link}, una organización que trabaja para digitalizar y hacer localizables las obras del patrimonio cultural en toda Europa. {openverse} es capaz de indexar cientos de valiosas fuentes a través de una única integración con la {linkApi}.",
"provider": "Algunos proveedores tienen varias agrupaciones diferentes de contenido dentro de ellos. {flickr} tiene fuentes que van desde la NASA hasta la fotografía personal. El {smithsonian} comprende una docena de colecciones diversas. Wikimedia Commons abarca toda la gama de contenidos y es utilizado por varias galerías, bibliotecas, archivos y museos para destacar algunas o todas sus colecciones digitalizadas.",
"content": "Hay contenidos con licencia abierta alojados en millones de dominios en toda la extensión de Internet. Nuestro equipo identifica sistemáticamente a los proveedores que alojan contenidos con licencia CC. Si son adecuados, los indexamos y los hacemos accesibles a través de {openverse}.",
"where": "¿De dónde proceden los contenidos de {openverse}?"
},
- "single-name": "Fuente",
- "detail": "Hacer clic en una {single-name} te permite explorar y filtrar los elementos dentro de esa fuente."
+ "singleName": "Fuente",
+ "detail": "Hacer clic en una {singleName} te permite explorar y filtrar los elementos dentro de esa fuente."
},
"audioTrack": {
"ariaLabelInteractive": "{title} - Reproductor de audio - Pulsa la barra de espacio para reproducir y pausar una muestra del audio",
@@ -167,8 +167,8 @@
},
"creator": "por {creator}"
},
- "browse-page": {
- "search-form": {
+ "browsePage": {
+ "searchForm": {
"model_3d": "Modelos 3D",
"button": "Buscar",
"all": "contenido",
@@ -176,10 +176,10 @@
"audio": "audio",
"image": "imágenes",
"placeholder": "Buscar todo {type}",
- "collection-placeholder": "Busca en esta colección"
+ "collectionPlaceholder": "Busca en esta colección"
},
- "license-description": {
- "sampling-plus": "Se permiten muestras, integraciones y transformaciones creativas.",
+ "licenseDescription": {
+ "samplingPlus": "Se permiten muestras, integraciones y transformaciones creativas.",
"pd": "Este trabajo está marcado como de dominio público.",
"zero": "Este trabajo ha sido marcado como dedicado al dominio público.",
"by": "Reconocer al creador.",
@@ -188,39 +188,39 @@
"nd": "No se permiten derivados ni adaptaciones.",
"nc": "Solo para uso no comercial."
},
- "search-rating": {
+ "searchRating": {
"content": "¿Son relevantes estos resultados?",
- "feedback-thanks": "¡Gracias por tu opinión!",
+ "feedbackThanks": "¡Gracias por tu opinión!",
"no": "No",
"yes": "Sí"
},
"aria": {
"creator": "buscar por creador",
- "license-explanation": "explicación de la licencia",
+ "licenseExplanation": "explicación de la licencia",
"search": "buscar",
"close": "cerrar",
"relevance": {
"no": "¿resultado relevante? respuesta: no",
"yes": "¿resultado relevante? respuesta: sí"
},
- "remove-filter": "eliminar el filtro",
+ "removeFilter": "eliminar el filtro",
"scroll": "scroll al inicio"
},
- "all-result-count": "{localeCount} resultado|{localeCount} resultados",
- "all-no-results": "No hay resultados",
- "fetching-error": "Error al recuperar {type}:",
+ "allResultCount": "{localeCount} resultado|{localeCount} resultados",
+ "allNoResults": "No hay resultados",
+ "fetchingError": "Error al recuperar {type}:",
"load": "Cargar más resultados",
- "all-result-count-more": "Más de {localeCount} resultado|Más de {localeCount} resultados"
+ "allResultCountMore": "Más de {localeCount} resultado|Más de {localeCount} resultados"
},
- "search-type": {
+ "searchType": {
"additional": "Fuentes adicionales",
"model_3d": "Modelos 3D",
- "status-beta": "Beta",
+ "statusBeta": "Beta",
"heading": "Tipos de contenido",
"label": "Tipo de contenido a buscar",
"all": "Todo el contenido",
- "see-audio": "Ver todos los audios",
- "see-image": "Ver todas las imágenes",
+ "seeAudio": "Ver todos los audios",
+ "seeImage": "Ver todas las imágenes",
"video": "Vídeos",
"audio": "Audio",
"image": "Imágenes"
@@ -359,10 +359,10 @@
"content": "Actualmente, {openverse} solo busca imágenes, con búsqueda de audio y vídeo proporcionada a través de la {meta}. Pero planeamos añadir tipos de medios adicionales, como textos abiertos y audio, con el objetivo final de proporcionar acceso a la totalidad de 1.400 millones de obras con licencia CC y de dominio público de la web. Todo nuestro código es de código abierto ({search}, {api}, {catalog}) y nosotros {community}. Puedes ver en qué {working}."
},
"transfer": {
- "content": "{openverse} es el sucesor de CC Search, que Creative Commons lanzó en 2019, tras su migración a WordPress en 2021. Puedes leer más sobre esta transición en los anuncios oficiales de {creative-commons} y {wordpress}. Seguimos comprometidos con nuestro objetivo de abordar el descubrimiento y la accesibilidad de los medios de acceso abierto."
+ "content": "{openverse} es el sucesor de CC Search, que Creative Commons lanzó en 2019, tras su migración a WordPress en 2021. Puedes leer más sobre esta transición en los anuncios oficiales de {creativeCommons} y {wordpress}. Seguimos comprometidos con nuestro objetivo de abordar el descubrimiento y la accesibilidad de los medios de acceso abierto."
},
"collection": {
- "content": "{openverse} busca entre más de 300 millones de imágenes en API abiertas y el conjunto de datos de {common-crawl}. Va más allá de la simple búsqueda para añadir los resultados a través de múltiples repositorios públicos en un solo catálogo y facilita la reutilización a través de características como las etiquetas autogeneradas y la atribución con un solo clic."
+ "content": "{openverse} busca entre más de 300 millones de imágenes en API abiertas y el conjunto de datos de {commonCrawl}. Va más allá de la simple búsqueda para añadir los resultados a través de múltiples repositorios públicos en un solo catálogo y facilita la reutilización a través de características como las etiquetas autogeneradas y la atribución con un solo clic."
},
"description": {
"content": "{openverse} es una herramienta que permite descubrir obras con licencia abierta y de dominio público y ser usadas por todos."
@@ -373,22 +373,22 @@
"read": "Lee más",
"more": "{readMore} sobre este anuncio."
},
- "audio-details": {
+ "audioDetails": {
"information": "Información del audio",
"table": {
"source": "Fuente",
"provider": "Proveedor",
"genre": "Género",
"filetype": "Formato",
- "sample-rate": "Tasa de muestreo",
+ "sampleRate": "Tasa de muestreo",
"category": "Tipo",
"album": "Álbum"
},
- "related-audios": "Audios relacionados",
- "genre-label": "Género"
+ "relatedAudios": "Audios relacionados",
+ "genreLabel": "Género"
},
"skipToContent": "Saltar al contenido",
- "image-details": {
+ "imageDetails": {
"information": {
"unknown": "Desconocida",
"title": "Información de la imagen",
@@ -400,9 +400,9 @@
},
"creator": "por {name}",
"aria": {
- "creator-url": "Autor {creator}"
+ "creatorUrl": "Autor {creator}"
},
- "related-images": "Imágenes relacionadas",
+ "relatedImages": "Imágenes relacionadas",
"weblink": "Ir a la web de la imagen"
},
"header": {
@@ -439,18 +439,18 @@
"text": "La traducción para el idioma local {locale} está incompleta. Ayúdanos a alcanzar el 100 % {link}."
}
},
- "external-sources-page": {
+ "externalSourcesPage": {
"images": {
- "not-finding": "Mira la sección «{not-finding}» debajo de los resultados.",
- "demo-label": "Diseño de la búsqueda meta para tipos de medios indexados, como las imágenes",
+ "notFinding": "Mira la sección «{notFinding}» debajo de los resultados.",
+ "demoLabel": "Diseño de la búsqueda meta para tipos de medios indexados, como las imágenes",
"title": "¿Cómo funciona la característica de búsqueda meta para tipos de medios indexados?",
- "info": "La sección «{not-finding}» lista otras fuentes de contenido con licencia CC y de dominio público. Tu consulta de búsqueda será precargada y, si es compatible, puedes seleccionar un filtro de {use} para filtrar proactivamente tus resultados. Haz clic en el botón de la fuente externa que te gustaría buscar y tus resultados se abrirán en una nueva pestaña.",
- "continue": "{load-more} y sigue navegando en {openverse}.",
+ "info": "La sección «{notFinding}» lista otras fuentes de contenido con licencia CC y de dominio público. Tu consulta de búsqueda será precargada y, si es compatible, puedes seleccionar un filtro de {use} para filtrar proactivamente tus resultados. Haz clic en el botón de la fuente externa que te gustaría buscar y tus resultados se abrirán en una nueva pestaña.",
+ "continue": "{loadMore} y sigue navegando en {openverse}.",
"content": "{openverse} es compatible con la búsqueda integrada de algunos tipos de medios. Cuando introduces una consulta en la página de inicio de {openverse}, se mostrará una página de resultados. Haciendo scroll hasta el final de la página, tienes dos opciones:"
},
- "audio-video": {
+ "audioVideo": {
"content": "{openverse} todavía no es compatible con la búsqueda integrada de algunos tipos de medios, como los vídeos. Para estos tipos de medios, haz clic en la pestaña apropiada y verás las fuentes donde puedes encontrar contenido con licencia CC.",
- "demo-label": "Diseño de la búsqueda meta para tipos de medios no indexados, como los vídeos",
+ "demoLabel": "Diseño de la búsqueda meta para tipos de medios no indexados, como los vídeos",
"title": "¿Cómo funciona la característica de búsqueda meta para tipos de medios no indexados?",
"filter": "La barra de filtros de la izquierda incluye el filtro de {use}, que puede ser compatible con algunas fuentes de búsqueda meta. Aplícalos antes de hacer clic en el botón de la fuente externa en la que te gustaría buscar."
},
@@ -462,16 +462,16 @@
},
"why": {
"title": "¿Por qué habéis creado esto?",
- "feedback-suggestions": "Esperamos que disfrutes y, si tienes sugerencias para mejorar, déjanos tu {feedback}.",
- "feedback-link": "sugerencias",
- "aria-label": "sugerencias",
+ "feedbackSuggestions": "Esperamos que disfrutes y, si tienes sugerencias para mejorar, déjanos tu {feedback}.",
+ "feedbackLink": "sugerencias",
+ "ariaLabel": "sugerencias",
"new": "A los usuarios del antiguo sitio de búsqueda meta de CC, la característica de búsqueda meta de {openverse} les resultará familiar. El objetivo era garantizar que la funcionalidad no se perdiera, sino que se actualizara y se integrara en nuestro nuevo motor de búsqueda de contenidos con licencia abierta. Además, la característica de la búsqueda meta se basa en esta funcionalidad, permitiéndonos añadir rápidamente nuevas fuentes a la búsqueda meta a medida que las descubrimos y ser compatibles con nuevos tipos de contenido en el futuro a medida que vayamos creciendo.",
"content": "Durante muchos años, CC ha ofrecido a sus usuarios un portal de búsqueda dedicado para buscar plataformas que tienen filtros de licencias CC incorporados. Estas plataformas incluían Europeana, Google Images, Flickr, Jamendo, Open Clip Art Library, SpinXpress, Wikimedia Commons, YouTube, ccMixter y SoundCloud. La experiencia de búsqueda tenía el siguiente aspecto:"
},
"link": "fuentes",
"title": "Búsqueda meta",
"use": "Uso",
- "content-types": "La búsqueda meta en {openverse} actualmente es compatible con búsqueda de imágenes, audio y vídeo en sitios externos. ",
+ "contentTypes": "La búsqueda meta en {openverse} actualmente es compatible con búsqueda de imágenes, audio y vídeo en sitios externos. ",
"content": "¿Qué tipos de contenido puedo buscar usando la característica de búsqueda meta?",
"license": "¡Internet es un lugar enorme! Hay muchos portales de búsqueda y colecciones, que albergan contenido con licencia CC y de dominio público, que no podemos indexar o mostrar sus resultados en la interfaz de {openverse}. Estas son fuentes importantes de contenido con licencia CC y de dominio público y queremos asegurarnos de que puedas encontrar los mejores materiales posibles con licencia abierta, independientemente de dónde se encuentren.",
"intro": "{openverse} está basado en un catálogo que indexa contenidos con licencia CC y de dominio público de fuentes seleccionadas. Más información sobre nuestras {link}."
@@ -484,17 +484,17 @@
"pause": "Pausar",
"play": "Reproducir"
},
- "search-guide": {
+ "searchGuide": {
"exact": {
- "aria-label": "cita cerrar cita Claude Monet ",
+ "ariaLabel": "cita cerrar cita Claude Monet ",
"title": "Buscar una coincidencia exacta",
"content": "Pon una palabra dentro de comillas. Por ejemplo, {link}.",
- "claude-monet": "\"Claude Monet\""
+ "claudeMonet": "\"Claude Monet\""
},
"combine": {
- "aria-labels": {
+ "ariaLabels": {
"fuzziness": "tilde N",
- "vertical-bar": "símbolo de barra vertical",
+ "verticalBar": "símbolo de barra vertical",
"plus": "símbolo de más",
"minus": "símbolo de menos",
"star": "simbolo de asterisco",
@@ -513,41 +513,41 @@
"example": {
"and": {
"example": "perro+gato",
- "aria-label": "perro más gato",
+ "ariaLabel": "perro más gato",
"description": "Ejemplo: {link}{br} Esto buscará imágenes relacionadas tanto con perro como con gato."
},
"or": {
"example": "perro|gato",
- "aria-label": "perro barra vertical gato",
+ "ariaLabel": "perro barra vertical gato",
"description": "Ejemplo: {link}{br} Esto buscará imágenes relacionadas con perro o gato, pero no necesariamente con ambos."
},
"negate": {
"example": "perro -carlino",
- "aria-label": "perro menos carlino",
+ "ariaLabel": "perro menos carlino",
"description": "Puedes usar {operator} para excluir un término de búsqueda de los resultados.",
"content": "Ejemplo: {link}{br} Esto buscará imágenes relacionadas con perros pero no incluirá resultados relacionados con 'carlino'",
- "operator-aria-label": "operador menos (significa NO)",
- "operator-name": "operador (significa NO)"
+ "operatorAriaLabel": "operador menos (significa NO)",
+ "operatorName": "operador (significa NO)"
},
"prefix": {
"example": "red*",
- "aria-label": "red estrella símbolo",
+ "ariaLabel": "red estrella símbolo",
"content": "Ejemplo: {link}{br} Esto buscará imágenes que coincidan con lo que sea con 'net'. Esto podría incluir 'network', 'Netflix', 'Netherlands', etc..",
- "operator-aria-label": "operador de estrella (comodín)",
- "operator-name": "operador (comodín)",
- "description": "Puedes usar el {operator-name} para marcar un término como prefijo. Esto coincidirá con cualquier cosa después del *."
+ "operatorAriaLabel": "operador de estrella (comodín)",
+ "operatorName": "operador (comodín)",
+ "description": "Puedes usar el {operatorName} para marcar un término como prefijo. Esto coincidirá con cualquier cosa después del *."
},
"precedence": {
"example": "perros + (corgis | labrador)",
- "aria-label": "perros más abre paréntesis corgis barra vertical labrador cierra paréntesis",
+ "ariaLabel": "perros más abre paréntesis corgis barra vertical labrador cierra paréntesis",
"description": "Puedes usar paréntesis {highlight} para especificar la prioridad de los términos o combinar consultas más complejas.",
"content": "Ejemplo: {link}{br} Esto buscará imágenes que coincidan con perros que sean corgis o labrador."
},
"fuzziness": {
"example": "teatro~1",
- "aria-label": "teatro tilde 1",
+ "ariaLabel": "teatro tilde 1",
"content": "Ejemplo: {link}{br} Esto buscará imágenes con cadenas que coincidan con el término 'teatro' con la diferencia de un caracter. Los resultados pueden incluir términos con distintas variantes como 'teatrero'.",
- "link-text": "Distancia de edición Levenshtein",
+ "linkText": "Distancia de edición Levenshtein",
"description": "Puedes usar {highlight} para especificar alguna lógica difusa al término según el {link} — el número de cambios de un carácter que hay que hacer a una cadena para que sea igual a otra."
}
},
@@ -559,12 +559,12 @@
"aria": {
"report": "formulario para informar de un fallo",
"improve": "formulario para ayudarnos a mejorar",
- "cc-usability": "canal de slack de cc-usability"
+ "ccUsability": "canal de slack de cc-usability"
},
"loading": "Cargando...",
"report": "Informar de un fallo",
"improve": "Ayúdanos a mejorar",
- "intro": "¡Gracias por usar {openverse}! Agradecemos tus ideas para mejorar la herramienta. Para ofrecer sugerencias normales, únete al canal de {slack} en el espacio de trabajo {making-wordpress} de Slack."
+ "intro": "¡Gracias por usar {openverse}! Agradecemos tus ideas para mejorar la herramienta. Para ofrecer sugerencias normales, únete al canal de {slack} en el espacio de trabajo {makingWordpress} de Slack."
},
"extension": {
"title": "Extensión web",
diff --git a/frontend/test/locales/ru.json b/frontend/test/locales/ru.json
index 31a07d225..fc0f57a1a 100644
--- a/frontend/test/locales/ru.json
+++ b/frontend/test/locales/ru.json
@@ -7,36 +7,36 @@
"placeholder": "Поиск содержимого"
},
"aria": {
- "search-type": "Тип поиска",
+ "searchType": "Тип поиска",
"search": "поиск"
},
"licenseFilter": {
"label": "Я хочу что-то, что можно"
}
},
- "audio-details": {
+ "audioDetails": {
"information": "Информация об аудио",
"table": {
"genre": "Жанр",
"filetype": "Формат",
- "sample-rate": "Частота дискретизации",
+ "sampleRate": "Частота дискретизации",
"category": "Тип",
"album": "Альбом"
},
- "related-audios": "Похожее аудио",
- "genre-label": "Жанр"
+ "relatedAudios": "Похожее аудио",
+ "genreLabel": "Жанр"
},
- "media-details": {
- "content-report": {
+ "mediaDetails": {
+ "contentReport": {
"short": "Пожаловаться",
"form": {
"mature": {
- "sub-label": "Необязательно",
+ "subLabel": "Необязательно",
"option": "Содержимое для взрослой аудитории"
},
"other": {
"placeholder": "Введите не менее 20 символов.",
- "sub-label": "Обязательно",
+ "subLabel": "Обязательно",
"note": "Опишите проблему.",
"option": "Прочее"
},
@@ -57,7 +57,7 @@
"tool": {
"content": "Узнайте больше про инструмент {link}"
},
- "copy-license": {
+ "copyLicense": {
"title": "Поблагодарить автора",
"html": "HTML"
},
@@ -65,12 +65,12 @@
"audio": "Звук",
"title": "Повторно используемое содержимое",
"attribution": "Это изображение отмечено как использующее лицензию {link}.",
- "tool-header": "Public Domain",
- "license-header": "Лицензия"
+ "toolHeader": "Public Domain",
+ "licenseHeader": "Лицензия"
},
"loading": "Загрузка...",
- "source-label": "Источник",
- "provider-label": "Поставщик"
+ "sourceLabel": "Источник",
+ "providerLabel": "Поставщик"
},
"header": {
"filterButton": {
@@ -174,7 +174,7 @@
"clear": "Очистить фильтры",
"hide": "Скрыть фильтры"
},
- "search-type": {
+ "searchType": {
"heading": "Типы содержимого",
"all": "Всё содержимое",
"video": "Видео",
@@ -208,38 +208,38 @@
"claudeMonet": "\"Клод Моне\""
}
},
- "browse-page": {
- "search-rating": {
+ "browsePage": {
+ "searchRating": {
"content": "Эти результаты релевантны?",
- "feedback-thanks": "Спасибо за ваш отзыв!",
+ "feedbackThanks": "Спасибо за ваш отзыв!",
"no": "Нет",
"yes": "Да"
},
- "search-form": {
+ "searchForm": {
"button": "Поиск",
"video": "видео",
- "collection-placeholder": "Искать в этой коллекции"
+ "collectionPlaceholder": "Искать в этой коллекции"
},
- "all-result-count": "{localeCount} результат|{localeCount} результата|{localeCount} результатов",
- "all-no-results": "Нет результатов",
+ "allResultCount": "{localeCount} результат|{localeCount} результата|{localeCount} результатов",
+ "allNoResults": "Нет результатов",
"aria": {
"relevance": {
"no": "результат релевантен? ответ: нет",
"yes": "результат релевантен? ответ: да"
},
- "remove-filter": "удалить фильтр",
+ "removeFilter": "удалить фильтр",
"scroll": "прокрутить наверх"
},
- "fetching-error": "Ошибка при получении {type}:",
- "license-description": {
+ "fetchingError": "Ошибка при получении {type}:",
+ "licenseDescription": {
"sa": "Адаптации должны распространяться на тех же условиях.",
"nd": "Адаптация или производные работы не разрешаются.",
"nc": "Только для некоммерческого использования."
},
"load": "Загрузить ещё результаты",
- "all-result-count-more": "Более {localeCount} результата|Более {localeCount} результатов|Более {localeCount} результатов"
+ "allResultCountMore": "Более {localeCount} результата|Более {localeCount} результатов|Более {localeCount} результатов"
},
- "image-details": {
+ "imageDetails": {
"information": {
"source": "Источник",
"provider": "Поставщик",
@@ -248,9 +248,9 @@
"type": "Тип"
},
"aria": {
- "creator-url": "Автор {creator}"
+ "creatorUrl": "Автор {creator}"
},
- "related-images": "Связанные изображения"
+ "relatedImages": "Связанные изображения"
},
"externalSources": {
"card": {
diff --git a/frontend/test/playwright/e2e/homepage.spec.ts b/frontend/test/playwright/e2e/homepage.spec.ts
index 1d5c60283..8c22c465d 100644
--- a/frontend/test/playwright/e2e/homepage.spec.ts
+++ b/frontend/test/playwright/e2e/homepage.spec.ts
@@ -32,7 +32,7 @@ const popoverIsVisible = async (page: Page) =>
const popoverIsNotVisible = async (page: Page) =>
await expect(page.locator(searchTypePopover)).not.toBeVisible()
const clickPopoverButton = async (page: Page) =>
- await page.getByRole("button", { name: t("search-type.all") }).click()
+ await page.getByRole("button", { name: t("searchType.all") }).click()
test("can close the search type popover by clicking outside", async ({
page,
diff --git a/frontend/test/playwright/e2e/load-more.spec.ts b/frontend/test/playwright/e2e/load-more.spec.ts
index 63bf8d341..c4ab908d7 100644
--- a/frontend/test/playwright/e2e/load-more.spec.ts
+++ b/frontend/test/playwright/e2e/load-more.spec.ts
@@ -11,7 +11,7 @@ import { AUDIO, IMAGE, SupportedMediaType } from "~/constants/media"
test.describe.configure({ mode: "parallel" })
-const loadMoreButton = `button:has-text("${t("browse-page.load", "ltr")}")`
+const loadMoreButton = `button:has-text("${t("browsePage.load", "ltr")}")`
const openSingleMediaView = async (
page: Page,
diff --git a/frontend/test/playwright/utils/navigation.ts b/frontend/test/playwright/utils/navigation.ts
index e096c8243..16ef85549 100644
--- a/frontend/test/playwright/utils/navigation.ts
+++ b/frontend/test/playwright/utils/navigation.ts
@@ -73,18 +73,18 @@ export type CheckboxStatus = "checked" | "unchecked" | "disabled"
export const searchTypeNames = {
ltr: {
- [ALL_MEDIA]: t("search-type.all", "ltr"),
- [AUDIO]: t("search-type.audio", "ltr"),
- [IMAGE]: t("search-type.image", "ltr"),
- [VIDEO]: t("search-type.video", "ltr"),
- [MODEL_3D]: t("search-type.model-3d", "ltr"),
+ [ALL_MEDIA]: t("searchType.all", "ltr"),
+ [AUDIO]: t("searchType.audio", "ltr"),
+ [IMAGE]: t("searchType.image", "ltr"),
+ [VIDEO]: t("searchType.video", "ltr"),
+ [MODEL_3D]: t("searchType.model-3d", "ltr"),
},
rtl: {
- [ALL_MEDIA]: t("search-type.all", "rtl"),
- [AUDIO]: t("search-type.audio", "rtl"),
- [IMAGE]: t("search-type.image", "rtl"),
- [VIDEO]: t("search-type.video", "rtl"),
- [MODEL_3D]: t("search-type.model-3d", "rtl"),
+ [ALL_MEDIA]: t("searchType.all", "rtl"),
+ [AUDIO]: t("searchType.audio", "rtl"),
+ [IMAGE]: t("searchType.image", "rtl"),
+ [VIDEO]: t("searchType.video", "rtl"),
+ [MODEL_3D]: t("searchType.model3d", "rtl"),
},
}
@@ -97,7 +97,7 @@ export const openContentSettingsTab = async (
tab: "searchTypes" | "filters" = "searchTypes",
dir: LanguageDirection = "ltr"
) => {
- const tabKey = tab === "searchTypes" ? "search-type.heading" : "filters.title"
+ const tabKey = tab === "searchTypes" ? "searchType.heading" : "filters.title"
await page.getByRole("tab", { name: t(tabKey, dir) }).click()
}
diff --git a/frontend/test/playwright/visual-regression/components/content-report-form.spec.ts b/frontend/test/playwright/visual-regression/components/content-report-form.spec.ts
index 987f54d9c..d2481b2f1 100644
--- a/frontend/test/playwright/visual-regression/components/content-report-form.spec.ts
+++ b/frontend/test/playwright/visual-regression/components/content-report-form.spec.ts
@@ -7,13 +7,13 @@ const imageUrl = "/image/feb91b13-422d-46fa-8ef4-cbf1e6ddee9b"
const getReportButton = (page: Page) => {
return page.getByRole("button", {
- name: t("media-details.content-report.long"),
+ name: t("mediaDetails.contentReport.long"),
})
}
const getReportForm = (page: Page) => {
return page.getByRole("dialog", {
- name: t("media-details.content-report.long"),
+ name: t("mediaDetails.contentReport.long"),
})
}
diff --git a/frontend/test/storybook/visual-regression/v-media-reuse.spec.ts b/frontend/test/storybook/visual-regression/v-media-reuse.spec.ts
index ec74b3f0f..0cfe6b3e6 100644
--- a/frontend/test/storybook/visual-regression/v-media-reuse.spec.ts
+++ b/frontend/test/storybook/visual-regression/v-media-reuse.spec.ts
@@ -29,7 +29,7 @@ test.describe("media-reuse", () => {
await page.locator(`#tab-${tab.id}`).click()
// Make sure the tab is not focused and doesn't have a pink ring
- const reuseTitle = t("media-details.reuse.title", dir)
+ const reuseTitle = t("mediaDetails.reuse.title", dir)
await page.locator(`h2:has-text("${reuseTitle}")`).click()
await expectSnapshot(
`media-reuse-${dir}-${tab.id}-tab`,
diff --git a/frontend/test/unit/specs/composables/use-i18n-utilities.spec.js b/frontend/test/unit/specs/composables/use-i18n-utilities.spec.js
index d67e43bc3..aaac183d8 100644
--- a/frontend/test/unit/specs/composables/use-i18n-utilities.spec.js
+++ b/frontend/test/unit/specs/composables/use-i18n-utilities.spec.js
@@ -16,10 +16,10 @@ jest.mock("@nuxtjs/composition-api", () => ({
describe("i18nResultsCount", () => {
it.each`
resultCount | expectedResult
- ${0} | ${{ fullKey: "browse-page.all-no-results", resultsCount: 0, localeCount: "0" }}
- ${1} | ${{ fullKey: "browse-page.all-result-count", resultsCount: 1, localeCount: "1" }}
- ${10} | ${{ fullKey: "browse-page.all-result-count", resultsCount: 10, localeCount: "10" }}
- ${10000} | ${{ fullKey: "browse-page.all-result-count-more", resultsCount: 10000, localeCount: "10,000" }}
+ ${0} | ${{ fullKey: "browsePage.allNoResults", resultsCount: 0, localeCount: "0" }}
+ ${1} | ${{ fullKey: "browsePage.allResultCount", resultsCount: 1, localeCount: "1" }}
+ ${10} | ${{ fullKey: "browsePage.allResultCount", resultsCount: 10, localeCount: "10" }}
+ ${10000} | ${{ fullKey: "browsePage.allResultCountMore", resultsCount: 10000, localeCount: "10,000" }}
`(
"Should show correct result for $resultCount of type $mediaType",
({ resultCount, expectedResult }) => {
diff --git a/frontend/test/unit/specs/composables/use-search-type.spec.js b/frontend/test/unit/specs/composables/use-search-type.spec.js
index 1ef69cabe..e1ecde9b7 100644
--- a/frontend/test/unit/specs/composables/use-search-type.spec.js
+++ b/frontend/test/unit/specs/composables/use-search-type.spec.js
@@ -42,11 +42,11 @@ describe("useSearchType", () => {
video: "video",
})
expect(labels).toEqual({
- all: "search-type.all",
- audio: "search-type.audio",
- image: "search-type.image",
- "model-3d": "search-type.model-3d",
- video: "search-type.video",
+ all: "searchType.all",
+ audio: "searchType.audio",
+ image: "searchType.image",
+ "model-3d": "searchType.model3d",
+ video: "searchType.video",
})
expect(additionalTypes.value).toEqual([])
})
@@ -56,7 +56,7 @@ describe("useSearchType", () => {
const { icon, label } = getSearchTypeProps()
expect(icon).toEqual(ALL_MEDIA)
- expect(label).toEqual("search-type.all")
+ expect(label).toEqual("searchType.all")
})
it("should return correct props when type is passed", () => {
@@ -64,7 +64,7 @@ describe("useSearchType", () => {
const { icon, label } = getSearchTypeProps(AUDIO)
expect(icon).toEqual(AUDIO)
- expect(label).toEqual("search-type.audio")
+ expect(label).toEqual("searchType.audio")
})
it("should send the analytics event when setActiveType is called", () => {
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 842951efd..abc4f13c7 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -125,6 +125,7 @@ importers:
cookie-universal-nuxt: ^2.1.5
core-js: ^3.27.2
css-loader: ^5.2.7
+ eslint-plugin-jsonc: ^2.8.0
express-prom-bundle: ^6.4.1
express-useragent: ^1.0.15
focus-trap: ^7.1.0
@@ -235,6 +236,7 @@ importers:
chokidar: 3.5.3
comment-json: 4.2.3
css-loader: [email protected]
+ eslint-plugin-jsonc: 2.8.0
jest: 26.6.3
jest-fail-on-console: 3.1.1
jest-transform-stub: 2.0.0
@@ -2185,6 +2187,18 @@ packages:
resolution: {integrity: sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw==}
engines: {node: '>=10.0.0'}
+ /@eslint-community/eslint-utils/4.4.0:
+ resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ peerDependencies:
+ eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
+ peerDependenciesMeta:
+ eslint:
+ optional: true
+ dependencies:
+ eslint-visitor-keys: 3.4.1
+ dev: true
+
/@eslint-community/eslint-utils/[email protected]:
resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -9926,6 +9940,20 @@ packages:
- typescript
dev: true
+ /eslint-plugin-jsonc/2.8.0:
+ resolution: {integrity: sha512-K4VsnztnNwpm+V49CcCu5laq8VjclJpuhfI9LFkOrOyK+BKdQHMzkWo43B4X4rYaVrChm4U9kw/tTU5RHh5Wtg==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ peerDependencies:
+ eslint: '>=6.0.0'
+ peerDependenciesMeta:
+ eslint:
+ optional: true
+ dependencies:
+ '@eslint-community/eslint-utils': 4.4.0
+ jsonc-eslint-parser: 2.3.0
+ natural-compare: 1.4.0
+ dev: true
+
/eslint-plugin-prettier/4.2.1_kuab6g4o5cytp2fsnrjqsidrgq:
resolution: {integrity: sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ==}
engines: {node: '>=12.0.0'}