Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add localization for UI strings in Simplified Chinese #11723

Merged
merged 2 commits into from
Apr 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions src/ui/locales/zh-Hans.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// @flow

const locale = {
"AttributionControl.ToggleAttribution": "切换属性",
"AttributionControl.MapFeedback": "地图反馈",
"FullscreenControl.Enter": "进入全屏",
"FullscreenControl.Exit": "退出全屏",
"GeolocateControl.FindMyLocation": "查找我的位置",
"GeolocateControl.LocationNotAvailable": "位置不可用",
"LogoControl.Title": "Mapbox 徽标",
"Map.Title": "地图",
AdaXL marked this conversation as resolved.
Show resolved Hide resolved
"NavigationControl.ResetBearing": "将方位重置为北",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does Bearing mean?

The Chinese translation means "Reset the location to North"

Copy link

@AdaXL AdaXL Apr 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Jing-flyloveyin Bearing is the direction you're facing.

For you reference, this is the original English strings to compare with https://github.com/mapbox/mapbox-gl-js/blob/main/src/ui/default_locale.js

Also, #11733 for more context.

"NavigationControl.ZoomIn": "放大",
"NavigationControl.ZoomOut": "缩小",
"ScaleControl.Feet": "英尺",
"ScaleControl.Meters": "米",
"ScaleControl.Kilometers": "公里",
"ScaleControl.Miles": "英里",
"ScaleControl.NauticalMiles": "海里",
"ScrollZoomBlocker.CtrlMessage": "使用 ctrl + 滚动来缩放地图",
"ScrollZoomBlocker.CmdMessage": "使用 ⌘ + 滚动来缩放地图",
"TouchPanBlocker.Message": "用两根手指移动地图"
};

export default locale;