fix: set_url_seo and record imports refuse a locale the record does not have (WR-18)

A locale given with a URL write overrode the matched one unchecked, so
"xx" created an entry nothing ever reads while the answer reported
success. SetURLSEO (API, MCP, batch set_seo, records import) now requires
one of the record's locales and refuses others with api.locale_unknown.
This commit is contained in:
2026-10-27 15:37:31 +01:00
parent 24e6f384ca
commit cff2d29fdd
5 changed files with 23 additions and 2 deletions

View File

@@ -325,6 +325,7 @@ api:
canonical_invalid: Adres kanoniczny musi być ścieżką zaczynającą się od / lub pełnym adresem http(s).
bot_unknown: To nie jest bot AI z ekranu robots.txt.
value_invalid: Ta wartość jest tu nieprawidłowa.
locale_unknown: "Rekord pod tym adresem nie ma wersji językowej „:locale”."
type_unknown: Nie zarejestrowano typu treści o tym kluczu.
batch_too_large: "Partia może mieć najwyżej :max zmian."
change_not_found: Rekord wskazany w tej zmianie nie istnieje.