From 3168a8ad26615077a3d04e54e4e3a4307669d4fe Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Thu, 1 Jan 2026 12:50:58 +0900 Subject: [PATCH 1/4] [Update] Add new auth key URLs and update translation labels for key management. --- locales/en.yml | 1 + locales/ja.yml | 1 + src-ui/logics/ui_configs.js | 6 ++++ .../setting_box/translation/Translation.jsx | 32 ++++++++++++------- 4 files changed, 28 insertions(+), 12 deletions(-) diff --git a/locales/en.yml b/locales/en.yml index c7b4135e..1e865589 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -77,6 +77,7 @@ config_page: version: "Version {{version}}" model_download_button_label: "Download" correct_auth_key_required: "Correct Auth Key Required" + open_auth_key_webpage: "Open Auth Key Management Webpage" compute_device: desc: "The accuracy and speed of each processing type may vary depending on your machine specs, and the compatibility with calculation methods may differ from the displayed order. Please use this as a general guideline." label_device: "Processing Device" diff --git a/locales/ja.yml b/locales/ja.yml index 8748c969..64cbf3d8 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -76,6 +76,7 @@ config_page: common: version: "バージョン {{version}}" model_download_button_label: "ダウンロード" + open_auth_key_webpage: "認証キー管理ページを開く" compute_device: desc: "各処理タイプの精度・速度は、マシンスペックによって計算方法に相性があり、表示順とは異なる事があるため、大まかな目安としてください。" label_device: "処理デバイス" diff --git a/src-ui/logics/ui_configs.js b/src-ui/logics/ui_configs.js index be6eb194..7c9b1d02 100644 --- a/src-ui/logics/ui_configs.js +++ b/src-ui/logics/ui_configs.js @@ -137,6 +137,12 @@ export const whisper_weight_type_status = [ export const deepl_auth_key_url = "https://www.deepl.com/ja/your-account/keys"; +export const plamo_auth_key_url = "https://plamo.preferredai.jp/api"; +export const gemini_auth_key_url = "https://aistudio.google.com/api-keys"; +export const openai_auth_key_url = "https://platform.openai.com/api-keys"; +export const groq_auth_key_url = "https://console.groq.com/keys"; +export const openrouter_auth_key_url = "https://openrouter.ai/keys"; + export const vrct_document_home_url = "https://misyaguziya.github.io/VRCT-Docs"; diff --git a/src-ui/views/app/config_page/setting_section/setting_box/translation/Translation.jsx b/src-ui/views/app/config_page/setting_section/setting_box/translation/Translation.jsx index b7e3b91e..1f5a4cce 100644 --- a/src-ui/views/app/config_page/setting_section/setting_box/translation/Translation.jsx +++ b/src-ui/views/app/config_page/setting_section/setting_box/translation/Translation.jsx @@ -29,7 +29,15 @@ import { ConnectionCheckButton, } from "../_components"; -import { deepl_auth_key_url } from "@ui_configs"; +import { + deepl_auth_key_url, + plamo_auth_key_url, + gemini_auth_key_url, + openai_auth_key_url, + groq_auth_key_url, + openrouter_auth_key_url, +} from "@ui_configs"; + import { useLLMConnection } from "@logics_common"; export const Translation = () => { @@ -256,7 +264,7 @@ const DeepLAuthKey_Box = () => { {translator: t("main_page.translator")} )} webpage_url={deepl_auth_key_url} - open_webpage_label={t("config_page.translation.deepl_auth_key.open_auth_key_webpage")} + open_webpage_label={t("config_page.common.open_auth_key_webpage")} variable={variable} state={currentDeepLAuthKey.state} onChangeFunction={onChangeFunction} @@ -282,8 +290,8 @@ const PlamoAuthKey_Box = () => { { { { { Date: Thu, 1 Jan 2026 14:38:47 +0900 Subject: [PATCH 2/4] [Update] Adjust button padding and entry width in OpenWebpageButton; add responsive text size in SidebarSection --- .../_OpenWebpageButton.module.scss | 3 ++- .../setting_box/_components/auth_key/AuthKey.jsx | 2 +- .../app/config_page/sidebar_section/SidebarSection.jsx | 10 ++++++++-- .../sidebar_section/SidebarSection.module.scss | 3 +++ 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src-ui/views/app/config_page/setting_section/setting_box/_components/_atoms/_open_webpage_button/_OpenWebpageButton.module.scss b/src-ui/views/app/config_page/setting_section/setting_box/_components/_atoms/_open_webpage_button/_OpenWebpageButton.module.scss index fd300952..9547963f 100644 --- a/src-ui/views/app/config_page/setting_section/setting_box/_components/_atoms/_open_webpage_button/_OpenWebpageButton.module.scss +++ b/src-ui/views/app/config_page/setting_section/setting_box/_components/_atoms/_open_webpage_button/_OpenWebpageButton.module.scss @@ -2,10 +2,11 @@ display: flex; justify-content: center; align-items: center; + width: fit-content; } .open_webpage_button { - padding: 0.6rem 2.8rem; + padding: 0.6rem 1.2rem; display: flex; gap: 1rem; justify-content: center; diff --git a/src-ui/views/app/config_page/setting_section/setting_box/_components/auth_key/AuthKey.jsx b/src-ui/views/app/config_page/setting_section/setting_box/_components/auth_key/AuthKey.jsx index 85ae9928..4cddbdeb 100644 --- a/src-ui/views/app/config_page/setting_section/setting_box/_components/auth_key/AuthKey.jsx +++ b/src-ui/views/app/config_page/setting_section/setting_box/_components/auth_key/AuthKey.jsx @@ -38,7 +38,7 @@ export const AuthKey = (props) => { return (
- <_Entry ref={entryRef} width="30rem" onChange={onchangeEntryAuthKey} ui_variable={props.variable} is_disabled={is_disabled}/> + <_Entry ref={entryRef} width="24rem" onChange={onchangeEntryAuthKey} ui_variable={props.variable} is_disabled={is_disabled}/>
); diff --git a/src-ui/views/app/config_page/setting_section/setting_box/_components/connection_check_button/ConnectionCheckButton.module.scss b/src-ui/views/app/config_page/setting_section/setting_box/_components/connection_check_button/ConnectionCheckButton.module.scss index 116feab4..6b1bd5d0 100644 --- a/src-ui/views/app/config_page/setting_section/setting_box/_components/connection_check_button/ConnectionCheckButton.module.scss +++ b/src-ui/views/app/config_page/setting_section/setting_box/_components/connection_check_button/ConnectionCheckButton.module.scss @@ -9,6 +9,17 @@ } } +.status_label { + font-size: 1.2rem; + color: var(--dark_200_color); + margin-bottom: 0.8rem; +} + +.button_label { + font-size: 1.4rem; + color: var(--dark_100_color); +} + .button_svg { width: 2.4rem; color: var(--dark_400_color); diff --git a/src-ui/views/app/config_page/setting_section/setting_box/translation/Translation.jsx b/src-ui/views/app/config_page/setting_section/setting_box/translation/Translation.jsx index 1f5a4cce..684b7090 100644 --- a/src-ui/views/app/config_page/setting_section/setting_box/translation/Translation.jsx +++ b/src-ui/views/app/config_page/setting_section/setting_box/translation/Translation.jsx @@ -288,8 +288,8 @@ const PlamoAuthKey_Box = () => { return ( <> { return ( { return ( <> { return ( { return ( <> { return ( { return ( <> { return ( { return ( <> { return ( { return ( <> { <> { }; let selected_label = (!currentIsLMStudioConnected.data && !currentSelectedLMStudioModel.data) - ? "Connection Required" + ? t("config_page.translation.select_lmstudio_model.connection_required") : currentSelectedLMStudioModel.data; return ( { return ( <> { }; let selected_label = (!currentIsOllamaConnected.data && !currentSelectedOllamaModel.data) - ? "Connection Required" + ? t("config_page.translation.select_ollama_model.connection_required") : currentSelectedOllamaModel.data; return ( Date: Thu, 1 Jan 2026 19:10:39 +0900 Subject: [PATCH 4/4] [Update] Localization: Adjust keys and lines. add missing keys ko.yml, zh-Hans.yml, zh-Hant.yml --- locales/en.yml | 1 - locales/ko.yml | 47 +++++++++++++++++++++++++++++++++++++++++++++ locales/zh-Hans.yml | 45 +++++++++++++++++++++++++++++++++++++++++++ locales/zh-Hant.yml | 45 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 137 insertions(+), 1 deletion(-) diff --git a/locales/en.yml b/locales/en.yml index 8db7c916..1b08a31b 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -315,7 +315,6 @@ config_page: convert_message_to_hiragana: label: "Show Hiragana" - hotkeys: toggle_vrct_visibility: label: "Toggle VRCT visibility" diff --git a/locales/ko.yml b/locales/ko.yml index 6134f1ad..bc07d6c3 100644 --- a/locales/ko.yml +++ b/locales/ko.yml @@ -76,6 +76,13 @@ config_page: common: version: "버전 {{version}}" model_download_button_label: "다운로드" + correct_auth_key_required: + open_auth_key_webpage: + connection_check: + button_label: + checking: + connected: + disconnected: compute_device: desc: label_device: @@ -83,6 +90,8 @@ config_page: type_template_auto: type_template_low: type_template_high: + warning_labels: + unable_to_use_osc_query: side_menu_labels: device: "장치" @@ -144,6 +153,7 @@ config_page: large: "정밀 모델 ({{capacity}})" translation_compute_device: label: "AI 번역 처리 장치" + deepl_auth_key: label: "DeepL 인증키" desc: "사용시 메인화면에 있는 {{translator}}를 DeepL_API로 변경해 주세요.\n지원하지 않는 언어도 있습니다." @@ -152,6 +162,43 @@ config_page: edit: "편집" auth_key_success: "인증키 갱신이 완료되었습니다." + plamo_auth_key: + label: + select_plamo_model: + label: + + gemini_auth_key: + label: + select_gemini_model: + label: + + openai_auth_key: + label: + select_openai_model: + label: + + groq_auth_key: + label: + select_groq_model: + label: + + openrouter_auth_key: + label: + select_openrouter_model: + label: + + lmstudio_connection_check: + label: + select_lmstudio_model: + label: + connection_required: + + ollama_connection_check: + label: + select_ollama_model: + label: + connection_required: + transcription: section_label_mic: "마이크" section_label_speaker: "스피커" diff --git a/locales/zh-Hans.yml b/locales/zh-Hans.yml index 25363241..c3403912 100644 --- a/locales/zh-Hans.yml +++ b/locales/zh-Hans.yml @@ -76,6 +76,13 @@ config_page: common: version: "版本 {{version}}" model_download_button_label: "下载" + correct_auth_key_required: + open_auth_key_webpage: + connection_check: + button_label: + checking: + connected: + disconnected: compute_device: desc: "各处理类型的精度和速度会因机器规格不同而有所差异,可能与显示顺序不同,请作为大致参考。" label_device: "处理设备" @@ -146,6 +153,7 @@ config_page: large: "高精度模型 ({{capacity}})" translation_compute_device: label: "AI 翻译的处理设备" + deepl_auth_key: label: "DeepL 授权密匙" desc: "在使用的时候,使用时请在主屏幕上通过 DeepL_API 选择 {{translator}}\n※某些语言可能不支持" @@ -154,6 +162,43 @@ config_page: edit: "编辑" auth_key_success: "授权密匙认证完成。" + plamo_auth_key: + label: + select_plamo_model: + label: + + gemini_auth_key: + label: + select_gemini_model: + label: + + openai_auth_key: + label: + select_openai_model: + label: + + groq_auth_key: + label: + select_groq_model: + label: + + openrouter_auth_key: + label: + select_openrouter_model: + label: + + lmstudio_connection_check: + label: + select_lmstudio_model: + label: + connection_required: + + ollama_connection_check: + label: + select_ollama_model: + label: + connection_required: + transcription: section_label_mic: "麦克风" section_label_speaker: "扬声器" diff --git a/locales/zh-Hant.yml b/locales/zh-Hant.yml index ebe44ea1..8362972b 100644 --- a/locales/zh-Hant.yml +++ b/locales/zh-Hant.yml @@ -76,6 +76,13 @@ config_page: common: version: "版本 {{version}}" model_download_button_label: "下載" + correct_auth_key_required: + open_auth_key_webpage: + connection_check: + button_label: + checking: + connected: + disconnected: compute_device: desc: "各處理類型的精度和速度會因機器規格不同而有所差異,可能與顯示順序不同,請作為大致參考。" label_device: "處理裝置" @@ -146,6 +153,7 @@ config_page: large: "高準確率模型({{capacity}})" translation_compute_device: label: "AI 翻譯的處理裝置" + deepl_auth_key: label: "DeepL 授權金鑰" desc: "使用 DeepL API 時請在主螢幕選擇 {{translator}}。※可能不支援某些語言。" @@ -154,6 +162,43 @@ config_page: edit: "編輯" auth_key_success: "授權金鑰更新完成。" + plamo_auth_key: + label: + select_plamo_model: + label: + + gemini_auth_key: + label: + select_gemini_model: + label: + + openai_auth_key: + label: + select_openai_model: + label: + + groq_auth_key: + label: + select_groq_model: + label: + + openrouter_auth_key: + label: + select_openrouter_model: + label: + + lmstudio_connection_check: + label: + select_lmstudio_model: + label: + connection_required: + + ollama_connection_check: + label: + select_ollama_model: + label: + connection_required: + transcription: section_label_mic: "麥克風" section_label_speaker: "喇叭"