feat(back-end front-end): traslate alt and description images
All checks were successful
PR Checks / prettier-autofix (pull_request) Successful in 10s
PR Checks / security-sast (pull_request) Successful in 29s
PR Checks / test-backend (pull_request) Successful in 25s
PR Checks / test-frontend (pull_request) Successful in 1m4s

This commit is contained in:
2026-03-09 18:49:03 +01:00
parent 85598dee3b
commit e8ebef926e
18 changed files with 788 additions and 52 deletions

32
db.sql
View File

@@ -969,12 +969,44 @@ CREATE TABLE IF NOT EXISTS media_usage
sort_order integer NOT NULL DEFAULT 0,
is_primary boolean NOT NULL DEFAULT false,
is_active boolean NOT NULL DEFAULT true,
title_it text,
title_en text,
title_de text,
title_fr text,
alt_text_it text,
alt_text_en text,
alt_text_de text,
alt_text_fr text,
created_at timestamptz NOT NULL DEFAULT now()
);
CREATE INDEX IF NOT EXISTS ix_media_usage_scope
ON media_usage (usage_type, usage_key, is_active, sort_order);
ALTER TABLE media_usage
ADD COLUMN IF NOT EXISTS title_it text;
ALTER TABLE media_usage
ADD COLUMN IF NOT EXISTS title_en text;
ALTER TABLE media_usage
ADD COLUMN IF NOT EXISTS title_de text;
ALTER TABLE media_usage
ADD COLUMN IF NOT EXISTS title_fr text;
ALTER TABLE media_usage
ADD COLUMN IF NOT EXISTS alt_text_it text;
ALTER TABLE media_usage
ADD COLUMN IF NOT EXISTS alt_text_en text;
ALTER TABLE media_usage
ADD COLUMN IF NOT EXISTS alt_text_de text;
ALTER TABLE media_usage
ADD COLUMN IF NOT EXISTS alt_text_fr text;
ALTER TABLE quote_sessions
DROP CONSTRAINT IF EXISTS fk_quote_sessions_source_request;