Skip to content

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

Update Nuxt i18n (#5176)

Olga Bulateddb335abe4a
diff --git a/.codespell/ignore_lines.txt b/.codespell/ignore_lines.txt
index 2d869403c..3b3398128 100644
--- a/.codespell/ignore_lines.txt
+++ b/.codespell/ignore_lines.txt
@@ -5,7 +5,7 @@
;; The release-drafter/release-drafter configuration variable name cannot be changed
commitish: main
-;; frontend/src/locales/scripts/en.json5
+;; frontend/i18n/data/en.json5
;; Prettier insists we escape a single quote rather than the double quotes and codespell
;; does not understand the escaped `\'t` as "couldn't". It instead just sees "couldn".
heading: 'We couldn\'t find anything for "{query}".',
@@ -16,7 +16,3 @@
;; block of Dutch text.
"Identificatie Titel(s): Allegorie op kunstenaar Francesco Mazzoli, "
"bekend als Parmigianino"
-
-;; packages/js/eslint-plugin/configs/vue.ts
-;; `te` gets matched with `the` and others
-const i18nDestructureRules = ["t", "tc", "te", "td", "d", "n"].map(
diff --git a/.github/workflows/generate_pot.yml b/.github/workflows/generate_pot.yml
index b1af0babe..88959b87e 100644
--- a/.github/workflows/generate_pot.yml
+++ b/.github/workflows/generate_pot.yml
@@ -4,7 +4,7 @@ on:
push:
# The workflow will only run when both filters are satisfied.
paths:
- - frontend/src/locales/scripts/en.json5
+ - frontend/i18n/data/en.json5
branches:
- main
diff --git a/frontend/.gitignore b/frontend/.gitignore
index 70ccfce63..9acba1eab 100644
--- a/frontend/.gitignore
+++ b/frontend/.gitignore
@@ -18,6 +18,16 @@ coverage
*.pot
# Downloaded translation files
+i18n/locales/openverse.zip
+i18n/locales/*.json
+i18n/locales/scripts/valid-locales.json
+i18n/locales/scripts/untranslated-locales.json
+i18n/locales/scripts/invalid-locales.json
+i18n/locales/scripts/wp-locales.json
+i18n/data/valid-locales.json
+i18n/data/untranslated-locales.json
+i18n/locales/scripts/*.json
+# The old downloaded translation files. Can be deleted after the i18n folder changes are merged
src/locales/openverse.zip
src/locales/*.json
src/locales/scripts/valid-locales.json
diff --git a/frontend/src/locales/scripts/en.json5 b/frontend/i18n/data/en.json5
similarity index 100%
rename from frontend/src/locales/scripts/en.json5
rename to frontend/i18n/data/en.json5
diff --git a/frontend/src/locales/scripts/locale-fallback.json b/frontend/i18n/locale-fallback.json
similarity index 50%
rename from frontend/src/locales/scripts/locale-fallback.json
rename to frontend/i18n/locale-fallback.json
index 22a1106ea..cbffbcf09 100644
--- a/frontend/src/locales/scripts/locale-fallback.json
+++ b/frontend/i18n/locale-fallback.json
@@ -6,5 +6,13 @@
"es-ec": ["es"],
"es-mx": ["es"],
"es-ve": ["es"],
+ "en-au": ["en"],
+ "en-ca": ["en"],
+ "en-gb": ["en"],
+ "en-za": ["en"],
+ "fa": ["fa-af"],
+ "fr-be": ["fr"],
+ "fr-ca": ["fr"],
+ "pt": ["pt-br"],
"default": ["en"]
}
diff --git a/frontend/i18n/locales/README.md b/frontend/i18n/locales/README.md
new file mode 100644
index 000000000..ae613e25b
--- /dev/null
+++ b/frontend/i18n/locales/README.md
@@ -0,0 +1,5 @@
+# Locales
+
+The primary internationalisation file is [`data/en.json5`](../data/en.json5).
+All `.json` files present in this directory are re-generated when updating
+translations, so they should not be modified.
diff --git a/frontend/src/locales/scripts/README.md b/frontend/i18n/locales/scripts/README.md
similarity index 100%
rename from frontend/src/locales/scripts/README.md
rename to frontend/i18n/locales/scripts/README.md
diff --git a/frontend/src/locales/scripts/axios.js b/frontend/i18n/locales/scripts/axios.js
similarity index 65%
rename from frontend/src/locales/scripts/axios.js
rename to frontend/i18n/locales/scripts/axios.js
index f92100fca..7367aa182 100644
--- a/frontend/src/locales/scripts/axios.js
+++ b/frontend/i18n/locales/scripts/axios.js
@@ -1,6 +1,6 @@
const axios = require("axios")
-const { userAgent } = require("../../constants/user-agent")
+const { userAgent } = require("../../../src/constants/user-agent")
module.exports = module.exports = axios.create({
headers: { "User-Agent": userAgent },
diff --git a/frontend/src/locales/scripts/bulk-download.js b/frontend/i18n/locales/scripts/bulk-download.js
similarity index 97%
rename from frontend/src/locales/scripts/bulk-download.js
rename to frontend/i18n/locales/scripts/bulk-download.js
index 5094b8662..163330366 100644
--- a/frontend/src/locales/scripts/bulk-download.js
+++ b/frontend/i18n/locales/scripts/bulk-download.js
@@ -22,7 +22,7 @@ const fetchBulkJed1x = async () => {
params: { "export-format": "jed1x" },
responseType: "stream",
})
- const destPath = process.cwd() + "/src/locales/openverse.zip"
+ const destPath = process.cwd() + "/i18n/locales/openverse.zip"
await pipeline(res.data, createWriteStream(destPath))
return destPath
}
diff --git a/frontend/src/locales/scripts/create-wp-locale-list.js b/frontend/i18n/locales/scripts/create-wp-locale-list.js
similarity index 97%
rename from frontend/src/locales/scripts/create-wp-locale-list.js
rename to frontend/i18n/locales/scripts/create-wp-locale-list.js
index 51f4a2bcb..32a242685 100644
--- a/frontend/src/locales/scripts/create-wp-locale-list.js
+++ b/frontend/i18n/locales/scripts/create-wp-locale-list.js
@@ -110,7 +110,7 @@ async function getWpLocaleData() {
getWpLocaleData()
.then((data) => {
try {
- const fileName = process.cwd() + "/src/locales/scripts/wp-locales.json"
+ const fileName = process.cwd() + "/i18n/locales/scripts/wp-locales.json"
fs.writeFileSync(fileName, JSON.stringify(data, null, 2) + "\n")
console.log(`Successfully wrote locales list file to ${fileName}`)
} catch (err) {
diff --git a/frontend/src/locales/scripts/get-translations-status.js b/frontend/i18n/locales/scripts/get-translations-status.js
similarity index 100%
rename from frontend/src/locales/scripts/get-translations-status.js
rename to frontend/i18n/locales/scripts/get-translations-status.js
diff --git a/frontend/src/locales/scripts/get-translations.js b/frontend/i18n/locales/scripts/get-translations.js
similarity index 89%
rename from frontend/src/locales/scripts/get-translations.js
rename to frontend/i18n/locales/scripts/get-translations.js
index b731299eb..c2519114b 100644
--- a/frontend/src/locales/scripts/get-translations.js
+++ b/frontend/i18n/locales/scripts/get-translations.js
@@ -16,7 +16,7 @@ const { parseJson } = require("./read-i18n")
const writeEnglish = () => {
const rootEntry = parseJson("en.json5")
writeFileSync(
- process.cwd() + "/src/locales/en.json",
+ process.cwd() + "/i18n/locales/en.json",
JSON.stringify(rootEntry, null, 2) + os.EOL
)
console.log("Successfully saved English translation to en.json.")
@@ -26,7 +26,7 @@ writeEnglish()
if (process.argv.includes("--watch")) {
console.log("Watching en.json5 for changes...")
chokidar
- .watch(process.cwd() + "/src/locales/scripts/en.json5")
+ .watch(process.cwd() + "/i18n/data/en.json5")
.on("all", (event, path) => {
console.log(`Event '${event}' for file ${path}`)
writeEnglish()
@@ -46,7 +46,7 @@ if (!process.argv.includes("--en-only")) {
} else {
// Create valid-locales.json if it doesn't exist. It is required for Nuxt to build the app.
const validLocalesFilePath =
- process.cwd() + "/src/locales/scripts/valid-locales.json"
+ process.cwd() + "/i18n/locales/scripts/valid-locales.json"
if (!existsSync(validLocalesFilePath)) {
writeFileSync(validLocalesFilePath, "[]")
console.log("Created empty valid-locales.json.")
diff --git a/frontend/src/locales/scripts/get-validated-locales.js b/frontend/i18n/locales/scripts/get-validated-locales.js
similarity index 89%
rename from frontend/src/locales/scripts/get-validated-locales.js
rename to frontend/i18n/locales/scripts/get-validated-locales.js
index 23a0c04f3..ec78f100e 100644
--- a/frontend/src/locales/scripts/get-validated-locales.js
+++ b/frontend/i18n/locales/scripts/get-validated-locales.js
@@ -39,7 +39,7 @@ const getValidatedLocales = async () => {
translated: locale.translated,
}))
for (const locale of allLocales) {
- const fileLocation = `${process.cwd()}/src/locales/${locale.file}`
+ const fileLocation = `${process.cwd()}/i18n/locales/${locale.file}`
if (fs.existsSync(fileLocation)) {
if (Object.keys(JSON.parse(fs.readFileSync(fileLocation))).length) {
result.translated.push(locale)
@@ -59,7 +59,7 @@ try {
const fileName = "valid-locales.json"
const valid = locales.translated
fs.writeFileSync(
- process.cwd() + `/src/locales/scripts/` + fileName,
+ process.cwd() + `/i18n/locales/scripts/` + fileName,
JSON.stringify(valid, null, 2) + "\n"
)
@@ -68,14 +68,14 @@ try {
)
const untranslatedFileName = "untranslated-locales.json"
fs.writeFileSync(
- process.cwd() + `/src/locales/scripts/` + untranslatedFileName,
+ process.cwd() + `/i18n/locales/scripts/` + untranslatedFileName,
JSON.stringify(locales.untranslated, null, 2) + "\n"
)
console.log(`Found ${locales.invalid.length} invalid locales.`)
const invalidFileName = "invalid-locales.json"
fs.writeFileSync(
- process.cwd() + `/src/locales/scripts/` + invalidFileName,
+ process.cwd() + `/i18n/locales/scripts/` + invalidFileName,
JSON.stringify(locales.invalid, null, 2) + "\n"
)
diff --git a/frontend/src/locales/scripts/jed1x-json-to-json.js b/frontend/i18n/locales/scripts/jed1x-json-to-json.js
similarity index 100%
rename from frontend/src/locales/scripts/jed1x-json-to-json.js
rename to frontend/i18n/locales/scripts/jed1x-json-to-json.js
diff --git a/frontend/src/locales/scripts/json-helpers.js b/frontend/i18n/locales/scripts/json-helpers.js
similarity index 100%
rename from frontend/src/locales/scripts/json-helpers.js
rename to frontend/i18n/locales/scripts/json-helpers.js
diff --git a/frontend/src/locales/scripts/json-pot-helpers.js b/frontend/i18n/locales/scripts/json-pot-helpers.js
similarity index 100%
rename from frontend/src/locales/scripts/json-pot-helpers.js
rename to frontend/i18n/locales/scripts/json-pot-helpers.js
diff --git a/frontend/src/locales/scripts/json-to-pot.js b/frontend/i18n/locales/scripts/json-to-pot.js
similarity index 100%
rename from frontend/src/locales/scripts/json-to-pot.js
rename to frontend/i18n/locales/scripts/json-to-pot.js
diff --git a/frontend/src/locales/scripts/ngx-json-to-json.js b/frontend/i18n/locales/scripts/ngx-json-to-json.js
similarity index 100%
rename from frontend/src/locales/scripts/ngx-json-to-json.js
rename to frontend/i18n/locales/scripts/ngx-json-to-json.js
diff --git a/frontend/src/locales/scripts/parse-vue-files.js b/frontend/i18n/locales/scripts/parse-vue-files.js
similarity index 93%
rename from frontend/src/locales/scripts/parse-vue-files.js
rename to frontend/i18n/locales/scripts/parse-vue-files.js
index 191222d01..7b313fe73 100644
--- a/frontend/src/locales/scripts/parse-vue-files.js
+++ b/frontend/i18n/locales/scripts/parse-vue-files.js
@@ -6,7 +6,10 @@ const path = require("path")
const glob = require("glob")
-const BASE_PATH = path.dirname(path.dirname(__dirname))
+const BASE_PATH = path.join(
+ path.dirname(path.dirname(path.dirname(__dirname))),
+ "src"
+)
function readVueFiles(src) {
const targetFiles = glob.sync(src)
@@ -14,8 +17,8 @@ function readVueFiles(src) {
if (targetFiles.length === 0) {
throw new Error("vueFiles glob has no files.")
}
- // Now that the script are inside `src/locales/scripts`,
- // to get relative URL, the script needs to go up 3 levels
+ // Now that the script are inside `i18n/locales/scripts`,
+ // to get relative URL, the script needs to go up 4 levels
return targetFiles.map((f) => {
const fileName = path.relative(process.cwd(), f.replace(BASE_PATH, "src"))
return {
diff --git a/frontend/src/locales/scripts/read-i18n.js b/frontend/i18n/locales/scripts/read-i18n.js
similarity index 98%
rename from frontend/src/locales/scripts/read-i18n.js
rename to frontend/i18n/locales/scripts/read-i18n.js
index 0fa36df7e..6e426c891 100644
--- a/frontend/src/locales/scripts/read-i18n.js
+++ b/frontend/i18n/locales/scripts/read-i18n.js
@@ -182,7 +182,10 @@ const parseObjProperty = (node) => {
const parseJson = (filename) =>
parseObjProperty({
value: babel.parseExpression(
- fs.readFileSync(path.join(__dirname, filename), "utf-8")
+ fs.readFileSync(
+ path.join(__dirname, "..", "..", "data", filename),
+ "utf-8"
+ )
),
})
diff --git a/frontend/src/locales/scripts/types.d.ts b/frontend/i18n/locales/scripts/types.d.ts
similarity index 100%
rename from frontend/src/locales/scripts/types.d.ts
rename to frontend/i18n/locales/scripts/types.d.ts
diff --git a/frontend/src/locales/scripts/utils.js b/frontend/i18n/locales/scripts/utils.js
similarity index 98%
rename from frontend/src/locales/scripts/utils.js
rename to frontend/i18n/locales/scripts/utils.js
index f4fc54aa8..4e18db893 100644
--- a/frontend/src/locales/scripts/utils.js
+++ b/frontend/i18n/locales/scripts/utils.js
@@ -139,7 +139,7 @@ exports.writeLocaleFile = (locale, rawTranslations, deprecatedKeys) => {
)
return writeFile(
- process.cwd() + `/src/locales/${locale}.json`,
+ process.cwd() + `/i18n/locales/${locale}.json`,
JSON.stringify(translations, null, 2) + os.EOL
)
}
diff --git a/frontend/i18n/vue-i18n.ts b/frontend/i18n/vue-i18n.ts
new file mode 100644
index 000000000..d3029c864
--- /dev/null
+++ b/frontend/i18n/vue-i18n.ts
@@ -0,0 +1,173 @@
+import { defineI18nConfig } from "#imports"
+
+import localeFallback from "./locale-fallback.json"
+
+import type { Locale } from "@intlify/core-base"
+
+const custom5Rule = (n: number): number =>
+ n == 0
+ ? 0
+ : n == 1
+ ? 1
+ : n == 2
+ ? 2
+ : n % 100 >= 3 && n % 100 <= 10
+ ? 3
+ : n % 100 >= 11 && n % 100 <= 99
+ ? 4
+ : 5
+
+export default defineI18nConfig(() => ({
+ legacy: false,
+ globalInjection: true,
+ fallbackLocale: localeFallback as { [x: string]: Locale[] },
+ silentFallbackWarn: true,
+ pluralizationRules: {
+ ar: custom5Rule,
+ arq: custom5Rule,
+ ary: custom5Rule,
+ bel: (n: number): number =>
+ n % 10 == 1 && n % 100 != 11
+ ? 0
+ : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)
+ ? 1
+ : 2,
+ bs: (n: number): number =>
+ n % 10 == 1 && n % 100 != 11
+ ? 0
+ : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)
+ ? 1
+ : 2,
+ cor: (n: number): number =>
+ n == 0
+ ? 0
+ : n == 1
+ ? 1
+ : n % 100 == 2 ||
+ n % 100 == 22 ||
+ n % 100 == 42 ||
+ n % 100 == 62 ||
+ n % 100 == 82 ||
+ (n % 1000 == 0 &&
+ ((n % 100000 >= 1000 && n % 100000 <= 20000) ||
+ n % 100000 == 40000 ||
+ n % 100000 == 60000 ||
+ n % 100000 == 80000)) ||
+ (n != 0 && n % 1000000 == 100000)
+ ? 2
+ : n % 100 == 3 ||
+ n % 100 == 23 ||
+ n % 100 == 43 ||
+ n % 100 == 63 ||
+ n % 100 == 83
+ ? 3
+ : n != 1 &&
+ (n % 100 == 1 ||
+ n % 100 == 21 ||
+ n % 100 == 41 ||
+ n % 100 == 61 ||
+ n % 100 == 81)
+ ? 4
+ : 5,
+ cs: (n: number): number => (n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2),
+ cy: (n: number): number =>
+ n == 1 ? 0 : n == 2 ? 1 : n != 8 && n != 11 ? 2 : 3,
+ dsb: (n: number): number =>
+ n % 100 == 1
+ ? 0
+ : n % 100 == 2
+ ? 1
+ : n % 100 == 3 || n % 100 == 4
+ ? 2
+ : 3,
+ ga: (n: number): number =>
+ n == 1
+ ? 0
+ : n == 2
+ ? 1
+ : n >= 3 && n <= 6
+ ? 2
+ : n >= 7 && n <= 10
+ ? 3
+ : 4,
+ gd: (n: number): number =>
+ n == 1 || n == 11
+ ? 0
+ : n == 2 || n == 12
+ ? 1
+ : (n >= 3 && n <= 10) || (n >= 13 && n <= 19)
+ ? 2
+ : 3,
+ hr: (n: number): number =>
+ n % 10 == 1 && n % 100 != 11
+ ? 0
+ : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)
+ ? 1
+ : 2,
+ hsb: (n: number): number =>
+ n % 100 == 1
+ ? 0
+ : n % 100 == 2
+ ? 1
+ : n % 100 == 3 || n % 100 == 4
+ ? 2
+ : 3,
+ is: (n: number): number => (n % 10 != 1 || n % 100 == 11 ? 1 : 0),
+ lt: (n: number): number =>
+ n % 10 == 1 && (n % 100 < 11 || n % 100 > 19)
+ ? 0
+ : n % 10 >= 2 && n % 10 <= 9 && (n % 100 < 11 || n % 100 > 19)
+ ? 1
+ : 2,
+ lv: (n: number): number =>
+ n % 10 == 0 || (n % 100 >= 11 && n % 100 <= 19)
+ ? 0
+ : n % 10 == 1 && n % 100 != 11
+ ? 1
+ : 2,
+ me: (n: number): number =>
+ n % 10 == 1 && n % 100 != 11
+ ? 0
+ : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 10 || n % 100 >= 20)
+ ? 1
+ : 2,
+ mk: (n: number): number => (n % 10 != 1 || n % 100 == 11 ? 1 : 0),
+ pl: (n: number): number =>
+ n == 1
+ ? 0
+ : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)
+ ? 1
+ : 2,
+ ro: (n: number): number =>
+ n == 1 ? 0 : n == 0 || (n % 100 >= 2 && n % 100 <= 19) ? 1 : 2,
+ ru: (n: number): number =>
+ n % 10 == 1 && n % 100 != 11
+ ? 0
+ : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)
+ ? 1
+ : 2,
+ sk: (n: number): number => (n == 1 ? 0 : n >= 2 && n <= 4 ? 1 : 2),
+ sl: (n: number): number =>
+ n % 100 == 1
+ ? 0
+ : n % 100 == 2
+ ? 1
+ : n % 100 == 3 || n % 100 == 4
+ ? 2
+ : 3,
+ sr: (n: number): number =>
+ n % 10 == 1 && n % 100 != 11
+ ? 0
+ : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)
+ ? 1
+ : 2,
+ szl: (n: number): number =>
+ n == 1 ? 0 : n % 10 >= 2 && n % 10 <= 4 && n % 100 == 20 ? 1 : 2,
+ uk: (n: number): number =>
+ n % 10 == 1 && n % 100 != 11
+ ? 0
+ : n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)
+ ? 1
+ : 2,
+ },
+}))
diff --git a/frontend/nuxt.config.ts b/frontend/nuxt.config.ts
index 50060fd31..1a37f4e89 100644
--- a/frontend/nuxt.config.ts
+++ b/frontend/nuxt.config.ts
@@ -1,7 +1,7 @@
import { defineNuxtConfig } from "nuxt/config"
import { disallowedBots } from "./src/constants/disallowed-bots"
-import locales from "./src/locales/scripts/valid-locales.json"
+import locales from "./i18n/locales/scripts/valid-locales.json"
import type { LocaleObject } from "@nuxtjs/i18n"
@@ -124,6 +124,6 @@ export default defineNuxtConfig({
* */
detectBrowserLanguage: false,
trailingSlash: false,
- vueI18n: "./src/vue-i18n",
+ vueI18n: "./vue-i18n",
},
})
diff --git a/frontend/package.json b/frontend/package.json
index 1a418e436..7d59ffdbd 100644
--- a/frontend/package.json
+++ b/frontend/package.json
@@ -41,16 +41,15 @@
"test:storybook:local": "playwright test -c test/storybook",
"test:storybook:debug": "PWDEBUG=1 pnpm test:storybook:local",
"test:storybook:gen": "playwright codegen localhost:54000/",
- "types": "pnpm run prepare:nuxt && vue-tsc -p .",
+ "types": "pnpm run i18n:copy-test-locales && pnpm run prepare:nuxt && vue-tsc -p .",
"i18n": "pnpm i18n:create-locales-list && pnpm i18n:get-translations && pnpm i18n:update-locales",
"i18n:en": "pnpm i18n:get-translations --en-only",
- "i18n:copy-test-locales": "cp test/locales/**.json src/locales/ && mv src/locales/valid-locales.json src/locales/scripts/valid-locales.json",
+ "i18n:copy-test-locales": "cp test/locales/**.json i18n/locales/ && mv i18n/locales/valid-locales.json i18n/locales/scripts/valid-locales.json",
"i18n:no-get": "pnpm i18n:create-locales-list && pnpm i18n:update-locales",
- "i18n:create-locales-list": "node src/locales/scripts/create-wp-locale-list",
- "i18n:get-translations": "node src/locales/scripts/get-translations",
- "i18n:update-locales": "node src/locales/scripts/get-validated-locales",
- "i18n:generate-pot": "node src/locales/scripts/json-to-pot",
- "i18n:check": "vue-i18n-extract report --vueFiles './src/*/**.?(js|ts|vue)' --languageFiles './src/locales/en.json'",
+ "i18n:create-locales-list": "node i18n/locales/scripts/create-wp-locale-list",
+ "i18n:get-translations": "node i18n/locales/scripts/get-translations",
+ "i18n:update-locales": "node i18n/locales/scripts/get-validated-locales",
+ "i18n:generate-pot": "node i18n/locales/scripts/json-to-pot",
"create:component-sfc": "remake component",
"create:story": "remake story",
"create:component-storybook-test": "remake component-storybook-test",
@@ -86,8 +85,9 @@
},
"devDependencies": {
"@babel/parser": "^7.24.8",
+ "@intlify/core-base": "^10.0.4",
"@nuxt/test-utils": "^3.14.4",
- "@nuxtjs/i18n": "8.5.5",
+ "@nuxtjs/i18n": "^9.1.0",
"@nuxtjs/storybook": "8.3.2",
"@playwright/test": "1.48.2",
"@storybook-vue/nuxt": "8.3.2",
diff --git a/frontend/src/app.vue b/frontend/src/app.vue
index 19d5c0250..c8d93f8d5 100644
--- a/frontend/src/app.vue
+++ b/frontend/src/app.vue
@@ -35,11 +35,7 @@ const headerHeight = computed(() => {
return `--header-height: ${uiStore.headerHeight}px`
})
-const head = useLocaleHead({
- addDirAttribute: true,
- identifierAttribute: "id",
- addSeoAttributes: true,
-})
+const head = useLocaleHead({ dir: true, key: "id", seo: true })
useHead({
bodyAttrs: { class: darkMode.cssClass },
@@ -78,7 +74,7 @@ onMounted(() => {
<template>
<div>
- <Html :lang="head.htmlAttrs.lang" :dir="head.htmlAttrs.dir">
+ <Html :lang="head.htmlAttrs?.lang" :dir="head.htmlAttrs?.dir">
<Head>
<template v-for="link in head.link" :key="link.id">
<Link
diff --git a/frontend/src/components/VErrorSection/VErrorImage.vue b/frontend/src/components/VErrorSection/VErrorImage.vue
index 236b66ba4..40b7fe49c 100644
--- a/frontend/src/components/VErrorSection/VErrorImage.vue
+++ b/frontend/src/components/VErrorSection/VErrorImage.vue
@@ -24,7 +24,7 @@ const props = defineProps<{
errorCode: "NO_RESULT" | "SERVER_TIMEOUT"
}>()
-const i18n = useI18n({ useScope: "global" })
+const { t } = useI18n({ useScope: "global" })
const images = Object.fromEntries(
imageInfo.errors.map((errorItem) => {
@@ -38,7 +38,7 @@ const images = Object.fromEntries(
license_version: image.license_version as LicenseVersion,
frontendMediaType: "image",
}
- errorImage.attribution = getAttribution(errorImage, i18n)
+ errorImage.attribution = getAttribution(errorImage, t)
return [errorItem.error, errorImage]
})
)
diff --git a/frontend/src/components/VLicense/VLicense.vue b/frontend/src/components/VLicense/VLicense.vue
index 4406a2d80..7c0327aa6 100644
--- a/frontend/src/components/VLicense/VLicense.vue
+++ b/frontend/src/components/VLicense/VLicense.vue
@@ -39,15 +39,15 @@ const props = withDefaults(
const { effectiveColorMode } = useDarkMode()
-const i18n = useI18n({ useScope: "global" })
+const { t } = useI18n({ useScope: "global" })
const iconNames = computed(() => getElements(props.license))
const licenseName = computed(() => {
const licenseKey =
props.license === "sampling+" ? props.license : camelCase(props.license)
return {
- readable: i18n.t(`licenseReadableNames.${licenseKey}`),
- full: getFullLicenseName(props.license, "", i18n),
+ readable: t(`licenseReadableNames.${licenseKey}`),
+ full: getFullLicenseName(props.license, "", t),
}
})
</script>
diff --git a/frontend/src/components/VMediaInfo/VCopyLicense.vue b/frontend/src/components/VMediaInfo/VCopyLicense.vue
index 2a1435fb9..970af5066 100644
--- a/frontend/src/components/VMediaInfo/VCopyLicense.vue
+++ b/frontend/src/components/VMediaInfo/VCopyLicense.vue
@@ -16,9 +16,9 @@ const props = defineProps<{ media: Media }>()
const richRef = ref<HTMLElement | null>(null)
-const i18n = useI18n({ useScope: "global" })
+const { t } = useI18n({ useScope: "global" })
const getAttributionMarkup = (options?: AttributionOptions) =>
- getAttribution(props.media, i18n, options)
+ getAttribution(props.media, t, options)
const { $sendCustomEvent } = useNuxtApp()
diff --git a/frontend/src/components/VMediaInfo/VMediaDetails.vue b/frontend/src/components/VMediaInfo/VMediaDetails.vue
index cb52ed332..0e3a36926 100644
--- a/frontend/src/components/VMediaInfo/VMediaDetails.vue
+++ b/frontend/src/components/VMediaInfo/VMediaDetails.vue
@@ -14,7 +14,7 @@ import VMediaTags from "~/components/VMediaInfo/VMediaTags.vue"
const props = defineProps<{ media: AudioDetail | ImageDetail }>()
-const i18n = useI18n({ useScope: "global" })
+const { t } = useI18n({ useScope: "global" })
const metadata = computed<null | Metadata[]>(() => {
if (!props.media) {
@@ -28,7 +28,7 @@ const metadata = computed<null | Metadata[]>(() => {
type: props.media.filetype,
}
: {}
- return getMediaMetadata(props.media, i18n, imageInfo)
+ return getMediaMetadata(props.media, t, imageInfo)
})
</script>
diff --git a/frontend/src/components/VMediaInfo/VMediaLicense.vue b/frontend/src/components/VMediaInfo/VMediaLicense.vue
index 434575174..7bb171207 100644
--- a/frontend/src/components/VMediaInfo/VMediaLicense.vue
+++ b/frontend/src/components/VMediaInfo/VMediaLicense.vue
@@ -16,16 +16,16 @@ const props = defineProps<{
licenseUrl: string
}>()
-const i18n = useI18n({ useScope: "global" })
+const { t } = useI18n({ useScope: "global" })
const { $sendCustomEvent } = useNuxtApp()
const isLicense = computed(() => isLicenseFn(props.license))
const headerText = computed(() => {
const licenseOrTool = isLicense.value ? "license" : "tool"
- return i18n.t(`mediaDetails.reuse.${licenseOrTool}Header`)
+ return t(`mediaDetails.reuse.${licenseOrTool}Header`)
})
const fullLicenseName = computed(() =>
- getFullLicenseName(props.license, props.licenseVersion, i18n)
+ getFullLicenseName(props.license, props.licenseVersion, t)
)
const sendVisitLicensePage = () => {
diff --git a/frontend/src/components/VMediaInfo/meta/VMetadata.stories.ts b/frontend/src/components/VMediaInfo/meta/VMetadata.stories.ts
index 7edbb4e7e..fbbe0d5ac 100644
--- a/frontend/src/components/VMediaInfo/meta/VMetadata.stories.ts
+++ b/frontend/src/components/VMediaInfo/meta/VMetadata.stories.ts
@@ -45,10 +45,10 @@ const Template: Omit<Story, "args"> = {
},
sourceNames: { audio: [testAudio.source], image: [testImage.source] },
})
- const i18n = useI18n({ useScope: "global" })
+ const { t } = useI18n({ useScope: "global" })
const data = [
{
- metadata: getMediaMetadata(testImage, i18n, {
+ metadata: getMediaMetadata(testImage, t, {
width: testImage.width,
height: testImage.height,
type: testImage.filetype,
@@ -56,7 +56,7 @@ const Template: Omit<Story, "args"> = {
media: testImage,
},
{
- metadata: getMediaMetadata(testAudio, i18n),
+ metadata: getMediaMetadata(testAudio, t),
media: testAudio,
},
]
diff --git a/frontend/src/composables/use-collection-meta.ts b/frontend/src/composables/use-collection-meta.ts
index de1a4108b..860306faa 100644
--- a/frontend/src/composables/use-collection-meta.ts
+++ b/frontend/src/composables/use-collection-meta.ts
@@ -1,5 +1,3 @@
-import { useI18n } from "#imports"
-
import { computed } from "vue"
import { useProviderStore } from "~/stores/provider"
@@ -7,15 +5,16 @@ import type { SupportedMediaType } from "~/constants/media"
import type { CollectionParams } from "~/types/search"
import type { ComputedRef } from "vue"
+import type { Composer } from "vue-i18n"
export const useCollectionMeta = ({
collectionParams,
mediaType,
- i18n,
+ t,
}: {
collectionParams: ComputedRef<CollectionParams | null>
mediaType: SupportedMediaType
- i18n: ReturnType<typeof useI18n>
+ t: Composer["t"]
}) => {
const pageTitle = computed(() => {
const params = collectionParams.value
@@ -30,11 +29,11 @@ export const useCollectionMeta = ({
params.source,
mediaType
)
- return `${i18n.t(`collection.pageTitle.source.${mediaType}`, { source: sourceName })} | Openverse`
+ return `${t(`collection.pageTitle.source.${mediaType}`, { source: sourceName })} | Openverse`
}
if (params.collection === "tag") {
- return `${i18n.t(`collection.pageTitle.tag.${mediaType}`, { tag: params.tag })} | Openverse`
+ return `${t(`collection.pageTitle.tag.${mediaType}`, { tag: params.tag })} | Openverse`
}
}
diff --git a/frontend/src/composables/use-collection.ts b/frontend/src/composables/use-collection.ts
index 581a38f6a..ecaadb107 100644
--- a/frontend/src/composables/use-collection.ts
+++ b/frontend/src/composables/use-collection.ts
@@ -23,14 +23,14 @@ export const useCollection = <T extends SupportedMediaType>({
const media = ref(mediaStore.resultItems[mediaType]) as Ref<ResultType[]>
const creatorUrl = ref<string>()
- const i18n = useI18n({ useScope: "global" })
+ const { t } = useI18n({ useScope: "global" })
const collectionLabel = computed(() => {
if (!collectionParams.value) {
return ""
}
const { collection, ...params } = collectionParams.value
- return i18n.t(`collection.ariaLabel.${collection}.image`, { ...params })
+ return t(`collection.ariaLabel.${collection}.image`, { ...params })
})
const fetchMedia = async (
@@ -59,7 +59,7 @@ export const useCollection = <T extends SupportedMediaType>({
const { pageTitle } = useCollectionMeta({
collectionParams,
mediaType,
- i18n,
+ t,
})
return {
diff --git a/frontend/src/error.vue b/frontend/src/error.vue
index e001afd5f..3ab7bcaab 100644
--- a/frontend/src/error.vue
+++ b/frontend/src/error.vue
@@ -38,11 +38,7 @@ const featureFlagStore = useFeatureFlagStore()
featureFlagStore.initFromQuery(route.query)
const darkMode = useDarkMode()
-const head = useLocaleHead({
- addDirAttribute: true,
- identifierAttribute: "id",
- addSeoAttributes: true,
-})
+const head = useLocaleHead({ dir: true, key: "id", seo: true })
useHead({
bodyAttrs: { class: darkMode.cssClass },
@@ -71,7 +67,7 @@ useHead({
<template>
<div>
- <Html :lang="head.htmlAttrs.lang" :dir="head.htmlAttrs.dir">
+ <Html :lang="head.htmlAttrs?.lang" :dir="head.htmlAttrs?.dir">
<Head>
<template v-for="link in head.link" :key="link.id">
<Link
diff --git a/frontend/src/locales/README.md b/frontend/src/locales/README.md
deleted file mode 100644
index 1045e325f..000000000
--- a/frontend/src/locales/README.md
+++ /dev/null
@@ -1,6 +0,0 @@
-# Locales
-
-The primary internationalisation file is
-[`scripts/en.json5`](./scripts/en.json5). All `.json` files present in this
-directory are re-generated when updating translations, so they should not be
-modified.
diff --git a/frontend/src/pages/image/[id]/report.vue b/frontend/src/pages/image/[id]/report.vue
index 3d5070079..e11d1ee5e 100644
--- a/frontend/src/pages/image/[id]/report.vue
+++ b/frontend/src/pages/image/[id]/report.vue
@@ -28,13 +28,13 @@ definePageMeta({
}),
})
-const i18n = useI18n({ useScope: "global" })
+const { t } = useI18n({ useScope: "global" })
const singleResultStore = useSingleResultStore()
const image = computed(() => singleResultStore.image)
const attributionMarkup = computed(() =>
image.value
- ? getAttribution(image.value, i18n, {
+ ? getAttribution(image.value, t, {
includeIcons: false,
})
: ""
diff --git a/frontend/src/utils/attribution-html.ts b/frontend/src/utils/attribution-html.ts
index d470b5d45..394601935 100644
--- a/frontend/src/utils/attribution-html.ts
+++ b/frontend/src/utils/attribution-html.ts
@@ -3,8 +3,7 @@
* For any changes made here, please make the corresponding changes in the
* backend, or open an issue to track it.
*/
-
-import { useI18n } from "#imports"
+import enJson from "~~/i18n/locales/en.json"
import type { Media } from "~/types/media"
import {
@@ -14,7 +13,7 @@ import {
} from "~/utils/license"
import type { LicenseElement } from "~/constants/license"
-import enJson from "~/locales/en.json"
+import type { Composer } from "vue-i18n"
/* Helper functions */
@@ -196,13 +195,13 @@ export interface AttributionOptions {
* Get the HTML markup for properly attributing the given media item.
*
* @param mediaItem - the media item being attributed
- * @param i18n - the i18n instance to access translations
+ * @param t - the i18n `t` function to access translations
* @param includePreview - whether to include the preview markup in the HTML
* @returns the HTML markup of the attribution
*/
export const getAttribution = (
mediaItem: AttributableMedia,
- i18n: ReturnType<typeof useI18n> | null = null,
+ t: Composer["t"] | null = null,
{ includeIcons, isPlaintext, isXml }: AttributionOptions = {
isPlaintext: false,
includeIcons: true,
@@ -216,8 +215,12 @@ export const getAttribution = (
const isPd = isPublicDomain(mediaItem.license)
const i18nBase = "mediaDetails.reuse.credit"
- const tFn = i18n
- ? (key: string, values?: unknown) => i18n.t(`${i18nBase}.${key}`, values)
+
+ const tFn = t
+ ? (key: string, values?: Record<string, unknown>) =>
+ values
+ ? t(`${i18nBase}.${key}`, values as Record<string, unknown>)
+ : t(`${i18nBase}.${key}`)
: fakeT
/* Title */
@@ -238,7 +241,7 @@ export const getAttribution = (
const fullLicenseName = getFullLicenseName(
mediaItem.license,
mediaItem.license_version,
- i18n
+ t
)
let licenseIcons = ""
if (includeIcons && mediaItem.license) {
diff --git a/frontend/src/utils/license.ts b/frontend/src/utils/license.ts
index b5f51f4bf..b67d3344d 100644
--- a/frontend/src/utils/license.ts
+++ b/frontend/src/utils/license.ts
@@ -3,9 +3,6 @@
* For any changes made here, please make the corresponding changes in the
* backend, or open an issue to track it.
*/
-
-import { useI18n } from "#imports"
-
import type {
License,
LicenseVersion,
@@ -18,25 +15,27 @@ import {
} from "~/constants/license"
import { camelCase } from "~/utils/case"
+import type { Composer } from "vue-i18n"
+
/**
* Get the full name of the license in a displayable format from the license
* slug and version.
*
* @param license - the slug of the license
* @param licenseVersion - the version number of the license
- * @param i18n - the i18n instance to access translations
+ * @param t - the t i18n function to access translations
* @returns the full name of the license
*/
export const getFullLicenseName = (
license: License,
licenseVersion: LicenseVersion = "", // unknown version
- i18n: ReturnType<typeof useI18n> | null = null
+ t: Composer["t"] | null = null
): string => {
let licenseName
// PDM has no abbreviation
- if (license === "pdm" && i18n) {
- licenseName = i18n.t(`licenseReadableNames.${camelCase(license)}`)
+ if (license === "pdm" && !!t) {
+ licenseName = t(`licenseReadableNames.${camelCase(license)}`)
} else {
licenseName = license.toUpperCase().replace("SAMPLING", "Sampling")
}
diff --git a/frontend/src/utils/metadata.ts b/frontend/src/utils/metadata.ts
index c39b20d45..0ea4d99f8 100644
--- a/frontend/src/utils/metadata.ts
+++ b/frontend/src/utils/metadata.ts
@@ -1,27 +1,24 @@
-import { useI18n } from "#imports"
-
import { capitalCase } from "~/utils/case"
import type { AudioDetail, ImageDetail, Metadata } from "~/types/media"
import { AUDIO, IMAGE } from "~/constants/media"
import { useProviderStore } from "~/stores/provider"
-const getImageType = (
- imageType: string | undefined,
- i18n: ReturnType<typeof useI18n>
-) => {
+import type { Composer } from "vue-i18n"
+
+const getImageType = (imageType: string | undefined, t: Composer["t"]) => {
if (imageType) {
if (imageType.split("/").length > 1) {
return imageType.split("/")[1]
}
return imageType
}
- return i18n.t("mediaDetails.information.unknown")
+ return t("mediaDetails.information.unknown")
}
-const getAudioType = (audio: AudioDetail, i18n: ReturnType<typeof useI18n>) => {
+const getAudioType = (audio: AudioDetail, t: Composer["t"]) => {
if (!audio.alt_files) {
- return audio.filetype ?? i18n.t("mediaDetails.information.unknown")
+ return audio.filetype ?? t("mediaDetails.information.unknown")
}
const altFormats = audio.alt_files
.map((altFile) => altFile.filetype)
@@ -35,7 +32,7 @@ const getAudioType = (audio: AudioDetail, i18n: ReturnType<typeof useI18n>) => {
export const getMediaMetadata = (
media: AudioDetail | ImageDetail,
- i18n: ReturnType<typeof useI18n>,
+ t: Composer["t"],
imageInfo?: { width?: number; height?: number; type?: string }
) => {
const metadata: Metadata[] = []
@@ -62,7 +59,7 @@ export const getMediaMetadata = (
if (media.category) {
metadata.push({
label: "mediaDetails.information.category",
- value: i18n.t(
+ value: t(
`filters.${media.frontendMediaType}Categories.${media.category}`
),
})
@@ -70,8 +67,8 @@ export const getMediaMetadata = (
const mediaTypeString =
media.frontendMediaType === IMAGE
- ? getImageType(imageInfo?.type, i18n)
- : getAudioType(media, i18n)
+ ? getImageType(imageInfo?.type, t)
+ : getAudioType(media, t)
metadata.push({
label: "mediaDetails.information.type",
value: mediaTypeString.toUpperCase(),
@@ -80,7 +77,7 @@ export const getMediaMetadata = (
if (media.frontendMediaType === IMAGE) {
metadata.push({
label: "imageDetails.information.dimensions",
- value: `${i18n.t("imageDetails.information.sizeInPixels", {
+ value: `${t("imageDetails.information.sizeInPixels", {
width: imageInfo?.width,
height: imageInfo?.height,
})}`,
diff --git a/frontend/src/vue-i18n.ts b/frontend/src/vue-i18n.ts
deleted file mode 100644
index 748f17e27..000000000
--- a/frontend/src/vue-i18n.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import { defineI18nConfig } from "#imports"
-
-// import fallbackLocale from "~/locales/scripts/locale-fallback.json"
-
-export default defineI18nConfig(() => {
- return {
- legacy: false,
- globalInjection: true,
- fallbackLocale: "en",
- silentFallbackWarn: true,
- pluralizationRules: {
- /**
- * @param choice - a choice index given by the input to $tc: $tc('header.filterButton.withCount', choiceIndex)
- * @param choicesLength - an overall amount of available choices
- * @returns a final choice index to select plural word by
- */
- ru: function (choice: number, choicesLength: number) {
- if (choice === 0) {
- return 0
- }
-
- const teen = choice > 10 && choice < 20
- const endsWithOne = choice % 10 === 1
-
- if (choicesLength < 4) {
- return !teen && endsWithOne ? 1 : 2
- }
- if (!teen && endsWithOne) {
- return 1
- }
- if (!teen && choice % 10 >= 2 && choice % 10 <= 4) {
- return 2
- }
-
- return choicesLength < 4 ? 2 : 3
- },
- },
- }
-})
diff --git a/frontend/test/README.md b/frontend/test/README.md
index 84464a379..66535e2c2 100644
--- a/frontend/test/README.md
+++ b/frontend/test/README.md
@@ -1,7 +1,7 @@
# /locales/ directory
Normally when you build Openverse, you download the updated information about
-locales and translation files to `src/locales` folder. To prevent too many
+locales and translation files to `i18n/locales` folder. To prevent too many
requests during CI, we save the locale files that are necessary to run the app
during Playwright tests.
diff --git a/frontend/test/playwright/e2e/filters.spec.ts b/frontend/test/playwright/e2e/filters.spec.ts
index 30953eb25..8f3828582 100644
--- a/frontend/test/playwright/e2e/filters.spec.ts
+++ b/frontend/test/playwright/e2e/filters.spec.ts
@@ -21,7 +21,7 @@ import {
import { t } from "~~/test/playwright/utils/i18n"
-import enMessages from "~/locales/en.json"
+import enMessages from "~~/i18n/locales/en.json"
import {
supportedSearchTypes,
diff --git a/frontend/test/playwright/playwright.config.ts b/frontend/test/playwright/playwright.config.ts
index 9d6f0735d..d92e83cdc 100644
--- a/frontend/test/playwright/playwright.config.ts
+++ b/frontend/test/playwright/playwright.config.ts
@@ -41,6 +41,8 @@ const webServer =
NUXT_PUBLIC_PLAUSIBLE_API_HOST: "http://localhost:50290",
NUXT_PUBLIC_PLAUSIBLE_AUTO_PAGEVIEWS: "false",
NUXT_PUBLIC_PLAUSIBLE_IGNORED_HOSTNAMES: "[]",
+ // Necessary for i18n tests
+ NUXT_PUBLIC_I18N_BASE_URL: "https://openverse.org",
},
}
: undefined
diff --git a/frontend/test/playwright/utils/i18n.ts b/frontend/test/playwright/utils/i18n.ts
index b9716a17f..07fa7dbb5 100644
--- a/frontend/test/playwright/utils/i18n.ts
+++ b/frontend/test/playwright/utils/i18n.ts
@@ -2,7 +2,7 @@ import rtlMessages from "~~/test/locales/ar.json"
import esMessages from "~~/test/locales/es.json"
import ruMessages from "~~/test/locales/ru.json"
-import enMessages from "~/locales/en.json"
+import enMessages from "~~/i18n/locales/en.json"
const messages: Record<string, Record<string, unknown>> = {
ltr: enMessages,
diff --git a/frontend/test/unit/specs/utils/attribution-html.spec.ts b/frontend/test/unit/specs/utils/attribution-html.spec.ts
index 8df12dc6f..83d4dde4a 100644
--- a/frontend/test/unit/specs/utils/attribution-html.spec.ts
+++ b/frontend/test/unit/specs/utils/attribution-html.spec.ts
@@ -5,6 +5,8 @@ import { i18n } from "~~/test/unit/test-utils/i18n"
import type { AttributableMedia } from "~/utils/attribution-html"
import { getAttribution } from "~/utils/attribution-html"
+const t = i18n.t
+
const mediaItem: AttributableMedia = {
originalTitle: "Title",
foreign_landing_url: "https://foreign.landing/url",
@@ -22,7 +24,7 @@ describe("getAttribution", () => {
it("returns attribution for media with i18n", async () => {
const attributionText =
'"Title" by Creator is marked with Public Domain Mark 1.0 .'
- document.body.innerHTML = getAttribution(mediaItem, i18n)
+ document.body.innerHTML = getAttribution(mediaItem, t)
const attributionP = document.getElementsByClassName("attribution")[0]
expect(attributionP.textContent?.trim()).toEqual(attributionText)
})
@@ -38,7 +40,7 @@ describe("getAttribution", () => {
it("uses generic title if not known", async () => {
const mediaItemNoTitle = { ...mediaItem, originalTitle: "" }
- const attrText = getAttribution(mediaItemNoTitle, i18n, {
+ const attrText = getAttribution(mediaItemNoTitle, t, {
isPlaintext: true,
})
const expectation =
@@ -48,7 +50,7 @@ describe("getAttribution", () => {
it("omits creator if not known", async () => {
const mediaItemNoCreator = { ...mediaItem, creator: undefined }
- const attrText = getAttribution(mediaItemNoCreator, i18n, {
+ const attrText = getAttribution(mediaItemNoCreator, t, {
isPlaintext: true,
})
const expectation = '"Title" is marked with Public Domain Mark 1.0'
@@ -60,7 +62,7 @@ describe("getAttribution", () => {
...mediaItem,
originalTitle: '<script>console.log("HELLO");</script>',
}
- const attrText = getAttribution(mediaItemWithHtml, i18n)
+ const attrText = getAttribution(mediaItemWithHtml, t)
const expectation =
"&lt;script&gt;console.log(&quot;HELLO&quot;);&lt;/script&gt;"
expect(attrText).toContain(expectation)
@@ -68,16 +70,16 @@ describe("getAttribution", () => {
})
it("does not use anchors in plain-text mode", async () => {
- document.body.innerHTML = getAttribution(mediaItem, i18n)
+ document.body.innerHTML = getAttribution(mediaItem, t)
expect(document.getElementsByTagName("a")).not.toHaveLength(0)
- document.body.innerHTML = getAttribution(mediaItem, i18n, {
+ document.body.innerHTML = getAttribution(mediaItem, t, {
isPlaintext: true,
})
expect(document.getElementsByTagName("a")).toHaveLength(0)
})
it("renders the correct text in plain-text mode", async () => {
- const attrText = getAttribution(mediaItem, i18n, { isPlaintext: true })
+ const attrText = getAttribution(mediaItem, t, { isPlaintext: true })
const expectation =
'"Title" by Creator is marked with Public Domain Mark 1.0. To view the terms, visit https://license/url?ref=openverse.'
expect(attrText).toEqual(expectation)
@@ -85,7 +87,7 @@ describe("getAttribution", () => {
it("skips the link if URL is missing", async () => {
const mediaItemNoLicenseUrl = { ...mediaItem, license_url: undefined }
- const attrText = getAttribution(mediaItemNoLicenseUrl, i18n, {
+ const attrText = getAttribution(mediaItemNoLicenseUrl, t, {
isPlaintext: true,
})
const antiExpectation = "To view"
@@ -93,9 +95,9 @@ describe("getAttribution", () => {
})
it("does not add license element icons in no-icons mode", () => {
- document.body.innerHTML = getAttribution(mediaItem, i18n)
+ document.body.innerHTML = getAttribution(mediaItem, t)
expect(document.getElementsByTagName("img")).not.toHaveLength(0)
- document.body.innerHTML = getAttribution(mediaItem, i18n, {
+ document.body.innerHTML = getAttribution(mediaItem, t, {
includeIcons: false,
})
expect(document.getElementsByTagName("img")).toHaveLength(0)
diff --git a/frontend/test/unit/specs/utils/license.spec.ts b/frontend/test/unit/specs/utils/license.spec.ts
index 76be57460..3365f1202 100644
--- a/frontend/test/unit/specs/utils/license.spec.ts
+++ b/frontend/test/unit/specs/utils/license.spec.ts
@@ -5,6 +5,8 @@ import { i18n } from "~~/test/unit/test-utils/i18n"
import { getFullLicenseName, getElements } from "~/utils/license"
import type { License, LicenseVersion } from "~/constants/license"
+const t = i18n.t
+
describe("getFullLicenseName", () => {
it.each`
license | licenseVersion | sendI18n | fullName
@@ -29,7 +31,7 @@ describe("getFullLicenseName", () => {
fullName: string
}) => {
expect(
- getFullLicenseName(license, licenseVersion, sendI18n ? i18n : null)
+ getFullLicenseName(license, licenseVersion, sendI18n ? t : null)
).toBe(fullName)
}
)
diff --git a/frontend/test/unit/test-utils/i18n.js b/frontend/test/unit/test-utils/i18n.js
deleted file mode 100644
index 74d6f80ca..000000000
--- a/frontend/test/unit/test-utils/i18n.js
+++ /dev/null
@@ -1,21 +0,0 @@
-import { createI18n } from "vue-i18n"
-
-import { computed } from "vue"
-
-import messages from "~/locales/en.json"
-
-const globalizedI18n = () => {
- const i18n = createI18n({
- locale: "en",
- fallbackLocale: "en",
- legacy: false,
- messages: {
- en: messages,
- },
- })
- i18n.t = i18n.global.t
- i18n.localeProperties = computed(() => ({ code: "en", dir: "ltr" }))
- return i18n
-}
-
-export const i18n = globalizedI18n()
diff --git a/frontend/test/unit/test-utils/i18n.ts b/frontend/test/unit/test-utils/i18n.ts
new file mode 100644
index 000000000..d1c96953f
--- /dev/null
+++ b/frontend/test/unit/test-utils/i18n.ts
@@ -0,0 +1,33 @@
+import { createI18n } from "vue-i18n"
+
+import { computed } from "vue"
+
+import messages from "~~/i18n/locales/en.json"
+
+const globalizedI18n = () => {
+ const i18n = createI18n({
+ locale: "en",
+ fallbackLocale: "en",
+ legacy: false,
+ messages: {
+ en: messages,
+ "en-US": messages,
+ ar: {},
+ ru: {},
+ },
+ })
+ return {
+ ...i18n,
+ t: i18n.global.t,
+ localeProperties: computed(() => ({
+ code: "en",
+ dir: "ltr",
+ nativeName: "English",
+ translated: 100,
+ })),
+ }
+}
+
+export const i18n = globalizedI18n()
+
+export const t = i18n.global.t
diff --git a/packages/js/eslint-plugin/src/configs/vue.ts b/packages/js/eslint-plugin/src/configs/vue.ts
index eeb072cac..dabbdf451 100644
--- a/packages/js/eslint-plugin/src/configs/vue.ts
+++ b/packages/js/eslint-plugin/src/configs/vue.ts
@@ -18,7 +18,7 @@ export default tseslint.config(
files: ["*.vue", "**/*.vue"],
settings: {
"vue-i18n": {
- localeDir: "./frontend/src/locales/*.{json}",
+ localeDir: "./frontend/i18n/locales/*.{json}",
messageSyntaxVersion: "^9.0.0",
},
},
@@ -147,7 +147,7 @@ export default tseslint.config(
name: "openverse:vue:json-i18n-settings",
settings: {
"vue-i18n": {
- localeDir: "./frontend/src/locales/*.{json}",
+ localeDir: "./frontend/i18n/locales/*.json",
messageSyntaxVersion: "^9.0.0",
},
},
@@ -155,20 +155,9 @@ export default tseslint.config(
},
{
name: "openverse:vue:i18n-translation-strings",
- files: ["frontend/src/locales/en.json5", "frontend/test/locales/*.json"],
-
- extends: [...eslintPluginVueI18n.configs["flat/recommended"]],
+ files: ["frontend/i18n/data/en.json5", "frontend/test/locales/*.json"],
rules: {
"@openverse/translation-strings": ["error"],
- },
- },
- {
- name: "openverse:case:locales-exceptions",
- files: [
- "frontend/src/locales/scripts/en.json5",
- "frontend/test/locales/*.json",
- ],
- rules: {
"jsonc/key-name-casing": [
"error",
{
@@ -182,7 +171,7 @@ export default tseslint.config(
},
{
name: "openverse:locales-quotes",
- files: ["frontend/src/locales/scripts/en.json5"],
+ files: ["frontend/i18n/data/en.json5"],
rules: {
"jsonc/quote-props": "off",
"jsonc/quotes": "off",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index b1054c48e..0ebd01f2b 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -70,19 +70,19 @@ importers:
version: 1.6.8
'@nuxtjs/plausible':
specifier: ^1.0.3
'@nuxtjs/robots':
specifier: ^4.0.2
'@nuxtjs/sitemap':
specifier: ^6.0.0
'@nuxtjs/tailwindcss':
specifier: ^6.12.1
'@pinia/nuxt':
specifier: ^0.6.1
'@sentry/node':
specifier: ^8.26.0
version: 8.26.0
@@ -138,24 +138,27 @@ importers:
'@babel/parser':
specifier: ^7.24.8
version: 7.25.7
+ '@intlify/core-base':
+ specifier: ^10.0.4
+ version: 10.0.4
'@nuxt/test-utils':
specifier: ^3.14.4
'@nuxtjs/i18n':
- specifier: 8.5.5
+ specifier: ^9.1.0
'@nuxtjs/storybook':
specifier: 8.3.2
'@playwright/test':
specifier: 1.48.2
version: 1.48.2
'@storybook-vue/nuxt':
specifier: 8.3.2
'@storybook/addon-essentials':
specifier: ^8.3.6
+ version: 8.3.6([email protected])
'@storybook/addon-interactions':
specifier: ^8.3.6
version: 8.3.6([email protected])
@@ -200,7 +203,7 @@ importers:
version: 7.0.1
nuxt:
specifier: 3.13.2
rimraf:
specifier: ^6.0.1
version: 6.0.1
@@ -621,8 +624,8 @@ packages:
resolution: {integrity: sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g==}
engines: {node: '>=6.9.0'}
- '@babel/[email protected]':
- resolution: {integrity: sha512-Sl8oN9bGfRlNUA2jzfzoHEZxFBDliBlwi5mPVCAWKSlBNkXXJOHpu7SDOqjF6mRoTa6GNX/1kAWG3Tr+YQ3N7A==}
+ '@babel/[email protected]':
+ resolution: {integrity: sha512-i2VbegsRfwa9yq3xmfDX3tG2yh9K0cCqwpSyVG2nPxifh0EOnucAZUeO/g4lW2Zfg03aPJNtPfxQbDHzXc7H+w==}
engines: {node: '>=6.9.0'}
@@ -1157,9 +1160,9 @@ packages:
resolution: {integrity: sha512-JBxkERygn7Bv/GbN5Rv8Ul6LVknS+5Bp6RgDC/O8gEBU/yeH5Ui5C/OlWrTb6qct7LjjfT6Re2NxB0ln0yYybA==}
engines: {node: '>=18.18'}
- '@intlify/[email protected]':
- resolution: {integrity: sha512-UovJl10oBIlmYEcWw+VIHdKY5Uv5sdPG0b/b6bOYxGLln3UwB75+2dlc0F3Fsa0RhoznQ5Rp589/BZpABpE4Xw==}
- engines: {node: '>= 14.16'}
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-19dunbgM4wuCvi2xSai2PKhXkcKGjlbJhNWm9BCQWkUYcPmXwzptNWOE0O7OSrhNlEDxwpkHsJzZ/vLbCkpElw==}
+ engines: {node: '>= 18'}
peerDependencies:
petite-vue-i18n: '*'
vue-i18n: '*'
@@ -1169,12 +1172,16 @@ packages:
vue-i18n:
optional: true
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-GG428DkrrWCMhxRMRQZjuS7zmSUzarYcaHJqG9VB8dXAxw4iQDoKVQ7ChJRB6ZtsCsX3Jse1PEUlHrJiyQrOTg==}
+ engines: {node: '>= 16'}
+
'@intlify/[email protected]':
resolution: {integrity: sha512-+bcQRkJO9pcX8d0gel9ZNfrzU22sZFSA0WVhfXrf5jdJOS24a+Bp8pozuS9sBI9Hk/tGz83pgKfmqcn/Ci7/8w==}
engines: {node: '>= 16'}
- '@intlify/[email protected]':
- resolution: {integrity: sha512-R+l9DRqzfK0yT9UgaCq3sl24NJAP4f/djAu4z9zLknAUBEal2q/tXFV+oGzcGpvi3uXWNvF9Gctj+IsuPwJjoA==}
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-YVb0Hk0vgulAhC/uq5CMUXLMcmDL+24FWcjRk2RMn2EF8ZrM3ZV9+8dGOKextntN1/RtjK3RvoHicF48vMyYkA==}
engines: {node: '>= 16'}
'@intlify/[email protected]':
@@ -1183,37 +1190,69 @@ packages:
peerDependencies:
eslint: ^8.0.0 || ^9.0.0-0
- '@intlify/[email protected]':
- resolution: {integrity: sha512-cgfrtD3qu3BPJ47gfZ35J2LJpI64Riic0K8NGgid5ilyPXRQTNY7mXlT/B+HZYQg1hmBxKa5G5HJXyAZ4R2H5A==}
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-hFMcqWXCoFNZkraa+JF7wzByGdE0vGi8rUs7CTFrE4hE3X2u9QcelH8VRO8mPgJDH+TgatzvrVp6iZsWVluk2A==}
engines: {node: '>= 18'}
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-AFbhEo10DP095/45EauinQJ5hJ3rJUmuuqltGguvc3WsvezZN+g8qNHLGWKu60FHQVizMrQY7VJ+zVlBXlQQkQ==}
+ engines: {node: '>= 16'}
+
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-yMXfN4hg/EeSdtWfmoMrwB9X4TXwkBoZlTIpNydQaW9y0tSJHGnUPRoahtkbsyACCm9leSJINLY4jQ0rK6BK0Q==}
+ engines: {node: '>= 16'}
+
'@intlify/[email protected]':
resolution: {integrity: sha512-SKsVa4ajYGBVm7sHMXd5qX70O2XXjm55zdZB3VeMFCvQyvLew/dLvq3MqnaIsTMF1VkkOb9Ttr6tHcMlyPDL9w==}
engines: {node: '>= 16'}
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-ukFn0I01HsSgr3VYhYcvkTCLS7rGa0gw4A4AMpcy/A9xx/zRJy7PS2BElMXLwUazVFMAr5zuiTk3MQeoeGXaJg==}
+ engines: {node: '>= 16'}
+
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-Md/4T/QOx7wZ7zqVzSsMx2M/9Mx/1nsgsjXS5SFIowFKydqUhMz7K+y7pMFh781aNYz+rGXYwad8E9/+InK9SA==}
+ engines: {node: '>= 16'}
+
'@intlify/[email protected]':
resolution: {integrity: sha512-u3b6BKGhE6j/JeRU6C/RL2FgyJfy6LakbtfeVF8fJXURpZZTzfh3e05J0bu0XPw447Q6/WUp3C4ajv4TMS4YsQ==}
engines: {node: '>= 16'}
- '@intlify/[email protected]':
- resolution: {integrity: sha512-q1zJhA/WpoLBzAAuKA5/AEp0e+bMOM10ll/HxT4g1VAw/9JhC4TTobP9KobKH90JMZ4U2daLFlYQfKNd29lpqw==}
- engines: {node: '>= 14.16'}
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-76huP8TpMOtBMLsYYIMLNbqMPXJ7+Q6xcjP6495h/pmbOQ7sw/DB8E0OFvDFeIZ2571a4ylzJnz+KMuYbAs1xA==}
+ engines: {node: '>= 18'}
peerDependencies:
petite-vue-i18n: '*'
+ vue: ^3.2.25
vue-i18n: '*'
- vue-i18n-bridge: '*'
peerDependenciesMeta:
petite-vue-i18n:
optional: true
vue-i18n:
optional: true
- vue-i18n-bridge:
- optional: true
- '@intlify/[email protected]':
- resolution: {integrity: sha512-yCBNcuZQ49iInqmWC2xfW0rgEQyNtCM8C8KcWKTXxyscgUE1+48gjLgZZqP75MjhlApxwph7ZMWLqyABkSgxQA==}
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-8i3uRdAxCGzuHwfmHcVjeLQBtysQB2aXl/ojoagDut5/gY5lvWCQ2+cnl2TiqE/fXj/D8EhWG/SLKA7qz4a3QA==}
engines: {node: '>= 18'}
+ '@intlify/[email protected]':
+ resolution: {integrity: sha512-MtvfJnb4aklpCU5Q/dkWkBT/vGsp3qERiPIwtTq5lX4PCLHtUprAJZp8wQj5ZcwDaFCU7+yVMjYbeXpIf927cA==}
+ engines: {node: '>= 18'}
+ peerDependencies:
+ '@intlify/shared': ^9.0.0 || ^10.0.0
+ '@vue/compiler-dom': ^3.0.0
+ vue: ^3.0.0
+ vue-i18n: ^9.0.0 || ^10.0.0
+ peerDependenciesMeta:
+ '@intlify/shared':
+ optional: true
+ '@vue/compiler-dom':
+ optional: true
+ vue:
+ optional: true
+ vue-i18n:
+ optional: true
+
'@ioredis/[email protected]':
resolution: {integrity: sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg==}
@@ -1372,10 +1411,18 @@ packages:
resolution: {integrity: sha512-KvRw21zU//wdz25IeE1E5m/aFSzhJloBRAQtv+evcFeZvuroIxpIQuUqhbzuwznaUwpiWbmwlcsp5uOWmi4vwA==}
engines: {node: ^14.18.0 || >=16.10.0}
+ resolution: {integrity: sha512-r9r8bISBBisvfcNgNL3dSIQHSBe0v5YkX5zwNblIC2T0CIEgxEVoM5rq9O5wqgb5OEydsHTtT2hL57vdv6VT2w==}
+ engines: {node: ^14.18.0 || >=16.10.0}
+
resolution: {integrity: sha512-CCZgpm+MkqtOMDEgF9SWgGPBXlQ01hV/6+2reDEpJuqFPGzV8HYKPBcIFvn7/z5ahtgutHLzjP71Na+hYcqSpw==}
engines: {node: ^14.18.0 || >=16.10.0}
+ resolution: {integrity: sha512-A1d/08ueX8stTXNkvGqnr1eEXZgvKn+vj6s7jXhZNWApUSqMgItU4VK28vrrdpKbjIPwq2SwhnGOHUYvN9HwCQ==}
+ engines: {node: ^14.18.0 || >=16.10.0}
+
resolution: {integrity: sha512-h4YJ1d32cU7tDKjjhjtIIEck4WF/w3DTQBT348E9Pz85YLttnLqktLM0Ez9Xc2LzCeUgBDQv1el7Ob/zT3KUqg==}
hasBin: true
@@ -1427,8 +1474,8 @@ packages:
peerDependencies:
vue: ^3.3.4
- '@nuxtjs/[email protected]':
- resolution: {integrity: sha512-HVXRy61VBACIwmap1WxuhT9nNf6liU9L9LQSB6D7LDJ+8w57Cc6qWHRJ7dNI9sI/IQ2FQWk7PkTWriybAd3MlQ==}
+ '@nuxtjs/[email protected]':
+ resolution: {integrity: sha512-2wDdZsGgvr6SWMSUaTgQhk7ytVuca3RkTR1zijDaQ6u6wnk8MeVPujINVBO/U6ufYTggSf+TM66R7bzGYf/brg==}
engines: {node: ^14.16.0 || >=16.11.0}
'@nuxtjs/[email protected]':
@@ -1935,8 +1982,8 @@ packages:
resolution: {integrity: sha512-iKnFXr7NkdZAIHiIWE+BX5ULi/ucVFYWD6TbAV+rZctiRTY2PL6tsIKhoIOaoskiWAkgu+VsbXgUVDNLHf+InQ==}
engines: {node: '>= 8.0.0'}
- '@rollup/[email protected]':
- resolution: {integrity: sha512-/FIdS3PyZ39bjZlwqFnWqCOVnW7o963LtKMwQOD0NhQqw22gSr2YY1afu3FxRip4ZCZNsD5jq6Aaz6QV3D/Njw==}
+ '@rollup/[email protected]':
+ resolution: {integrity: sha512-Pnsb6f32CD2W3uCaLZIzDmeFyQ2b8UWMFI7xtwUezpcGBDVDW6y9XgAWIlARiGAo6eNF5FK5aQTr0LFyNyqq5A==}
engines: {node: '>=14.0.0'}
peerDependencies:
rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
@@ -2583,6 +2630,10 @@ packages:
resolution: {integrity: sha512-gPLpLtrj9aMHOvxJkSbDBmbRuYdtiEbnvO25bCMza3DhMjTQw0u7Y1M+YR5JPbMsXXnSPuCf5hfq0nEkQDL/JQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-QRGy8ADi4J7ii95xz4UoiymmmMd/zuy9azCaamnZ3FM8T5fZcex8UfJcjkiEZjJSztKfEBe3dZ5T/5RHAmw2mA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
'@typescript-eslint/[email protected]':
resolution: {integrity: sha512-bwuU4TAogPI+1q/IJSKuD4shBLc/d2vGcRT588q+jzayQyjVK2X6v/fbR4InY2U2sgf8MEvVCqEWUzYzgBNcGQ==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -2596,6 +2647,10 @@ packages:
resolution: {integrity: sha512-VwDwMF1SZ7wPBUZwmMdnDJ6sIFk4K4s+ALKLP6aIQsISkPv8jhiw65sAK6SuWODN/ix+m+HgbYDkH+zLjrzvOA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-n3Gt8Y/KyJNe0S3yDCD2RVKrHBC4gTUcLTebVBXacPy091E6tNspFLKRXlk3hwT4G55nfr1n2AdFqi/XMxzmPQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
'@typescript-eslint/[email protected]':
resolution: {integrity: sha512-mME5MDwGe30Pq9zKPvyduyU86PH7aixwqYR2grTglAdB+AN8xXQ1vFGpYaUSJ5o5P/5znsSBeNcs5g5/2aQwow==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -2605,6 +2660,15 @@ packages:
typescript:
optional: true
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-1eMp2JgNec/niZsR7ioFBlsh/Fk0oJbhaqO0jRyQBMgkz7RrFfkqF9lYYmBoGBaSiLnu8TAPQTwoTUiSTUW9dg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '*'
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
'@typescript-eslint/[email protected]':
resolution: {integrity: sha512-UTTuDIX3fkfAz6iSVa5rTuSfWIYZ6ATtEocQ/umkRSyC9O919lbZ8dcH7mysshrCdrAM03skJOEYaBugxN+M6A==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
@@ -2615,6 +2679,10 @@ packages:
resolution: {integrity: sha512-PChz8UaKQAVNHghsHcPyx1OMHoFRUEA7rJSK/mDhdq85bk+PLsUHUBqTQTFt18VJZbmxBovM65fezlheQRsSDA==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ '@typescript-eslint/[email protected]':
+ resolution: {integrity: sha512-h8vYOulWec9LhpwfAdZf2bjr8xIp0KNKnpgqSz0qqYYKAW/QZKw3ktRndbiAtUz4acH4QLQavwZBYCc0wulA/Q==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==}
@@ -4545,6 +4613,10 @@ packages:
resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}
engines: {node: '>= 4'}
+ resolution: {integrity: sha512-InwqeHHN2XpumIkMvpl/DCJVrAHgCsG5+cn1XlnLWGwtZBm8QJfSusItfrwx81CTp5agNZqpKU2J/ccC5nGT4A==}
+ engines: {node: '>= 4'}
+
resolution: {integrity: sha512-K6acvFaelNxx8wc2VjbIzXKDVB0Khs0QT35U6NkGfTdCmjLNcO2945m7RFNR9/RPVFm48hq7QPzK8uGH18HCGw==}
@@ -5312,8 +5384,8 @@ packages:
engines: {node: '>=10'}
hasBin: true
- resolution: {integrity: sha512-tN3dvVHYVz4DhSXinXIk7u9syPYaJvio118uomkovAtWBT+RdbP6Lfh/5Lvo519YMmwBafwlh20IPTXIStscpA==}
+ resolution: {integrity: sha512-xUsx5n/mN0uQf4V548PKQ+YShA4/IW0KI1dZhrNrPCLG+xizETbHTkOa1f8/xut9JRPp8kQuMnz0oqwkTiLo/A==}
resolution: {integrity: sha512-ySViT69/76t8VhE1xXHK6Ch4NcDd26gx0MzKXLO+F7NOtnqH68d9zF94nT8ZWSxXh8ELOERsnJO/sWt1xZYw5A==}
@@ -6651,8 +6723,8 @@ packages:
resolution: {integrity: sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==}
engines: {node: '>= 0.8'}
- resolution: {integrity: sha512-JPbdCEQLj1w5GilpiHAx3qJvFndqybBysA3qUOnznweH4QbNYUsW/ea8QzSrnh0vNsezMMw5bcVool8lM0gwzg==}
+ resolution: {integrity: sha512-Bc3YwwCB+OzldMxOXJIIvC6cPRWr/LxOp48CdQTOkPyk/t4JWWJbrilwBd7RJzKV8QW7tJkcgAmeuLLJugl5/w==}
resolution: {integrity: sha512-iCGQj+0l0HOdZ2AEeBADlsRC+vsnDsZsbdSiH1yNSjcfKM7fdpCMfqAL/dwF5BLiw/XhRft/Wax6zQbhq2BcjQ==}
@@ -7074,8 +7146,8 @@ packages:
resolution: {integrity: sha512-lRfVq8fE8gz6QMBuDM6a+LO3IAzTi05H6gCVaUpir2E1Rwpo4ZUog45KpNXKC/Mn3Yb9UDuHumeFTo9iV/D9FQ==}
engines: {node: '>=18'}
- resolution: {integrity: sha512-nNrVzcs93yrZQOW77qnyOVHtb68LegvhYFwxFMfuuWScmwQmyVCG/NBuN8tYsaGzgQUVYv34E/af+Cc9u4og4A==}
+ resolution: {integrity: sha512-VKAepeIb6BWLtBl4tmyHY1/7rJgz3ynmZrWf8cU1a+v5Uv/k1gyyAEeGBnYcrwy8bxG5sflxEx4a9VQUqOVHUA==}
resolution: {integrity: sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==}
@@ -7108,14 +7180,9 @@ packages:
vue-router:
optional: true
- resolution: {integrity: sha512-lBlHbfSFPToDYp9pjXlUEFVxYLaue9f9T1HC+4OHlmj+HnMDdz9oZY+erXfoCe/5V/7gKUSY2jpXPb9S7f0f/w==}
+ resolution: {integrity: sha512-5liCNPuJW8dqh3+DM6uNM2EI3MLLpCKp/KY+9pB5M2S2SR2qvvDHhKgBOaTWEbZTAws3CXfB0rKTIolWKL05VQ==}
engines: {node: '>=14.0.0'}
- peerDependencies:
- webpack-sources: ^3
- peerDependenciesMeta:
- webpack-sources:
- optional: true
resolution: {integrity: sha512-ARZYTXiC+e8z3lRM7/qY9oyaOkaozCeNd2xoz7sYK9fv7OLGhVsf+BZbmASqiK/HTZ7T6eAlnVq9JynZppyk3w==}
@@ -7165,8 +7232,8 @@ packages:
resolution: {integrity: sha512-4luGP9LMYszMRZwsvyUd9MrxgEGZdZuZgpVQHEEX0lCYFESasVRvZd0EYpCkOIbJKHMuv0LskpXc/8Un+MJzEQ==}
hasBin: true
- resolution: {integrity: sha512-nC5q0DnPEPVURPhfPQLahhSTnemVtPzdx7ofiRxXpOB2SYnb3MfdU3DVGyJdS8Lx+tBWeAePO8BfU/3EgksM7Q==}
+ resolution: {integrity: sha512-reBOnkJBFfBZ8pCKaeHgfZLcehXtM6UTxc+vqs1JvCps0c4amLNp3fhdGBZwYp+VLyoY9n3X5KOP7lCyWBUX9A==}
hasBin: true
@@ -7405,8 +7472,8 @@ packages:
peerDependencies:
eslint: '>=6.0.0'
- resolution: {integrity: sha512-mh0GIxx0wPtPlcB1q4k277y0iKgo25xmDPWioVVYanjPufDBpvu5ySTjP5wOrSvlYQ2m1xI+CFhGdauv/61uQg==}
+ resolution: {integrity: sha512-1xkzVxqBLk2ZFOmeI+B5r1J7aD/WtNJ4j9k2mcFcQo5BnOmHBmD7z4/oZohh96AAaRZ4Q7mNQvxc9h+aT+Md3w==}
engines: {node: '>= 16'}
peerDependencies:
vue: ^3.0.0
@@ -7449,10 +7516,6 @@ packages:
resolution: {integrity: sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g==}
engines: {node: '>=12'}
- resolution: {integrity: sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==}
- engines: {node: '>=10.13.0'}
-
resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==}
@@ -7905,7 +7968,7 @@ snapshots:
dependencies:
regenerator-runtime: 0.14.1
- '@babel/[email protected]': {}
+ '@babel/[email protected]': {}
dependencies:
@@ -8230,30 +8293,34 @@ snapshots:
'@humanwhocodes/[email protected]': {}
dependencies:
- '@intlify/message-compiler': 9.13.1
- '@intlify/shared': 9.13.1
+ '@intlify/message-compiler': 11.0.0-beta.1
+ '@intlify/shared': 11.0.0-beta.1
acorn: 8.14.0
escodegen: 2.1.0
estree-walker: 2.0.2
jsonc-eslint-parser: 2.4.0
- magic-string: 0.30.12
- mlly: 1.7.2
+ mlly: 1.7.3
source-map-js: 1.2.1
yaml-eslint-parser: 1.2.2
optionalDependencies:
+
+ '@intlify/[email protected]':
+ dependencies:
+ '@intlify/message-compiler': 10.0.4
+ '@intlify/shared': 10.0.4
'@intlify/[email protected]':
dependencies:
'@intlify/message-compiler': 9.13.1
'@intlify/shared': 9.13.1
- '@intlify/[email protected]':
+ '@intlify/[email protected]':
dependencies:
- '@intlify/core-base': 9.13.1
- '@intlify/shared': 9.13.1
+ '@intlify/core-base': 10.0.4
+ '@intlify/shared': 10.0.4
dependencies:
@@ -8280,24 +8347,41 @@ snapshots:
transitivePeerDependencies:
- supports-color
- '@intlify/[email protected]':
+ '@intlify/[email protected]':
+ dependencies:
+ '@intlify/core': 10.0.4
+ '@intlify/utils': 0.13.0
+
+ '@intlify/[email protected]':
+ dependencies:
+ '@intlify/shared': 10.0.4
+ source-map-js: 1.2.1
+
+ '@intlify/[email protected]':
dependencies:
- '@intlify/core': 9.13.1
- '@intlify/utils': 0.12.0
+ '@intlify/shared': 11.0.0-beta.1
+ source-map-js: 1.2.1
'@intlify/[email protected]':
dependencies:
'@intlify/shared': 9.13.1
source-map-js: 1.2.1
+ '@intlify/[email protected]': {}
+
+ '@intlify/[email protected]': {}
+
'@intlify/[email protected]': {}
dependencies:
- '@intlify/bundle-utils': 7.5.1([email protected]([email protected]([email protected])))
- '@intlify/shared': 9.13.1
- '@rollup/pluginutils': 5.1.2([email protected])
- '@vue/compiler-sfc': 3.5.12
+ '@eslint-community/eslint-utils': 4.4.0([email protected]([email protected]))
+ '@intlify/bundle-utils': 9.0.0([email protected]([email protected]([email protected])))
+ '@intlify/shared': 10.0.4
+ '@rollup/pluginutils': 5.1.3([email protected])
+ '@typescript-eslint/scope-manager': 8.15.0
+ '@typescript-eslint/typescript-estree': 8.15.0([email protected])
debug: 4.3.7([email protected])
fast-glob: 3.3.2
js-yaml: 4.1.0
@@ -8305,15 +8389,27 @@ snapshots:
pathe: 1.1.2
picocolors: 1.1.0
source-map-js: 1.2.1
- unplugin: 1.14.1([email protected])
+ unplugin: 1.16.0
+ vue: 3.5.12([email protected])
optionalDependencies:
transitivePeerDependencies:
+ - '@vue/compiler-dom'
+ - eslint
- rollup
- supports-color
- - webpack-sources
+ - typescript
+
+ '@intlify/[email protected]': {}
- '@intlify/[email protected]': {}
+ dependencies:
+ '@babel/parser': 7.25.7
+ optionalDependencies:
+ '@intlify/shared': 10.0.4
+ '@vue/compiler-dom': 3.5.12
+ vue: 3.5.12([email protected])
'@ioredis/[email protected]': {}
@@ -8486,7 +8582,7 @@ snapshots:
dependencies:
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
json5: 2.2.3
rollup: 4.22.4
@@ -8537,17 +8633,16 @@ snapshots:
'@nuxt/[email protected]': {}
dependencies:
- '@nuxt/schema': 3.13.2([email protected])([email protected])
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
+ '@nuxt/schema': 3.14.1592([email protected])([email protected])
execa: 7.2.0
vite: 5.4.10(@types/[email protected])([email protected])
transitivePeerDependencies:
- magicast
- rollup
- supports-color
- - webpack-sources
dependencies:
@@ -8562,12 +8657,12 @@ snapshots:
rc9: 2.1.2
semver: 7.6.3
dependencies:
'@antfu/utils': 0.7.10
'@nuxt/devtools-wizard': 1.6.0
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
'@vue/devtools-kit': 7.4.4
birpc: 0.2.17
@@ -8596,9 +8691,9 @@ snapshots:
simple-git: 3.27.0
sirv: 2.0.4
tinyglobby: 0.2.10
+ unimport: 3.13.2([email protected])
vite: 5.4.10(@types/[email protected])([email protected])
vite-plugin-vue-inspector: 5.1.3([email protected](@types/[email protected])([email protected]))
which: 3.0.1
ws: 8.18.0
@@ -8608,11 +8703,10 @@ snapshots:
- supports-color
- utf-8-validate
- vue
- - webpack-sources
dependencies:
- '@nuxt/schema': 3.13.2([email protected])([email protected])
+ '@nuxt/schema': 3.13.2([email protected])
c12: 1.11.2([email protected])
consola: 3.2.3
defu: 6.1.4
@@ -8623,22 +8717,48 @@ snapshots:
jiti: 1.21.6
klona: 2.0.6
knitwork: 1.1.0
- mlly: 1.7.2
+ mlly: 1.7.3
pathe: 1.1.2
pkg-types: 1.2.1
scule: 1.3.0
semver: 7.6.3
ufo: 1.5.4
- unctx: 2.3.1([email protected])
- untyped: 1.4.2
+ unctx: 2.3.1
+ unimport: 3.13.2([email protected])
+ untyped: 1.5.1
transitivePeerDependencies:
- magicast
- rollup
- supports-color
- - webpack-sources
+ dependencies:
+ '@nuxt/schema': 3.14.1592([email protected])([email protected])
+ c12: 2.0.1([email protected])
+ consola: 3.2.3
+ defu: 6.1.4
+ destr: 2.0.3
+ globby: 14.0.2
+ hash-sum: 2.0.0
+ ignore: 6.0.2
+ jiti: 2.4.0
+ klona: 2.0.6
+ knitwork: 1.1.0
+ mlly: 1.7.3
+ pathe: 1.1.2
+ pkg-types: 1.2.1
+ scule: 1.3.0
+ semver: 7.6.3
+ ufo: 1.5.4
+ unctx: 2.3.1
+ unimport: 3.13.2([email protected])
+ untyped: 1.5.1
+ transitivePeerDependencies:
+ - magicast
+ - rollup
+ - supports-color
+
dependencies:
compatx: 0.1.8
consola: 3.2.3
@@ -8647,19 +8767,38 @@ snapshots:
pathe: 1.1.2
pkg-types: 1.2.1
scule: 1.3.0
- std-env: 3.7.0
+ std-env: 3.8.0
ufo: 1.5.4
uncrypto: 0.1.3
- untyped: 1.4.2
+ unimport: 3.13.2([email protected])
+ untyped: 1.5.1
transitivePeerDependencies:
- rollup
- supports-color
- - webpack-sources
+ dependencies:
+ c12: 2.0.1([email protected])
+ compatx: 0.1.8
+ consola: 3.2.3
+ defu: 6.1.4
+ hookable: 5.5.3
+ pathe: 1.1.2
+ pkg-types: 1.2.1
+ scule: 1.3.0
+ std-env: 3.8.0
+ ufo: 1.5.4
+ uncrypto: 0.1.3
+ unimport: 3.13.2([email protected])
+ untyped: 1.5.1
+ transitivePeerDependencies:
+ - magicast
+ - rollup
+ - supports-color
+
dependencies:
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
ci-info: 4.0.0
consola: 3.2.3
create-require: 1.1.1
@@ -8676,17 +8815,16 @@ snapshots:
parse-git-config: 3.0.0
pathe: 1.1.2
rc9: 2.1.2
- std-env: 3.7.0
+ std-env: 3.8.0
transitivePeerDependencies:
- magicast
- rollup
- supports-color
- - webpack-sources
dependencies:
- '@nuxt/schema': 3.13.2([email protected])([email protected])
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
+ '@nuxt/schema': 3.14.1592([email protected])([email protected])
c12: 2.0.1([email protected])
consola: 3.2.3
defu: 6.1.4
@@ -8697,20 +8835,20 @@ snapshots:
h3: 1.12.0
local-pkg: 0.5.0
magic-string: 0.30.12
node-fetch-native: 1.6.4
ofetch: 1.4.1
pathe: 1.1.2
perfect-debounce: 1.0.0
radix3: 1.1.2
scule: 1.3.0
- std-env: 3.7.0
+ std-env: 3.8.0
tinyexec: 0.3.1
ufo: 1.5.4
unenv: 1.10.0
- unplugin: 1.14.1([email protected])
+ unplugin: 1.16.0
vite: 5.4.10(@types/[email protected])([email protected])
vue: 3.5.12([email protected])
optionalDependencies:
@@ -8726,11 +8864,10 @@ snapshots:
- magicast
- rollup
- supports-color
- - webpack-sources
dependencies:
+ '@nuxt/kit': 3.13.2([email protected])([email protected])
'@rollup/plugin-replace': 5.0.7([email protected])
@@ -8747,18 +8884,18 @@ snapshots:
h3: 1.12.0
knitwork: 1.1.0
magic-string: 0.30.12
- mlly: 1.7.2
+ mlly: 1.7.3
ohash: 1.1.4
pathe: 1.1.2
perfect-debounce: 1.0.0
pkg-types: 1.2.1
postcss: 8.4.47
rollup-plugin-visualizer: 5.12.0([email protected])
- std-env: 3.7.0
+ std-env: 3.8.0
strip-literal: 2.1.0
ufo: 1.5.4
unenv: 1.10.0
- unplugin: 1.14.1([email protected])
+ unplugin: 1.16.0
vite: 5.4.10(@types/[email protected])([email protected])
vite-node: 2.1.4(@types/[email protected])([email protected])
@@ -8786,16 +8923,15 @@ snapshots:
- vls
- vti
- vue-tsc
- - webpack-sources
dependencies:
- '@intlify/h3': 0.5.0
- '@intlify/shared': 9.13.1
- '@intlify/utils': 0.12.0
+ '@intlify/h3': 0.6.1
+ '@intlify/shared': 10.0.4
+ '@intlify/utils': 0.13.0
'@miyaneee/rollup-plugin-json5': 1.2.0([email protected])
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
'@rollup/plugin-yaml': 4.1.2([email protected])
'@vue/compiler-sfc': 3.5.12
debug: 4.3.7([email protected])
@@ -8804,46 +8940,47 @@ snapshots:
is-https: 4.0.0
knitwork: 1.1.0
magic-string: 0.30.12
- mlly: 1.7.2
+ mlly: 1.7.3
pathe: 1.1.2
scule: 1.3.0
sucrase: 3.35.0
ufo: 1.5.4
- unplugin: 1.14.1([email protected])
+ unplugin: 1.16.0
transitivePeerDependencies:
+ - '@vue/compiler-dom'
+ - eslint
- magicast
- petite-vue-i18n
- rollup
- supports-color
+ - typescript
- vue
- - vue-i18n-bridge
- - webpack-sources
dependencies:
'@barbapapazes/plausible-tracker': 0.5.3
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
defu: 6.1.4
transitivePeerDependencies:
- magicast
- rollup
- supports-color
- - webpack-sources
dependencies:
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
consola: 3.2.3
defu: 6.1.4
pathe: 1.1.2
pkg-types: 1.2.1
sirv: 2.0.4
- std-env: 3.7.0
+ std-env: 3.8.0
ufo: 1.5.4
transitivePeerDependencies:
- magicast
@@ -8851,17 +8988,16 @@ snapshots:
- supports-color
- vite
- vue
- - webpack-sources
dependencies:
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
chalk: 5.3.0
defu: 6.1.4
h3-compression: 0.3.2([email protected])
ofetch: 1.4.1
pathe: 1.1.2
pkg-types: 1.2.1
@@ -8877,13 +9013,12 @@ snapshots:
- supports-color
- vite
- vue
- - webpack-sources
dependencies:
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
'@storybook/core-common': 8.3.6([email protected])
'@storybook/core-server': 8.3.6([email protected])
chalk: 5.3.0
@@ -8921,11 +9056,10 @@ snapshots:
- vti
- vue
- vue-tsc
- - webpack-sources
dependencies:
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
autoprefixer: 10.4.20([email protected])
consola: 3.2.3
defu: 6.1.4
@@ -8936,14 +9070,13 @@ snapshots:
tailwind-config-viewer: 2.0.4([email protected])
tailwindcss: 3.4.6
ufo: 1.5.4
- unctx: 2.3.1([email protected])
+ unctx: 2.3.1
transitivePeerDependencies:
- magicast
- rollup
- supports-color
- ts-node
- uWebSockets.js
- - webpack-sources
'@octokit/[email protected]': {}
@@ -9342,9 +9475,9 @@ snapshots:
'@parcel/watcher-win32-ia32': 2.4.1
'@parcel/watcher-win32-x64': 2.4.1
dependencies:
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
transitivePeerDependencies:
- '@vue/composition-api'
@@ -9353,7 +9486,6 @@ snapshots:
- supports-color
- typescript
- vue
- - webpack-sources
optional: true
@@ -9408,7 +9540,7 @@ snapshots:
dependencies:
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
commondir: 1.0.1
estree-walker: 2.0.2
glob: 8.1.0
@@ -9419,7 +9551,7 @@ snapshots:
dependencies:
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
commondir: 1.0.1
estree-walker: 2.0.2
fdir: 6.4.2([email protected])
@@ -9431,7 +9563,7 @@ snapshots:
dependencies:
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
estree-walker: 2.0.2
magic-string: 0.30.12
optionalDependencies:
@@ -9439,13 +9571,13 @@ snapshots:
dependencies:
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
optionalDependencies:
rollup: 4.22.4
dependencies:
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
'@types/resolve': 1.20.2
deepmerge: 4.3.1
is-builtin-module: 3.2.1
@@ -9456,14 +9588,14 @@ snapshots:
dependencies:
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
magic-string: 0.30.12
optionalDependencies:
rollup: 4.22.4
dependencies:
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
magic-string: 0.30.12
optionalDependencies:
rollup: 4.22.4
@@ -9478,7 +9610,7 @@ snapshots:
dependencies:
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
resolve: 1.22.8
typescript: 5.6.3
optionalDependencies:
@@ -9487,7 +9619,7 @@ snapshots:
dependencies:
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
js-yaml: 4.1.0
tosource: 2.0.0-alpha.3
optionalDependencies:
@@ -9498,11 +9630,11 @@ snapshots:
estree-walker: 2.0.2
picomatch: 2.3.1
dependencies:
'@types/estree': 1.0.6
estree-walker: 2.0.2
- picomatch: 2.3.1
+ picomatch: 4.0.2
optionalDependencies:
rollup: 4.22.4
@@ -9675,21 +9807,21 @@ snapshots:
'@sinonjs/commons': 3.0.1
optional: true
dependencies:
- '@nuxt/schema': 3.13.2([email protected])([email protected])
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
+ '@nuxt/schema': 3.14.1592([email protected])([email protected])
'@rollup/plugin-replace': 6.0.1([email protected])
json-stable-stringify: 1.1.1
- mlly: 1.7.2
+ mlly: 1.7.3
ofetch: 1.4.1
pathe: 1.1.2
- unctx: 2.3.1([email protected])
+ unctx: 2.3.1
vite: 5.4.10(@types/[email protected])([email protected])
vue: 3.5.12([email protected])
@@ -9718,7 +9850,6 @@ snapshots:
- vls
- vti
- vue-tsc
- - webpack-sources
dependencies:
@@ -9744,11 +9875,11 @@ snapshots:
storybook: 8.3.6
ts-dedent: 2.2.0
dependencies:
'@mdx-js/react': 3.0.1(@types/[email protected])([email protected])
- '@storybook/csf-plugin': 8.3.6([email protected])([email protected])
+ '@storybook/csf-plugin': 8.3.6([email protected])
'@storybook/global': 5.0.0
'@types/react': 18.3.5
@@ -9759,15 +9890,13 @@ snapshots:
rehype-slug: 6.0.0
storybook: 8.3.6
ts-dedent: 2.2.0
- transitivePeerDependencies:
- - webpack-sources
dependencies:
'@storybook/addon-actions': 8.3.6([email protected])
'@storybook/addon-backgrounds': 8.3.6([email protected])
'@storybook/addon-controls': 8.3.6([email protected])
- '@storybook/addon-docs': 8.3.6([email protected])([email protected])
+ '@storybook/addon-docs': 8.3.6([email protected])
'@storybook/addon-highlight': 8.3.6([email protected])
'@storybook/addon-measure': 8.3.6([email protected])
'@storybook/addon-outline': 8.3.6([email protected])
@@ -9775,8 +9904,6 @@ snapshots:
'@storybook/addon-viewport': 8.3.6([email protected])
storybook: 8.3.6
ts-dedent: 2.2.0
- transitivePeerDependencies:
- - webpack-sources
dependencies:
@@ -9843,9 +9970,9 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1([email protected])
dependencies:
- '@storybook/csf-plugin': 8.3.6([email protected])([email protected])
+ '@storybook/csf-plugin': 8.3.6([email protected])
'@types/find-cache-dir': 3.2.1
browser-assert: 1.2.1
es-module-lexer: 1.5.4
@@ -9860,7 +9987,6 @@ snapshots:
typescript: 5.6.3
transitivePeerDependencies:
- supports-color
- - webpack-sources
dependencies:
@@ -9894,12 +10020,10 @@ snapshots:
- supports-color
- utf-8-validate
dependencies:
storybook: 8.3.6
- unplugin: 1.14.1([email protected])
- transitivePeerDependencies:
- - webpack-sources
+ unplugin: 1.16.0
'@storybook/[email protected]':
dependencies:
@@ -9950,9 +10074,9 @@ snapshots:
dependencies:
storybook: 8.3.6
dependencies:
find-package-json: 1.2.0
magic-string: 0.30.12
@@ -9966,7 +10090,6 @@ snapshots:
- supports-color
- vite-plugin-glimmerx
- vue
- - webpack-sources
dependencies:
@@ -10326,6 +10449,11 @@ snapshots:
'@typescript-eslint/types': 8.12.2
'@typescript-eslint/visitor-keys': 8.12.2
+ '@typescript-eslint/[email protected]':
+ dependencies:
+ '@typescript-eslint/types': 8.15.0
+ '@typescript-eslint/visitor-keys': 8.15.0
+
dependencies:
'@typescript-eslint/typescript-estree': 8.12.2([email protected])
@@ -10340,6 +10468,8 @@ snapshots:
'@typescript-eslint/[email protected]': {}
+ '@typescript-eslint/[email protected]': {}
+
'@typescript-eslint/[email protected]([email protected])':
dependencies:
'@typescript-eslint/types': 8.12.2
@@ -10355,6 +10485,21 @@ snapshots:
transitivePeerDependencies:
- supports-color
+ '@typescript-eslint/[email protected]([email protected])':
+ dependencies:
+ '@typescript-eslint/types': 8.15.0
+ '@typescript-eslint/visitor-keys': 8.15.0
+ debug: 4.3.7([email protected])
+ fast-glob: 3.3.2
+ is-glob: 4.0.3
+ minimatch: 9.0.5
+ semver: 7.6.3
+ ts-api-utils: 1.3.0([email protected])
+ optionalDependencies:
+ typescript: 5.6.3
+ transitivePeerDependencies:
+ - supports-color
+
dependencies:
'@eslint-community/eslint-utils': 4.4.0([email protected]([email protected]))
@@ -10371,6 +10516,11 @@ snapshots:
'@typescript-eslint/types': 8.12.2
eslint-visitor-keys: 3.4.3
+ '@typescript-eslint/[email protected]':
+ dependencies:
+ '@typescript-eslint/types': 8.15.0
+ eslint-visitor-keys: 4.2.0
+
'@ungap/[email protected]': {}
'@unhead/[email protected]':
@@ -10445,7 +10595,7 @@ snapshots:
istanbul-reports: 3.1.7
magic-string: 0.30.12
magicast: 0.3.5
- std-env: 3.7.0
+ std-env: 3.8.0
test-exclude: 7.0.1
tinyrainbow: 1.2.0
@@ -10548,7 +10698,7 @@ snapshots:
dependencies:
'@babel/types': 7.25.7
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
'@vue/compiler-sfc': 3.5.12
ast-kit: 1.1.0
local-pkg: 0.5.0
@@ -11132,7 +11282,7 @@ snapshots:
dotenv: 16.4.5
giget: 1.2.3
jiti: 1.21.6
- mlly: 1.7.2
+ mlly: 1.7.3
ohash: 1.1.4
pathe: 1.1.2
perfect-debounce: 1.0.0
@@ -11149,7 +11299,7 @@ snapshots:
dotenv: 16.4.5
giget: 1.2.3
jiti: 2.4.0
- mlly: 1.7.2
+ mlly: 1.7.3
ohash: 1.1.4
pathe: 1.1.2
perfect-debounce: 1.0.0
@@ -12272,7 +12422,7 @@ snapshots:
dependencies:
enhanced-resolve: 5.16.1
- mlly: 1.7.2
+ mlly: 1.7.3
pathe: 1.1.2
ufo: 1.5.4
@@ -12763,6 +12913,8 @@ snapshots:
+
@@ -12785,16 +12937,15 @@ snapshots:
module-details-from-path: 1.0.3
optional: true
dependencies:
- '@rollup/pluginutils': 5.1.2([email protected])
- mlly: 1.7.2
+ '@rollup/pluginutils': 5.1.3([email protected])
+ mlly: 1.7.3
pathe: 1.1.2
unenv: 1.10.0
- unplugin: 1.14.1([email protected])
+ unplugin: 1.16.0
transitivePeerDependencies:
- rollup
- - webpack-sources
@@ -13383,10 +13534,10 @@ snapshots:
h3: 1.12.0
http-shutdown: 1.2.2
jiti: 1.21.6
- mlly: 1.7.2
+ mlly: 1.7.3
node-forge: 1.3.1
pathe: 1.1.2
- std-env: 3.7.0
+ std-env: 3.8.0
ufo: 1.5.4
untun: 0.1.3
uqr: 0.1.2
@@ -13395,7 +13546,7 @@ snapshots:
dependencies:
- mlly: 1.7.2
+ mlly: 1.7.3
pkg-types: 1.2.1
@@ -13578,7 +13729,7 @@ snapshots:
dependencies:
acorn: 8.14.0
pathe: 1.1.2
@@ -13619,7 +13770,7 @@ snapshots:
node-gyp-build: 4.8.1
optional: true
dependencies:
'@cloudflare/kv-asset-handler': 0.3.4
'@netlify/functions': 2.8.1
@@ -13630,7 +13781,7 @@ snapshots:
'@rollup/plugin-node-resolve': 15.2.3([email protected])
'@rollup/plugin-replace': 5.0.7([email protected])
'@rollup/plugin-terser': 0.4.4([email protected])
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
'@types/http-proxy': 1.17.14
'@vercel/nft': 0.26.5([email protected])
archiver: 7.0.1
@@ -13662,7 +13813,7 @@ snapshots:
listhen: 1.7.2
magic-string: 0.30.12
mime: 4.0.3
- mlly: 1.7.2
+ mlly: 1.7.3
mri: 1.2.0
node-fetch-native: 1.6.4
ofetch: 1.4.1
@@ -13679,14 +13830,14 @@ snapshots:
semver: 7.6.3
serve-placeholder: 2.0.2
serve-static: 1.16.0
- std-env: 3.7.0
+ std-env: 3.8.0
ufo: 1.5.4
uncrypto: 0.1.3
- unctx: 2.3.1([email protected])
+ unctx: 2.3.1
unenv: 1.10.0
+ unimport: 3.13.2([email protected])
unstorage: 1.12.0([email protected])
- unwasm: 0.3.9([email protected])
+ unwasm: 0.3.9
transitivePeerDependencies:
- '@azure/app-configuration'
- '@azure/cosmos'
@@ -13707,7 +13858,6 @@ snapshots:
- magicast
- supports-color
- uWebSockets.js
- - webpack-sources
dependencies:
@@ -13809,27 +13959,26 @@ snapshots:
dependencies:
- '@nuxt/schema': 3.13.2([email protected])([email protected])
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
+ '@nuxt/schema': 3.14.1592([email protected])([email protected])
pkg-types: 1.2.1
site-config-stack: 2.2.18([email protected]([email protected]))
- std-env: 3.7.0
+ std-env: 3.8.0
ufo: 1.5.4
transitivePeerDependencies:
- magicast
- rollup
- supports-color
- vue
- - webpack-sources
dependencies:
- '@nuxt/schema': 3.13.2([email protected])([email protected])
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
+ '@nuxt/schema': 3.14.1592([email protected])([email protected])
pathe: 1.1.2
pkg-types: 1.2.1
sirv: 2.0.4
@@ -13841,16 +13990,15 @@ snapshots:
- supports-color
- vite
- vue
- - webpack-sources
dependencies:
'@nuxt/devalue': 2.0.2
- '@nuxt/schema': 3.13.2([email protected])([email protected])
+ '@nuxt/kit': 3.13.2([email protected])([email protected])
+ '@nuxt/schema': 3.13.2([email protected])
+ '@nuxt/telemetry': 2.6.0([email protected])([email protected])
'@unhead/dom': 1.11.10
'@unhead/shared': 1.11.10
'@unhead/ssr': 1.11.10
@@ -13873,14 +14021,14 @@ snapshots:
h3: 1.12.0
hookable: 5.5.3
ignore: 5.3.2
+ impound: 0.1.0([email protected])
jiti: 1.21.6
klona: 2.0.6
knitwork: 1.1.0
magic-string: 0.30.12
- mlly: 1.7.2
+ mlly: 1.7.3
nanotar: 0.1.1
nuxi: 3.14.0
nypm: 0.3.11
ofetch: 1.4.1
@@ -13891,20 +14039,20 @@ snapshots:
radix3: 1.1.2
scule: 1.3.0
semver: 7.6.3
- std-env: 3.7.0
+ std-env: 3.8.0
strip-literal: 2.1.0
tinyglobby: 0.2.6
ufo: 1.5.4
ultrahtml: 1.5.3
uncrypto: 0.1.3
- unctx: 2.3.1([email protected])
+ unctx: 2.3.1
unenv: 1.10.0
unhead: 1.11.10
- unplugin: 1.14.1([email protected])
+ unimport: 3.13.2([email protected])
+ unplugin: 1.16.0
unstorage: 1.12.0([email protected])
- untyped: 1.4.2
+ untyped: 1.5.1
vue: 3.5.12([email protected])
vue-bundle-renderer: 2.1.0
vue-devtools-stub: 0.1.0
@@ -13953,7 +14101,6 @@ snapshots:
- vls
- vti
- vue-tsc
- - webpack-sources
- xml2js
@@ -14243,7 +14390,7 @@ snapshots:
dependencies:
confbox: 0.1.8
- mlly: 1.7.2
+ mlly: 1.7.3
pathe: 1.1.2
@@ -15113,7 +15260,7 @@ snapshots:
dependencies:
@@ -15557,14 +15704,12 @@ snapshots:
dependencies:
acorn: 8.14.0
estree-walker: 3.0.3
magic-string: 0.30.12
- unplugin: 1.14.1([email protected])
- transitivePeerDependencies:
- - webpack-sources
+ unplugin: 1.16.0
@@ -15589,24 +15734,23 @@ snapshots:
dependencies:
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
acorn: 8.14.0
escape-string-regexp: 5.0.0
estree-walker: 3.0.3
fast-glob: 3.3.2
local-pkg: 0.5.0
magic-string: 0.30.12
- mlly: 1.7.2
+ mlly: 1.7.3
pathe: 1.1.2
pkg-types: 1.2.1
scule: 1.3.0
strip-literal: 2.1.0
- unplugin: 1.14.1([email protected])
+ unplugin: 1.16.0
transitivePeerDependencies:
- rollup
- - webpack-sources
dependencies:
@@ -15631,10 +15775,10 @@ snapshots:
dependencies:
'@babel/types': 7.25.7
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
ast-walker-scope: 0.6.2
chokidar: 3.6.0
@@ -15642,24 +15786,21 @@ snapshots:
json5: 2.2.3
local-pkg: 0.5.0
magic-string: 0.30.12
- mlly: 1.7.2
+ mlly: 1.7.3
pathe: 1.1.2
scule: 1.3.0
- unplugin: 1.14.1([email protected])
+ unplugin: 1.16.0
yaml: 2.5.1
optionalDependencies:
transitivePeerDependencies:
- rollup
- vue
- - webpack-sources
dependencies:
acorn: 8.14.0
webpack-virtual-modules: 0.6.2
- optionalDependencies:
- webpack-sources: 3.2.3
dependencies:
@@ -15684,28 +15825,26 @@ snapshots:
consola: 3.2.3
pathe: 1.1.2
dependencies:
'@babel/core': 7.25.7
- '@babel/standalone': 7.24.5
+ '@babel/standalone': 7.26.2
'@babel/types': 7.25.7
defu: 6.1.4
- jiti: 1.21.6
+ jiti: 2.4.0
mri: 1.2.0
scule: 1.3.0
transitivePeerDependencies:
- supports-color
dependencies:
knitwork: 1.1.0
magic-string: 0.30.12
- mlly: 1.7.2
+ mlly: 1.7.3
pathe: 1.1.2
pkg-types: 1.2.1
- unplugin: 1.14.1([email protected])
- transitivePeerDependencies:
- - webpack-sources
+ unplugin: 1.16.0
dependencies:
@@ -15788,10 +15927,10 @@ snapshots:
typescript: 5.6.3
vue-tsc: 2.1.10([email protected])
dependencies:
'@antfu/utils': 0.7.10
- '@rollup/pluginutils': 5.1.2([email protected])
+ '@rollup/pluginutils': 5.1.3([email protected])
debug: 4.3.7([email protected])
error-stack-parser-es: 0.1.5
fs-extra: 11.2.0
@@ -15801,7 +15940,7 @@ snapshots:
sirv: 2.0.4
vite: 5.4.10(@types/[email protected])([email protected])
optionalDependencies:
+ '@nuxt/kit': 3.14.1592([email protected])([email protected])
transitivePeerDependencies:
- rollup
- supports-color
@@ -15841,9 +15980,9 @@ snapshots:
redent: 4.0.0
dependencies:
transitivePeerDependencies:
- '@cucumber/cucumber'
- '@jest/globals'
@@ -15863,7 +16002,6 @@ snapshots:
- vitest
- vue
- vue-router
- - webpack-sources
dependencies:
@@ -15879,7 +16017,7 @@ snapshots:
expect-type: 1.1.0
magic-string: 0.30.12
pathe: 1.1.2
- std-env: 3.7.0
+ std-env: 3.8.0
tinybench: 2.9.0
tinyexec: 0.3.1
tinypool: 1.0.1
@@ -15979,10 +16117,10 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
- '@intlify/core-base': 9.13.1
- '@intlify/shared': 9.13.1
+ '@intlify/core-base': 10.0.4
+ '@intlify/shared': 10.0.4
'@vue/devtools-api': 6.6.4
vue: 3.5.12([email protected])
@@ -16025,9 +16163,6 @@ snapshots:
- optional: true
-