diff --git a/locales/en.yml b/locales/en.yml index 1b08a31b..d7330b87 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -314,6 +314,9 @@ config_page: desc: "When enabled along with '{{convert_message_to_hiragana}}', romaji will be shown on mouse hover." convert_message_to_hiragana: label: "Show Hiragana" + telemetry: + label: "Support our development" + desc: "Keeping this on (sending usage data) makes our developers smile, knowing that our software is reaching people like you. \n* Data is anonymous and contains no personal info. \n* Every bit of data is put toward making the product better." hotkeys: toggle_vrct_visibility: diff --git a/locales/ja.yml b/locales/ja.yml index 51ae19f4..ff46076d 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -314,6 +314,9 @@ config_page: desc: "「{{convert_message_to_hiragana}}」と同時に有効にした場合は、マウスホバーで表示されます。" convert_message_to_hiragana: label: "ひらがなを表示" + telemetry: + label: "製品の改善に協力する" + desc: "みなさんの使用状況データを、開発者が数字を見てにやにやするので、オン(送信する)にしたままだと嬉しいです。\n※個人を特定するような情報は収集しません。\n※ちゃんと開発に役立てます。" hotkeys: toggle_vrct_visibility: diff --git a/locales/ko.yml b/locales/ko.yml index bc07d6c3..221b8454 100644 --- a/locales/ko.yml +++ b/locales/ko.yml @@ -314,6 +314,9 @@ config_page: desc: convert_message_to_hiragana: label: + telemetry: + label: + desc: hotkeys: toggle_vrct_visibility: diff --git a/locales/zh-Hans.yml b/locales/zh-Hans.yml index c3403912..8265cf02 100644 --- a/locales/zh-Hans.yml +++ b/locales/zh-Hans.yml @@ -314,6 +314,9 @@ config_page: desc: "与「{{convert_message_to_hiragana}}」同时启用时,将通过鼠标悬停显示。" convert_message_to_hiragana: label: "显示平假名" + telemetry: + label: + desc: hotkeys: toggle_vrct_visibility: diff --git a/locales/zh-Hant.yml b/locales/zh-Hant.yml index 8362972b..73977061 100644 --- a/locales/zh-Hant.yml +++ b/locales/zh-Hant.yml @@ -314,6 +314,9 @@ config_page: desc: "與「{{convert_message_to_hiragana}}」同時啟用時,將透過滑鼠懸停顯示。" convert_message_to_hiragana: label: "顯示平假名" + telemetry: + label: + desc: hotkeys: toggle_vrct_visibility: diff --git a/src-ui/logics/configs/config_page_setter/ui_config_setter.js b/src-ui/logics/configs/config_page_setter/ui_config_setter.js index 0ffb7a89..9b32b08c 100644 --- a/src-ui/logics/configs/config_page_setter/ui_config_setter.js +++ b/src-ui/logics/configs/config_page_setter/ui_config_setter.js @@ -701,6 +701,14 @@ export const SETTINGS_ARRAY = [ logics_template_id: "toggle_enable_disable", base_endpoint_name: "convert_message_to_hiragana", }, + { + Category: "Others", + Base_Name: "Telemetry", + default_value: false, + ui_template_id: "toggle", + logics_template_id: "toggle_enable_disable", + base_endpoint_name: "telemetry", + }, // AdvancedSettings { diff --git a/src-ui/logics/useReceiveRoutes.js b/src-ui/logics/useReceiveRoutes.js index c849f541..772f6859 100644 --- a/src-ui/logics/useReceiveRoutes.js +++ b/src-ui/logics/useReceiveRoutes.js @@ -107,8 +107,9 @@ export const STATIC_ROUTE_META_LIST = [ { endpoint: "/get/data/plugins_status", ns: configs, hook_name: "usePlugins", method_name: "updateSavedPluginsStatus" }, { endpoint: "/set/data/plugins_status", ns: configs, hook_name: "usePlugins", method_name: "setSuccessSavedPluginsStatus" }, - // // Not Implemented Yet... + // // Not Implemented. { endpoint: "/get/data/selectable_transcription_engines", ns: null, hook_name: null, method_name: null }, // Not implemented on UI yet. (if ai_models has not been detected, this will be blank array[]. if the ai_models are ok but just network has not connected, it'l be only ["Whisper"]) + { endpoint: "/run/shutdown", ns: null, hook_name: null, method_name: null }, // Not implemented on UI. ]; export const useReceiveRoutes = () => { diff --git a/src-ui/views/app/config_page/setting_section/setting_box/others/Others.jsx b/src-ui/views/app/config_page/setting_section/setting_box/others/Others.jsx index 0af65930..a78abf09 100644 --- a/src-ui/views/app/config_page/setting_section/setting_box/others/Others.jsx +++ b/src-ui/views/app/config_page/setting_section/setting_box/others/Others.jsx @@ -53,6 +53,9 @@ export const Others = () => { +
+ +
); }; @@ -245,4 +248,18 @@ const ConvertMessageToHiraganaContainer = () => { toggleFunction={toggleConvertMessageToHiragana} /> ); +}; + +const TelemetryContainer = () => { + const { t } = useI18n(); + const { currentTelemetry, toggleTelemetry } = useOthers(); + + return ( + + ); }; \ No newline at end of file