MapLibre's and Mapbox's own control labels stayed English under ar/es (rega's row 30). Both engines take a `locale` map of their UI strings at construction; useMapInstance now passes one built from the new mapui catalogue (17 strings x 11 locales, parity PASS) for the reader's language. The keys are the engines' own (MapLibre 5.24's list, plus Mapbox's gesture-hint names); an engine ignores the rest. Built doxa-simple-map carries the translations; check:i18n-treeshake PASS.
19 lines
661 B
JSON
19 lines
661 B
JSON
{
|
|
"map": "地图",
|
|
"marker": "地图标记",
|
|
"closePopup": "关闭弹窗",
|
|
"zoomIn": "放大",
|
|
"zoomOut": "缩小",
|
|
"resetBearing": "拖动以旋转地图,点击以恢复正北",
|
|
"toggleAttribution": "显示/隐藏数据来源",
|
|
"mapFeedback": "地图反馈",
|
|
"enterFullscreen": "全屏",
|
|
"exitFullscreen": "退出全屏",
|
|
"findMyLocation": "查找我的位置",
|
|
"locationNotAvailable": "无法获取位置",
|
|
"enableGlobe": "启用地球仪",
|
|
"disableGlobe": "停用地球仪",
|
|
"ctrlScroll": "使用 Ctrl + 滚轮缩放地图",
|
|
"cmdScroll": "使用 ⌘ + 滚轮缩放地图",
|
|
"twoFingers": "使用两根手指移动地图"
|
|
}
|