mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-05 10:53:59 +00:00
Catalog fixes from the second review round (squawk 7600/7700 names, transit occupancy, radio category, cyclone advisory wording, Orbital Watch, validation and hint texts), cockpit distances keep "km" in Japanese as in Chinese, the CCTV context line uses the translated view band, and the Japanese layer status line no longer splits "1分以内". Co-Authored-By: Claude Opus 5.5 <[email protected]>
22 lines
638 B
JavaScript
22 lines
638 B
JavaScript
import test from 'node:test';
|
||
import assert from 'node:assert/strict';
|
||
import { setLocale } from './index.js';
|
||
import {
|
||
cockpitUnitCase,
|
||
formatCockpitDistance,
|
||
} from '../ui/cockpitPresentation.js';
|
||
|
||
test('Japanese cockpit distances keep the unit in its own case', () => {
|
||
try {
|
||
setLocale('ja');
|
||
assert.equal(formatCockpitDistance(14000), '14 km');
|
||
assert.equal(formatCockpitDistance(9500), '9.5 km');
|
||
assert.equal(cockpitUnitCase('km'), 'km');
|
||
setLocale('en');
|
||
assert.equal(formatCockpitDistance(14000), '14 KM');
|
||
assert.equal(cockpitUnitCase('km'), 'KM');
|
||
} finally {
|
||
setLocale('en');
|
||
}
|
||
});
|