From faa4c42f205d3d3ffa02417cb2fc880635ca5367 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 7 Apr 2026 11:40:38 +0500 Subject: [PATCH] fix: add missing Paraglide compiled message files for new themes + aria-label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI svelte-check failed because Paraglide generates per-key .js files that must be committed — the compiler runs at build time in CI (svelte-kit sync) but the output directory is tracked in git, so new keys added to messages/*.json require the corresponding generated files to be committed manually when node is not available locally. Added: - messages/profile_theme_forest.js - messages/profile_theme_mono.js - messages/profile_theme_cyber.js - messages/_index.js: three new export lines Also fixed a11y warn: added aria-label='Close history' to the icon-only close button in the discover page history drawer. --- ui/src/lib/paraglide/messages/_index.js | 3 ++ .../paraglide/messages/profile_theme_cyber.js | 44 +++++++++++++++++++ .../messages/profile_theme_forest.js | 44 +++++++++++++++++++ .../paraglide/messages/profile_theme_mono.js | 44 +++++++++++++++++++ ui/src/routes/discover/+page.svelte | 1 + 5 files changed, 136 insertions(+) create mode 100644 ui/src/lib/paraglide/messages/profile_theme_cyber.js create mode 100644 ui/src/lib/paraglide/messages/profile_theme_forest.js create mode 100644 ui/src/lib/paraglide/messages/profile_theme_mono.js diff --git a/ui/src/lib/paraglide/messages/_index.js b/ui/src/lib/paraglide/messages/_index.js index 11a10d0..4d0931b 100644 --- a/ui/src/lib/paraglide/messages/_index.js +++ b/ui/src/lib/paraglide/messages/_index.js @@ -150,6 +150,9 @@ export * from './profile_theme_label.js' export * from './profile_theme_amber.js' export * from './profile_theme_slate.js' export * from './profile_theme_rose.js' +export * from './profile_theme_forest.js' +export * from './profile_theme_mono.js' +export * from './profile_theme_cyber.js' export * from './profile_theme_light.js' export * from './profile_theme_light_slate.js' export * from './profile_theme_light_rose.js' diff --git a/ui/src/lib/paraglide/messages/profile_theme_cyber.js b/ui/src/lib/paraglide/messages/profile_theme_cyber.js new file mode 100644 index 0000000..3d06538 --- /dev/null +++ b/ui/src/lib/paraglide/messages/profile_theme_cyber.js @@ -0,0 +1,44 @@ +/* eslint-disable */ +import { getLocale, experimentalStaticLocale } from '../runtime.js'; + +/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */ + +/** @typedef {{}} Profile_Theme_CyberInputs */ + +const en_profile_theme_cyber = /** @type {(inputs: Profile_Theme_CyberInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Cyberpunk`) +}; + +const ru_profile_theme_cyber = /** @type {(inputs: Profile_Theme_CyberInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Киберпанк`) +}; + +const id_profile_theme_cyber = /** @type {(inputs: Profile_Theme_CyberInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Cyberpunk`) +}; + +const pt_profile_theme_cyber = /** @type {(inputs: Profile_Theme_CyberInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Cyberpunk`) +}; + +const fr_profile_theme_cyber = /** @type {(inputs: Profile_Theme_CyberInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Cyberpunk`) +}; + +/** +* | output | +* | --- | +* | "Cyberpunk" | +* +* @param {Profile_Theme_CyberInputs} inputs +* @param {{ locale?: "en" | "ru" | "id" | "pt" | "fr" }} options +* @returns {LocalizedString} +*/ +export const profile_theme_cyber = /** @type {((inputs?: Profile_Theme_CyberInputs, options?: { locale?: "en" | "ru" | "id" | "pt" | "fr" }) => LocalizedString) & import('../runtime.js').MessageMetadata} */ ((inputs = {}, options = {}) => { + const locale = experimentalStaticLocale ?? options.locale ?? getLocale() + if (locale === "en") return en_profile_theme_cyber(inputs) + if (locale === "ru") return ru_profile_theme_cyber(inputs) + if (locale === "id") return id_profile_theme_cyber(inputs) + if (locale === "pt") return pt_profile_theme_cyber(inputs) + return fr_profile_theme_cyber(inputs) +}); diff --git a/ui/src/lib/paraglide/messages/profile_theme_forest.js b/ui/src/lib/paraglide/messages/profile_theme_forest.js new file mode 100644 index 0000000..a5ab5d5 --- /dev/null +++ b/ui/src/lib/paraglide/messages/profile_theme_forest.js @@ -0,0 +1,44 @@ +/* eslint-disable */ +import { getLocale, experimentalStaticLocale } from '../runtime.js'; + +/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */ + +/** @typedef {{}} Profile_Theme_ForestInputs */ + +const en_profile_theme_forest = /** @type {(inputs: Profile_Theme_ForestInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Forest`) +}; + +const ru_profile_theme_forest = /** @type {(inputs: Profile_Theme_ForestInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Лес`) +}; + +const id_profile_theme_forest = /** @type {(inputs: Profile_Theme_ForestInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Hutan`) +}; + +const pt_profile_theme_forest = /** @type {(inputs: Profile_Theme_ForestInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Floresta`) +}; + +const fr_profile_theme_forest = /** @type {(inputs: Profile_Theme_ForestInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Forêt`) +}; + +/** +* | output | +* | --- | +* | "Forest" | +* +* @param {Profile_Theme_ForestInputs} inputs +* @param {{ locale?: "en" | "ru" | "id" | "pt" | "fr" }} options +* @returns {LocalizedString} +*/ +export const profile_theme_forest = /** @type {((inputs?: Profile_Theme_ForestInputs, options?: { locale?: "en" | "ru" | "id" | "pt" | "fr" }) => LocalizedString) & import('../runtime.js').MessageMetadata} */ ((inputs = {}, options = {}) => { + const locale = experimentalStaticLocale ?? options.locale ?? getLocale() + if (locale === "en") return en_profile_theme_forest(inputs) + if (locale === "ru") return ru_profile_theme_forest(inputs) + if (locale === "id") return id_profile_theme_forest(inputs) + if (locale === "pt") return pt_profile_theme_forest(inputs) + return fr_profile_theme_forest(inputs) +}); diff --git a/ui/src/lib/paraglide/messages/profile_theme_mono.js b/ui/src/lib/paraglide/messages/profile_theme_mono.js new file mode 100644 index 0000000..4868ff2 --- /dev/null +++ b/ui/src/lib/paraglide/messages/profile_theme_mono.js @@ -0,0 +1,44 @@ +/* eslint-disable */ +import { getLocale, experimentalStaticLocale } from '../runtime.js'; + +/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */ + +/** @typedef {{}} Profile_Theme_MonoInputs */ + +const en_profile_theme_mono = /** @type {(inputs: Profile_Theme_MonoInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Mono`) +}; + +const ru_profile_theme_mono = /** @type {(inputs: Profile_Theme_MonoInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Моно`) +}; + +const id_profile_theme_mono = /** @type {(inputs: Profile_Theme_MonoInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Mono`) +}; + +const pt_profile_theme_mono = /** @type {(inputs: Profile_Theme_MonoInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Mono`) +}; + +const fr_profile_theme_mono = /** @type {(inputs: Profile_Theme_MonoInputs) => LocalizedString} */ () => { + return /** @type {LocalizedString} */ (`Mono`) +}; + +/** +* | output | +* | --- | +* | "Mono" | +* +* @param {Profile_Theme_MonoInputs} inputs +* @param {{ locale?: "en" | "ru" | "id" | "pt" | "fr" }} options +* @returns {LocalizedString} +*/ +export const profile_theme_mono = /** @type {((inputs?: Profile_Theme_MonoInputs, options?: { locale?: "en" | "ru" | "id" | "pt" | "fr" }) => LocalizedString) & import('../runtime.js').MessageMetadata} */ ((inputs = {}, options = {}) => { + const locale = experimentalStaticLocale ?? options.locale ?? getLocale() + if (locale === "en") return en_profile_theme_mono(inputs) + if (locale === "ru") return ru_profile_theme_mono(inputs) + if (locale === "id") return id_profile_theme_mono(inputs) + if (locale === "pt") return pt_profile_theme_mono(inputs) + return fr_profile_theme_mono(inputs) +}); diff --git a/ui/src/routes/discover/+page.svelte b/ui/src/routes/discover/+page.svelte index 342c7f6..da22ca3 100644 --- a/ui/src/routes/discover/+page.svelte +++ b/ui/src/routes/discover/+page.svelte @@ -458,6 +458,7 @@