i18n(ar): apply review round 3

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
German KhokhlovandClaude Opus 5.5 committed 2026-10-28 23:27:00 +04:00
1 parent 8540535817
commit df866f33a5
13 files changed
+110 -38

No files matched your search

+11
View File
@@ -51,3 +51,14 @@ export function formatScaleLabel(label) {
})}${match[2]}`,
);
}
/**
* A legend range with its unit: "960 — 1050+ hPa". The unit stays with the
* last number. In right-to-left text the unit is isolated as well, so a Latin
* unit keeps its own order ("°C", not "C°").
*/
export function formatScaleRange(low, high, units) {
const unit = unitLabel(units);
const range = `${formatScaleLabel(low)} — ${formatScaleLabel(high)}`;
return unit ? `${range}\u00a0${isolate(unit)}` : range;
}