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

+24
View File
@@ -5,6 +5,7 @@ import {
sinceStopIndex,
} from './streetLevelPresentation.js';
import { providerSnapshot } from '../testSupport/streetLevelFakes.mjs';
import { getLocale, setLocale } from '../i18n/index.js';
const provider = providerSnapshot;
@@ -321,6 +322,29 @@ test('a Street View caption names the place, dates it by month, and offers no FI
assert.equal(view.viewer.renderModes, false);
});
test('in Arabic each part of a provider address keeps its own order', () => {
const previous = getLocale();
setLocale('ar');
try {
const view = presentStreetLevelPanel(
snapshot({
enabled: true,
street: {
open: true,
imageId: 'pano-1',
title: '602 Congress Ave, أوستن, تكساس',
},
}),
);
assert.equal(
view.viewer.captionLeft,
'\u2068602 Congress Ave\u2069, \u2068أوستن\u2069, \u2068تكساس\u2069',
);
} finally {
setLocale(previous);
}
});
test('the meta line keeps the sequence count and adds the other providers’ hints', () => {
const view = presentStreetLevelPanel(
snapshot({