From e869cfee6f94fe59092d31c9a51bb62c6271f7bb Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Mon, 5 Feb 2024 21:56:34 +0900 Subject: [PATCH] Add Japanese translations for group --- nodes/config/locales/en-US/ui_group.json | 26 ++++++++++++------------ nodes/config/locales/ja/ui_group.html | 4 ++++ nodes/config/locales/ja/ui_group.json | 20 ++++++++++++++++++ nodes/config/ui_group.html | 26 ++++++++++++------------ 4 files changed, 50 insertions(+), 26 deletions(-) create mode 100644 nodes/config/locales/ja/ui_group.html create mode 100644 nodes/config/locales/ja/ui_group.json diff --git a/nodes/config/locales/en-US/ui_group.json b/nodes/config/locales/en-US/ui_group.json index 48885e7b0..b8fda9134 100644 --- a/nodes/config/locales/en-US/ui_group.json +++ b/nodes/config/locales/en-US/ui_group.json @@ -1,20 +1,20 @@ { - "ui-group" : { - "label" : { - "name" : "Name", - "tab" : "Tab", - "width" : "Width", - "default" : "Default", - "group" : "Group", - "unassigned" : "unassigned", + "ui-group": { + "label": { + "name": "Name", + "page": "Page", + "size": "Size", + "display-name": "Display group name", "className": "Class", - "classNamePlaceholder": "Optional CSS class name(s) for widget", + "classNamePlaceholder": "Optional CSS class name(s) for group", + "defaultState": "Default State", + "visibility": "Visibility", "visible": "Visible", "hidden": "Hidden", + "interactivity": "Interactivity", "active": "Active", - "disabled": "Disabled" - }, - "display-name" : "Display group name", - "collapse-name" : "Allow group to be collapsed" + "disabled": "Disabled", + "openDashboardSidebar": "Open Dashboard 2.0 Sidebar" + } } } \ No newline at end of file diff --git a/nodes/config/locales/ja/ui_group.html b/nodes/config/locales/ja/ui_group.html new file mode 100644 index 000000000..82aea3936 --- /dev/null +++ b/nodes/config/locales/ja/ui_group.html @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/nodes/config/locales/ja/ui_group.json b/nodes/config/locales/ja/ui_group.json new file mode 100644 index 000000000..9cbce2874 --- /dev/null +++ b/nodes/config/locales/ja/ui_group.json @@ -0,0 +1,20 @@ +{ + "ui-group": { + "label": { + "name": "名前", + "page": "ページ", + "size": "サイズ", + "display-name": "グループ名を表示", + "className": "クラス", + "classNamePlaceholder": "グループのための任意のCSSクラス名", + "defaultState": "標準状態", + "visibility": "画面表示", + "visible": "表示", + "hidden": "非表示", + "interactivity": "画面操作", + "active": "有効", + "disabled": "無効", + "openDashboardSidebar": "ダッシュボード2.0のサイドバーを開く" + } + } +} \ No newline at end of file diff --git a/nodes/config/ui_group.html b/nodes/config/ui_group.html index 1da341d2e..a8a138691 100644 --- a/nodes/config/ui_group.html +++ b/nodes/config/ui_group.html @@ -28,7 +28,7 @@ height: '#node-config-input-height', auto: false }) - + // backwards compatibility if (this.visible === undefined || this.visible === true) { this.visible = true @@ -54,7 +54,7 @@ } else { this.visible = false } - + // convert string to boolean const disabled = $('#node-config-input-disabled').val() if (disabled === 'true') { @@ -63,38 +63,38 @@ this.disabled = false } } -}) + })