diff --git a/src/Resources/Locales/en_US.axaml b/src/Resources/Locales/en_US.axaml
index 655f6e97..7e1ffeab 100644
--- a/src/Resources/Locales/en_US.axaml
+++ b/src/Resources/Locales/en_US.axaml
@@ -759,6 +759,7 @@
SUBMODULES
Add Submodule
BRANCH
+ Branch
Relative Path
De-initialize
Fetch nested submodules
diff --git a/src/Resources/Locales/zh_CN.axaml b/src/Resources/Locales/zh_CN.axaml
index 711ab12f..7403ff78 100644
--- a/src/Resources/Locales/zh_CN.axaml
+++ b/src/Resources/Locales/zh_CN.axaml
@@ -763,6 +763,7 @@
子模块
添加子模块
跟踪分支
+ 跟踪分支
相对路径
取消初始化
拉取子孙模块
diff --git a/src/Resources/Locales/zh_TW.axaml b/src/Resources/Locales/zh_TW.axaml
index 61956e97..4ebfc9ad 100644
--- a/src/Resources/Locales/zh_TW.axaml
+++ b/src/Resources/Locales/zh_TW.axaml
@@ -763,6 +763,7 @@
子模組
新增子模組
追蹤分支
+ 追蹤分支
相對路徑
取消初始化
提取子模組
diff --git a/src/Views/SubmodulesView.axaml.cs b/src/Views/SubmodulesView.axaml.cs
index c24ac6c0..fdd88c08 100644
--- a/src/Views/SubmodulesView.axaml.cs
+++ b/src/Views/SubmodulesView.axaml.cs
@@ -261,6 +261,15 @@ namespace SourceGit.Views
ev.Handled = true;
};
+ var copyBranch = new MenuItem();
+ copyBranch.Header = App.Text("Submodule.CopyBranch");
+ copyBranch.Icon = App.CreateMenuIcon("Icons.Branch");
+ copyBranch.Click += async (_, ev) =>
+ {
+ await App.CopyTextAsync(submodule.Branch);
+ ev.Handled = true;
+ };
+
var copyRelativePath = new MenuItem();
copyRelativePath.Header = App.Text("Submodule.CopyPath");
copyRelativePath.Icon = App.CreateMenuIcon("Icons.Folder");
@@ -279,15 +288,6 @@ namespace SourceGit.Views
ev.Handled = true;
};
- var copyBranch = new MenuItem();
- copyBranch.Header = App.Text("Submodule.Branch");
- copyBranch.Icon = App.CreateMenuIcon("Icons.Branch");
- copyBranch.Click += async (_, ev) =>
- {
- await App.CopyTextAsync(submodule.Branch);
- ev.Handled = true;
- };
-
var copy = new MenuItem();
copy.Header = App.Text("Copy");
copy.Icon = App.CreateMenuIcon("Icons.Copy");