@@ -134,7 +138,7 @@
{#if device.data}
{#await latestDeviceData(device)}
-
{$_('app.loading')}
+
{$_('app.loading_message')}
{:then data}
{#each Object.keys(data) as dataPointKey}
diff --git a/src/lib/i18n/locales/en.json b/src/lib/i18n/locales/en.json
index ab5434e8..78c29af8 100644
--- a/src/lib/i18n/locales/en.json
+++ b/src/lib/i18n/locales/en.json
@@ -159,7 +159,27 @@
"new_rule": "New Rule",
"no_rules_created": "You have not created any rules for this sensor yet.",
"rule_criteria": "Rule Criteria",
- "no_rule_criteria": "No Rule Criteria yet..."
+ "no_rule_criteria": "No Rule Criteria yet...",
+ "title": "Rules and custom alerts",
+ "loadingRules": "Loading Rules",
+ "rule_name": "Rule Name",
+ "notification_email": "E-Mail",
+ "notification_type": "Notification Type",
+ "recipients": "Recipient(s)",
+ "emails": "E-Mail Address(s)",
+ "ruleName": "name",
+ "and_reset_when": "And Re-Activate rule when",
+ "returns_to": "returns to",
+ "trigger_value": "Trigger Value",
+ "data": "Data",
+ "reset_rule_value": "Reset Value",
+ "operator": "Operator",
+ "if": "IF",
+ "is": "IS",
+ "select_data": "Sensor Data to Watch",
+ "thresholdValue": "Value",
+ "add_condition_button": "Add Condition",
+ "create": "Create"
},
"dashboardCard": {
"Rainfall": "Rainfall",
@@ -167,6 +187,19 @@
"Windspeed": "Windspeed",
"PrimaryData": "Primary Data",
"secondaryData": "Secondary Data",
- "Details": "Details"
+ "Details": "Details",
+ "primaryData": "Primary Data",
+ "dashboard": "Dashboard"
+ },
+ "permissions": {
+ "permissions": "Device Permissions",
+ "email": "E-Mail",
+ "user_email": "User E-Mail",
+ "following_have_access": "The following users have access to this device",
+ "role": "Select a Role",
+ "admin": "Admin (View, Edit, Update, Delete)",
+ "user": "User (View Data, Download Data)",
+ "viewer": "Viewer (Read Data Only)",
+ "add_permission": "Add Permission"
}
}
diff --git a/src/lib/i18n/locales/jp.json b/src/lib/i18n/locales/jp.json
index 1971e5d9..4e895b02 100644
--- a/src/lib/i18n/locales/jp.json
+++ b/src/lib/i18n/locales/jp.json
@@ -170,16 +170,35 @@
"permissions": "権限"
},
"rules": {
+ "title": "ルール設定",
"description": "新規ルールの作成または既存ルールの編集は以下から。",
"no_rules_created": "このセンサーのルールはまだ作成されていません。",
"new_rule": "ルールの追加",
"edit_rule": "編集",
"delete_rule": "削除",
- "rule_statistics": "統計"
+ "rule_statistics": "統計",
+ "loadingRules": "ルールを読み込んでいます...",
+ "rule_name": "ルール名",
+ "notification_email": "Eメール",
+ "notification_type": "通知タイプ",
+ "recipients": "受信者",
+ "emails": "Eメール",
+ "rule_criteria": "ルール条件",
+ "ruleName": "名称",
+ "no_rule_criteria": "ルール条件がありません",
+ "and_reset_when": "そして、",
+ "returns_to": "が戻ったらルールを再び有効にする (リセット数値の設定なしではルールは一度しか適用されません。)",
+ "trigger_value": "閾値",
+ "data": "データ",
+ "reset_rule_value": "ルール値のリセット",
+ "operator": "演算子",
+ "if": "もし",
+ "is": "が",
+ "select_data": "監視するセンサーデータ",
+ "thresholdValue": "値",
+ "add_condition_button": "条件の追加",
+ "create": "作成"
},
-
-
-
"temperature": "温度",
"humidity": "湿度",
"soil_moisture": "土壌水分量",
@@ -200,10 +219,21 @@
"soil_PH": "土壌pH",
"soil_pH": "土壌pH",
"time": "時間",
- "lastSeen": "最後に閲覧",
+ "lastSeen": "最終接続",
"ago": "前",
"optimal": "最適",
"difference": "差",
"temp_humidity": "温度/湿度",
- "filter": "フィルター"
+ "filter": "フィルター",
+ "permissions": {
+ "permissions": "デバイス権限",
+ "email": "Eメール",
+ "user_email": "Eメール",
+ "role": "役割を選択する",
+ "admin": "管理者(閲覧、編集、更新、削除)",
+ "user": "ユーザー(データ閲覧、データダウンロード)",
+ "viewer": "閲覧者(データ閲覧のみ)",
+ "add_permission": "アクセス許可",
+ "following_have_access": "次のユーザーはこのデバイスにアクセスできます。"
+ }
}
diff --git a/src/routes/app/+page.svelte b/src/routes/app/+page.svelte
index f60ade2e..eb6692af 100644
--- a/src/routes/app/+page.svelte
+++ b/src/routes/app/+page.svelte
@@ -2,7 +2,9 @@
import DashboardCard from '$lib/components/ui/dashboardCard.svelte';
import bellImage from '$lib/images/UI/cw-bell.svg';
import filterImage from '$lib/images/UI/cw_filter_button.svg';
+ import { mdiViewDashboard } from '@mdi/js';
import { _ } from 'svelte-i18n';
+ import { Icon } from 'svelte-ux';
export let data;
const { locations } = data;
@@ -14,26 +16,29 @@
-
+
-
+
-
{$_('dashboardCard.dashboard')}
+
+
+ {$_('dashboardCard.dashboard')}
+
-
+
{#each locations as location}
diff --git a/src/routes/app/devices/[dev_eui]/permissions/+page.svelte b/src/routes/app/devices/[dev_eui]/permissions/+page.svelte
index 793c6820..7098fbfd 100644
--- a/src/routes/app/devices/[dev_eui]/permissions/+page.svelte
+++ b/src/routes/app/devices/[dev_eui]/permissions/+page.svelte
@@ -3,6 +3,7 @@
import Back from '$lib/components/ui/Back.svelte';
import DevicePermission from '$lib/components/ui/DevicePermission.svelte';
import { page } from '$app/stores';
+ import { _ } from 'svelte-i18n';
export let data;
@@ -13,7 +14,7 @@
class="flex flex-row bg-emerald-300 p-4 text-center justify-center text-surface-100 text-2xl items-center"
>
- Device Permissions
+ {$_('permissions.permissions')}
diff --git a/src/routes/app/devices/[dev_eui]/rules/+page.svelte b/src/routes/app/devices/[dev_eui]/rules/+page.svelte
index 906a4643..f0c9ae96 100644
--- a/src/routes/app/devices/[dev_eui]/rules/+page.svelte
+++ b/src/routes/app/devices/[dev_eui]/rules/+page.svelte
@@ -62,7 +62,7 @@
-
Rules and custom alerts
+
{$_('rules.title')}
@@ -94,7 +94,7 @@
{#await rules}
-
Loading Rules...
+
{$_('rules.loadingRules')}
{:then allRules}
{#if allRules && allRules.length === 0}
{$_('rules.no_rules_created')}
diff --git a/src/routes/app/devices/[dev_eui]/rules/create-rule/+page.svelte b/src/routes/app/devices/[dev_eui]/rules/create-rule/+page.svelte
index 6302aef4..46ef5f58 100644
--- a/src/routes/app/devices/[dev_eui]/rules/create-rule/+page.svelte
+++ b/src/routes/app/devices/[dev_eui]/rules/create-rule/+page.svelte
@@ -3,13 +3,14 @@
import RulesImage from '$lib/images/UI/cw_rules.svg';
import activeImage from '$lib/images/UI/cw-10.svg';
import Rules from '$lib/components/rules/Rules.svelte';
+ import { _ } from 'svelte-i18n';
export let data;
-
Rules and custom alerts
+
{$_('rules.title')}