Files
spring-boot-demo/i18n/output/08-validation-messages.txt
Claude 2cbf31e7d5 Add i18n module: MessageSource, LocaleResolver and localized ProblemDetail
English, Marathi and Hindi bundles behind one small web app, with tests that run it on a real
port and write the transcripts (01-11) quoted in the article, plus a jar-metadata capture (12).

Co-Authored-By: Claude Sonnet 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Uu7q8vPeREyT4218EJPzz1
2026-09-24 09:54:55 +00:00

40 lines
1.8 KiB
Plaintext

# POST /api/customers with an invalid body, four Accept-Language values
body: {"name":"","email":"x","age":10}
--- Accept-Language: en ---
status=400 Content-Type=application/problem+json
title: Validation failed
detail: The request has invalid fields.
error: age: You must be at least 18 years old.
error: city: must not be null
error: email: Enter a valid email address.
error: name: Name is required.
--- Accept-Language: mr ---
status=400 Content-Type=application/problem+json
title: पडताळणी अयशस्वी
detail: विनंतीतील काही फील्ड चुकीची आहेत.
error: age: तुमचे वय किमान 18 वर्षे असणे आवश्यक आहे.
error: city: रिक्त नसावे.
error: email: कृपया वैध ईमेल पत्ता द्या.
error: name: नाव आवश्यक आहे.
--- Accept-Language: hi ---
status=400 Content-Type=application/problem+json
title: सत्यापन विफल
detail: अनुरोध के कुछ फ़ील्ड अमान्य हैं।
error: age: आपकी आयु कम से कम 18 वर्ष होनी चाहिए।
error: city: खाली नहीं होना चाहिए।
error: email: कृपया सही ईमेल पता दर्ज करें।
error: name: नाम आवश्यक है।
--- Accept-Language: fr ---
status=400 Content-Type=application/problem+json
title: Validation failed
detail: The request has invalid fields.
error: age: You must be at least 18 years old.
error: city: ne doit pas être nul
error: email: Enter a valid email address.
error: name: Name is required.