diff --git a/locales/en.yml b/locales/en.yml index ab281794..98860528 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -317,6 +317,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 9fa47b64..59d28e20 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -317,6 +317,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 b4ccc401..e00e5c78 100644 --- a/locales/ko.yml +++ b/locales/ko.yml @@ -317,6 +317,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 dd33585b..c1d45e04 100644 --- a/locales/zh-Hans.yml +++ b/locales/zh-Hans.yml @@ -317,6 +317,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 db73f559..355a3775 100644 --- a/locales/zh-Hant.yml +++ b/locales/zh-Hant.yml @@ -317,6 +317,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 ae69cc6e..04f84f99 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 @@ -709,6 +709,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