mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +00:00
i18n(ar): apply review round 2
Catalog: refresh/updates wording, received SDR aircraft, playing states, move-start button, impersonal layer note, live-data descriptions, arrival steps, retry timing, tracking spelling, military chip, dollar amounts, label: value statuses, upstream source, globe map, stage recovery, comparison signs as words, ellipses and earlier round-2 fixes. Code: FIRMS cell cards use the plural entry for their count (FIRES pruned), translated locator pin titles are isolated in RTL, legend stops keep their sign, voice timeout minutes agree with the number, CCTV badges are translated, first-run and referenced-item alignment. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
4f44a17b44
commit
8540535817
15 files changed
+253
-174
No files matched your search
@@ -133,7 +133,7 @@
|
||||
min-height: 3.55rem;
|
||||
padding: 0.6rem 0.7rem;
|
||||
color: rgba(225, 244, 248, 0.92);
|
||||
text-align: left;
|
||||
text-align: start;
|
||||
background: rgba(29, 69, 81, 0.18);
|
||||
border: 1px solid rgba(100, 200, 220, 0.18);
|
||||
border-radius: 0.42rem;
|
||||
|
||||
@@ -288,7 +288,7 @@
|
||||
content: counter(gev-referent);
|
||||
display: inline-block;
|
||||
min-width: 0.9rem;
|
||||
margin-right: 0.3rem;
|
||||
margin-inline-end: 0.3rem;
|
||||
color: rgba(54, 220, 255, 0.72);
|
||||
font-family: var(--font-mono);
|
||||
font-size: 0.52rem;
|
||||
|
||||
+10
-6
@@ -35,15 +35,19 @@ export function formatQuantity(value, unit, options) {
|
||||
|
||||
/**
|
||||
* A legend stop such as "0.1", "-40" or "300+" in the active language.
|
||||
* Anything that is not a plain number is shown as given.
|
||||
* Anything that is not a plain number is shown as given. In right-to-left
|
||||
* text the stop is isolated, so its sign stays where it is written ("300+",
|
||||
* "-40") instead of moving to the other side of the number.
|
||||
*/
|
||||
export function formatScaleLabel(label) {
|
||||
const match = /^(-?\d+(?:\.\d+)?)(\+?)$/.exec(String(label ?? ''));
|
||||
if (!match) return String(label ?? '');
|
||||
const decimals = match[1].split('.')[1]?.length || 0;
|
||||
return `${formatNumber(Number(match[1]), {
|
||||
useGrouping: false,
|
||||
minimumFractionDigits: decimals,
|
||||
maximumFractionDigits: decimals,
|
||||
})}${match[2]}`;
|
||||
return isolate(
|
||||
`${formatNumber(Number(match[1]), {
|
||||
useGrouping: false,
|
||||
minimumFractionDigits: decimals,
|
||||
maximumFractionDigits: decimals,
|
||||
})}${match[2]}`,
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user