diff --git a/locales/en.yml b/locales/en.yml
index cdefbfe5..f72907ac 100644
--- a/locales/en.yml
+++ b/locales/en.yml
@@ -244,7 +244,19 @@ config_page:
label: "Open Config File"
switch_compute_device:
label: "Switch VRCT To CPU/GPU Version"
- section_label_plugins: Plugins
+ section_label_plugins: Plugins # Exception, It'll be moved later.
+
+ plugins:
+ downloaded_version: "Downloaded version: {{downloaded_version}}"
+ latest_version: "Latest version: {{latest_version}}"
+ available_after_updating: "Available after updating to the latest version"
+ unavailable_downloaded: "Currently unavailable due to incompatibility with the VRCT version in use"
+ no_latest_info: "Unable to retrieve the latest information"
+ using_latest_version: "Using the latest version"
+ available_latest_version: "Latest version available"
+ unavailable_latest_version: "Latest version currently unavailable"
+ available_in_latest_vrct_version: "Available in the latest VRCT version"
+ unavailable_not_downloaded: "Currently unavailable"
plugin_notifications:
downloading: Downloading the plugin.
diff --git a/locales/ja.yml b/locales/ja.yml
index e4c40eb5..3d109b8a 100644
--- a/locales/ja.yml
+++ b/locales/ja.yml
@@ -244,4 +244,30 @@ config_page:
label: "設定ファイルを開く"
switch_compute_device:
label: "VRCT CPU/GPUバージョンの切り替え"
- section_label_plugins: プラグイン
\ No newline at end of file
+ section_label_plugins: プラグイン # Exception, It'll be moved later.
+
+ plugins:
+ downloaded_version: "ダウンロード済バージョン: {{downloaded_version}}"
+ latest_version: "最新バージョン: {{latest_version}}"
+ available_after_updating: 最新版にアップデート後 利用可能
+ unavailable_downloaded: 現在利用不可 使用中VRCTバージョンとの互換性なし
+ no_latest_info: 最新情報が取得できません
+ using_latest_version: 最新版を使用中
+ available_latest_version: 最新版を利用可能
+ unavailable_latest_version: 最新版は現在利用不可
+ available_in_latest_vrct_version: VRCT最新版で利用可能
+ unavailable_not_downloaded: 現在利用不可
+
+plugin_notifications:
+ downloading: プラグインをダウンロード中。
+ downloaded_success: プラグインのダウンロードが完了しました。
+ downloaded_error: プラグインのダウンロードに失敗しました。
+
+ updating: プラグインをアップデート中。
+ updated_success: プラグインのアップデートが完了しました。
+ updated_error: プラグインのアップデートに失敗しました。
+
+ disabled_out_of_support: 現在のバージョンとの互換性がありません。プラグインを無効にしました。
+
+ is_enabled: プラグインを有効にしました。
+ is_disabled: プラグインを無効にしました。
\ No newline at end of file
diff --git a/src-ui/app/config_page/setting_section/setting_box/_components/plugins_control_component/PluginsControlComponent.jsx b/src-ui/app/config_page/setting_section/setting_box/_components/plugins_control_component/PluginsControlComponent.jsx
index 9c33c90d..c7c6ace0 100644
--- a/src-ui/app/config_page/setting_section/setting_box/_components/plugins_control_component/PluginsControlComponent.jsx
+++ b/src-ui/app/config_page/setting_section/setting_box/_components/plugins_control_component/PluginsControlComponent.jsx
@@ -2,6 +2,7 @@ import React from "react";
import { SwitchBox } from "../index";
import { _DownloadButton } from "../_atoms/_download_button/_DownloadButton";
import styles from "./PluginsControlComponent.module.scss";
+import { useTranslation } from "react-i18next";
export const PluginsControlComponent = ({
variable_state,
@@ -9,6 +10,8 @@ export const PluginsControlComponent = ({
toggleFunction,
downloadStartFunction,
}) => {
+ const { t } = useTranslation();
+
const option = {
id: plugin_status.plugin_id,
is_pending: plugin_status.is_pending,
@@ -19,6 +22,16 @@ export const PluginsControlComponent = ({
progress: null,
};
+ const downloaded_version = plugin_status.downloaded_plugin_info?.plugin_version;
+ const latest_version = plugin_status.latest_plugin_info?.plugin_version;
+
+ const downloaded_version_label = t("config_page.plugins.downloaded_version",
+ { downloaded_version: downloaded_version }
+ );
+ const latest_version_label = t("config_page.plugins.latest_version",
+ { latest_version: latest_version }
+ );
+
if (plugin_status.is_downloaded) {
return (
最新のバージョン: {latest_version}
-最新版にアップデート後 利用可能
+{downloaded_version_label}
+{latest_version_label}
+{t("config_page.plugins.available_after_updating")}
<_DownloadButton option={option} downloadStartFunction={downloadStartFunction} />現在利用不可 使用中VRCTバージョンとの互換性なし
+{t("config_page.plugins.unavailable_downloaded")}
最新情報が取得できません
+{t("config_page.plugins.no_latest_info")}
最新のバージョン: {latest_version}
-最新版を使用中
+{latest_version_label}
+{t("config_page.plugins.using_latest_version")}
最新のバージョン: {latest_version}
-最新版を利用可能
+{latest_version_label}
+{t("config_page.plugins.available_latest_version")}
<_DownloadButton option={option} downloadStartFunction={downloadStartFunction} />最新版は現在利用不可
+{t("config_page.plugins.available_latest_version")}
最新バージョン: {latest_version}
+{latest_version_label}
<_DownloadButton option={option} downloadStartFunction={downloadStartFunction} />最新のバージョン: {latest_version}
-VRCT最新版で利用可能
+{latest_version_label}
+{t("config_page.plugins.available_in_latest_vrct_version")}
最新バージョン: {latest_version}
-現在利用不可
+{latest_version_label}
+{t("config_page.plugins.unavailable_not_downloaded")}
- {target_locale.title} -
-{plugin.plugin_id}
-- {target_locale.desc} -
- {plugin.is_error ? ( -Error: {plugin.error_message}
- ) : ( -- {plugin.is_downloaded - ? `現在のバージョン: ${plugin.downloaded_plugin_info?.plugin_version}` - : null} -
-+ {target_locale.title} +
++ {target_locale.desc} +
+ {/*{plugin.plugin_id}
*/} +Error: {plugin.error_message}
+ ) : (