mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
i18n(ja): apply review round 2
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]>
This commit is contained in:
1 parent
8ca7f52d19
commit
cd1f573647
7 files changed
+103
-42
No files matched your search
@@ -149,7 +149,15 @@ export function formatCockpitDistance(distanceM) {
|
||||
minimumFractionDigits: digits,
|
||||
maximumFractionDigits: digits,
|
||||
});
|
||||
return getLocale().startsWith('zh-') ? distance : distance.toUpperCase();
|
||||
return cockpitUnitCase(distance);
|
||||
}
|
||||
|
||||
/**
|
||||
* Upper-case a cockpit unit the HUD way (`9.5 KM`), except in Chinese and
|
||||
* Japanese, which have no case and keep units as the catalog writes them.
|
||||
*/
|
||||
export function cockpitUnitCase(text) {
|
||||
return /^(zh|ja)(-|$)/.test(getLocale()) ? text : text.toUpperCase();
|
||||
}
|
||||
|
||||
export function formatCockpitWindDirection(value) {
|
||||
|
||||
Reference in new issue
Block a user