Across different locales, ranges are formatted differently. This is both in terms of space characters and the range-based character. Taking {0} and {1} as the two entities that constitute the range, here are the correct patterns by locale:
{0} - {1}: my, pt_PT, ro
{0} – {1}: bg, bs, hr, jv, sk
{0}-{1}: ca, da, es, eu, fil, fy, gu, it, ka, ml, nl, sq, th, tt, vi, yue, yue_Hans, zh, zh_Hant
{0}‒{1}: et, nn, sv
{0}—{1}: to
{0}~{1}: ko
{0}~{1}: ja
{0}–{1}: all others
A locale argument is required here. The default should be set to NULL which then utilizes the {0}–{1} pattern (which is different than the {0} — {1} pattern that is in use now).
Across different locales, ranges are formatted differently. This is both in terms of space characters and the range-based character. Taking
{0}and{1}as the two entities that constitute the range, here are the correct patterns by locale:{0} - {1}: my, pt_PT, ro{0} – {1}: bg, bs, hr, jv, sk{0}-{1}: ca, da, es, eu, fil, fy, gu, it, ka, ml, nl, sq, th, tt, vi, yue, yue_Hans, zh, zh_Hant{0}‒{1}: et, nn, sv{0}—{1}: to{0}~{1}: ko{0}~{1}: ja{0}–{1}: all othersA
localeargument is required here. The default should be set toNULLwhich then utilizes the{0}–{1}pattern (which is different than the{0} — {1}pattern that is in use now).