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
13 lines
747 B
Plaintext
13 lines
747 B
Plaintext
# spring.web.locale on its own, and with spring.web.locale-resolver=fixed
|
|
|
|
|
|
--- spring.web.locale=hi (spring.web.locale-resolver left at accept-header) ---
|
|
Accept-Language: (no header) -> status=200 locale=hi message=नमस्ते, Asha!
|
|
Accept-Language: mr -> status=200 locale=mr message=नमस्कार, Asha!
|
|
Accept-Language: fr -> status=200 locale=fr message=Hello, Asha!
|
|
|
|
--- spring.web.locale=hi and spring.web.locale-resolver=fixed ---
|
|
Accept-Language: (no header) -> status=200 locale=hi message=नमस्ते, Asha!
|
|
Accept-Language: mr -> status=200 locale=hi message=नमस्ते, Asha!
|
|
Accept-Language: fr -> status=200 locale=hi message=नमस्ते, Asha!
|