From f95e814fe53e5bd7a956da4ace4695bffc20d034 Mon Sep 17 00:00:00 2001 From: Ian Wagner Date: Wed, 28 Aug 2024 14:35:30 +0900 Subject: [PATCH] Add translations --- README.md | 6 ++++++ src/locales/he/translation.json | 2 ++ src/locales/ja/translation.json | 2 ++ src/locales/zh/translation.json | 5 ++++- 4 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index cc7bae53..5ca2606a 100644 --- a/README.md +++ b/README.md @@ -70,6 +70,12 @@ npm run lint-css npm run sort-styles ``` +Update the translation files (run this whenever touching user-facing strings). +After running, check your working copy for files and add/correct as needed. + +``` +npm run i18n:refresh +``` ## Tests For E2E testing we use [Cypress](https://www.cypress.io/) diff --git a/src/locales/he/translation.json b/src/locales/he/translation.json index b11f26cd..3e6415f2 100644 --- a/src/locales/he/translation.json +++ b/src/locales/he/translation.json @@ -179,6 +179,8 @@ "Public access token for MapTiler Cloud.": "Public access token for MapTiler Cloud.", "Thunderforest Access Token": "Thunderforest Access Token", "Public access token for Thunderforest services.": "Public access token for Thunderforest services.", + "Stadia Maps API Key": "Stadia Maps API Key", + "API key for Stadia Maps.": "API key for Stadia Maps", "Style Renderer": "צייר הסטייל", "Choose the default Maputnik renderer for this style.": "בחירת צייר ברירת המחדל של מפוטניק עבור הסטייל הזה" } diff --git a/src/locales/ja/translation.json b/src/locales/ja/translation.json index 31751a81..52f92a31 100644 --- a/src/locales/ja/translation.json +++ b/src/locales/ja/translation.json @@ -179,6 +179,8 @@ "Public access token for MapTiler Cloud.": "MapTiler Cloud の公開用アクセストークン", "Thunderforest Access Token": "Thunderforest アクセストークン", "Public access token for Thunderforest services.": "Thunderforest サービスの公開用アクセストークン", + "Stadia Maps API Key": "Stadia Maps API キー", + "API key for Stadia Maps.": "Stadia Maps の API キー", "Style Renderer": "スタイルレンダラ", "Choose the default Maputnik renderer for this style.": "このスタイルのデフォルトの Maputnik レンダラを選択してください", "Layer options": "レイヤー設定", diff --git a/src/locales/zh/translation.json b/src/locales/zh/translation.json index dd26994b..1e1cfca5 100644 --- a/src/locales/zh/translation.json +++ b/src/locales/zh/translation.json @@ -82,7 +82,7 @@ "Close modal": "关闭模态框", "Debug": "调试", "Options": "选项", - "<0>Open in OSM — Opens the current view on openstreetmap.org": "在 openstreetmap.org 打开当前视图", + "<0>Open in OSM — Opens the current view on openstreetmap.org": "在 openstreetmap.org 打开当前视图", "Export Style": "导出样式", "Download Style": "下载样式", "Download a JSON style to your computer.": "将JSON样式下载到您的电脑。", @@ -179,8 +179,11 @@ "Public access token for MapTiler Cloud.": "MapTiler Cloud 的公共访问令牌。", "Thunderforest Access Token": "Thunderforest 访问令牌", "Public access token for Thunderforest services.": "Thunderforest 服务的公共访问令牌。", + "Stadia Maps API Key": "Stadia Maps API 密钥", + "API key for Stadia Maps.": "Stadia Maps 的 API 密钥", "Style Renderer": "样式渲染器", "Choose the default Maputnik renderer for this style.": "为这种样式选择默认的Maputnik渲染器。", + "<0>Open in OSM — Opens the current view on openstreetmap.org": "在 openstreetmap.org 打开当前视图", "Layer options": "图层选项", "Paint properties": "绘制属性", "Layout properties": "布局属性",