Skip to content

The cols_merge_range() function requires a locale argument #158

@rich-iannone

Description

@rich-iannone

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).

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions