mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 19:04:02 +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
@@ -1,4 +1,11 @@
|
||||
import { formatNumber, msg, t, tn, translateKnown } from '../i18n/index.js';
|
||||
import {
|
||||
formatNumber,
|
||||
isolate,
|
||||
msg,
|
||||
t,
|
||||
tn,
|
||||
translateKnown,
|
||||
} from '../i18n/index.js';
|
||||
import { keyGuidanceText, keyRequirementText } from './keyGuidance.js';
|
||||
|
||||
// Street Level UI state to panel strings and flags. Pure, so it is testable.
|
||||
@@ -174,7 +181,10 @@ function presentViewer(state) {
|
||||
if (street.capturedAt)
|
||||
right.push(formatDate(street.capturedAt, street.capturedAtPrecision));
|
||||
const left = [];
|
||||
if (street.title) left.push(street.title);
|
||||
// A provider address mixes Latin and the page language ("602 Congress Ave,
|
||||
// أوستن"); each part is isolated so a house number stays with its street
|
||||
// in right-to-left text. A no-op in left-to-right languages.
|
||||
if (street.title) left.push(street.title.split(', ').map(isolate).join(', '));
|
||||
if (street.creator)
|
||||
left.push(t('Image by {creator}', { creator: street.creator }));
|
||||
if (street.license) left.push(street.license);
|
||||
|
||||
Reference in new issue
Block a user