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
828 B
Plaintext
12 lines
828 B
Plaintext
# GET /api/cart?items=1234567 in three languages, and two ways to keep Latin digits
|
|
|
|
Accept-Language: en -> You have 1,234,567 items in your cart.
|
|
Accept-Language: hi -> आपकी कार्ट में 1,234,567 वस्तुएँ हैं।
|
|
Accept-Language: mr -> तुमच्या कार्टमध्ये १,२३४,५६७ वस्तू आहेत.
|
|
|
|
--- fix 1: the client asks for Latin digits (Unicode extension -u-nu-latn) ---
|
|
Accept-Language: mr-IN-u-nu-latn -> locale=mr_IN_#u-nu-latn तुमच्या कार्टमध्ये 1,234,567 वस्तू आहेत.
|
|
|
|
--- fix 2: the server formats the number itself and passes text (GET /api/cart-latin) ---
|
|
Accept-Language: mr -> तुमच्या कार्टमध्ये 1,234,567 वस्तू आहेत.
|