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
12 lines
550 B
Plaintext
12 lines
550 B
Plaintext
# The JVM's default locale is Hindi: what does a French or an English request get?
|
|
|
|
Locale.getDefault() while these ran: hi
|
|
|
|
--- spring.messages.fallback-to-system-locale left at its default ---
|
|
Accept-Language: fr -> status=200 locale=fr message=नमस्ते, Asha!
|
|
Accept-Language: en -> status=200 locale=en message=नमस्ते, Asha!
|
|
|
|
--- spring.messages.fallback-to-system-locale=false ---
|
|
Accept-Language: fr -> status=200 locale=fr message=Hello, Asha!
|
|
Accept-Language: en -> status=200 locale=en message=Hello, Asha!
|