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
9 lines
661 B
Plaintext
9 lines
661 B
Plaintext
# GET /api/greeting under different Accept-Language headers (Spring Boot's default LocaleResolver)
|
|
|
|
Accept-Language: mr-IN -> status=200 locale=mr_IN message=नमस्कार, Asha!
|
|
Accept-Language: hi -> status=200 locale=hi message=नमस्ते, Asha!
|
|
Accept-Language: mr;q=0.4, hi;q=0.9 -> status=200 locale=hi message=नमस्ते, Asha!
|
|
Accept-Language: en-GB -> status=200 locale=en_GB message=Hello, Asha!
|
|
Accept-Language: fr -> status=200 locale=fr message=Hello, Asha!
|
|
Accept-Language: (no header) -> status=200 locale=en_US message=Hello, Asha!
|