mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
i18n(ar): apply review round 3
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
8540535817
commit
df866f33a5
13 files changed
+110
-38
No files matched your search
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user