You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2023/07/12 14:43:16 UTC

[skywalking] branch master updated: Sync ui (#11083)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking.git


The following commit(s) were added to refs/heads/master by this push:
     new 7cc8f1afb2 Sync ui (#11083)
7cc8f1afb2 is described below

commit 7cc8f1afb2233c0216a78a6a6a3b390ae87d2274
Author: Fine0830 <fa...@gmail.com>
AuthorDate: Wed Jul 12 22:43:11 2023 +0800

    Sync ui (#11083)
---
 docs/en/changes/changes.md |  1 +
 docs/en/guides/i18n.md     | 13 +++++++++++++
 docs/menu.yml              |  2 ++
 skywalking-ui              |  2 +-
 4 files changed, 17 insertions(+), 1 deletion(-)

diff --git a/docs/en/changes/changes.md b/docs/en/changes/changes.md
index adf589d2e5..a92d95f07a 100644
--- a/docs/en/changes/changes.md
+++ b/docs/en/changes/changes.md
@@ -60,5 +60,6 @@
 * Remove `storage extension` doc, as it is expired.
 * Remove `how to add menu` doc, as SkyWalking supports marketplace and new backend-based setup.
 * Separate contribution docs to a new menu structure.
+* Add a doc to explain how to manage i18n.
 
 All issues and pull requests are [here](https://github.com/apache/skywalking/milestone/181?closed=1)
diff --git a/docs/en/guides/i18n.md b/docs/en/guides/i18n.md
new file mode 100644
index 0000000000..5739d40bb0
--- /dev/null
+++ b/docs/en/guides/i18n.md
@@ -0,0 +1,13 @@
+# Guide
+> This section explains how to manage translations for internationalization of menu items.
+
+SkyWalking UI's internationalization translations are in the [src/locales/lang](https://github.com/apache/skywalking-booster-ui/tree/main/src/locales/lang). 
+The translations include `menu name` and `description`. The translation key of `menu name` is the value of `i18nKey` from [menu definition file](../../../oap-server/server-starter/src/main/resources/ui-initialized-templates/menu.yaml). The translation key of `description` consists of the `i18nKey` value and `_desc` suffix. The `description` contents will be displayed on the Marketplace page. 
+
+The following is a typical `menu name` and `description` for i18nKey=`general_service`
+```json
+{
+  "general_service": "General Service",
+  "general_service_desc": "Observe services and relative direct dependencies through telemetry data collected from SkyWalking Agents."
+}
+```
diff --git a/docs/menu.yml b/docs/menu.yml
index 43e13561f7..6f170f83af 100644
--- a/docs/menu.yml
+++ b/docs/menu.yml
@@ -341,6 +341,8 @@ catalog:
                 path: "/en/guides/dependencies"
               - name: "Zipkin dependency"
                 path: "/en/guides/how-to-bump-up-zipkin"
+          - name: "I18n"
+            path: "/en/guides/i18n"
   - name: "Changelog"
     catalog:
       - name: "Current Version"
diff --git a/skywalking-ui b/skywalking-ui
index 5367af47c4..077b68ebbd 160000
--- a/skywalking-ui
+++ b/skywalking-ui
@@ -1 +1 @@
-Subproject commit 5367af47c4c8fe584f3f829dc30c8e105a0cc201
+Subproject commit 077b68ebbd47e59789e17ce1388ed96623369370