feat: GetLocalizedNames for Infrast and Copilot output (#10335)

* feat: GetLocalizedNames for Infrast output

* feat: Localization for Copilot steps

* i18n: EN tweak
This commit is contained in:
Constrat
2024-08-23 11:13:23 +01:00
committed by GitHub
parent cba4b10c4c
commit b13036b2ff
2 changed files with 3 additions and 3 deletions

View File

@@ -1454,7 +1454,7 @@ namespace MaaWpfGui.Main
string.Format(
LocalizationHelper.GetString("CurrentSteps"),
subTaskDetails["action"],
subTaskDetails["target"]));
DataHelper.GetLocalizedCharacterName(subTaskDetails["target"]?.ToString())));
break;
}
@@ -1497,7 +1497,7 @@ namespace MaaWpfGui.Main
case "CustomInfrastRoomOperators":
string nameStr = (subTaskDetails!["names"] ?? new JArray())
.Aggregate(string.Empty, (current, name) => current + name + ", ");
.Aggregate(string.Empty, (current, name) => current + DataHelper.GetLocalizedCharacterName(name.ToString()) + ", ");
if (nameStr != string.Empty)
{

View File

@@ -753,7 +753,7 @@ The video aspect ratio needs to be 16:9 without interference factors such as bla
<system:String x:Key="UseFormation">Use formation</system:String>
<system:String x:Key="Current">Current</system:String>
<system:String x:Key="BattleFormation">Start formation</system:String>
<system:String x:Key="BattleFormationSelected" xml:space="preserve">Selection of operator: </system:String>
<system:String x:Key="BattleFormationSelected" xml:space="preserve">Operator selected: </system:String>
<system:String x:Key="CurrentSteps">Current step: {0} {1}</system:String>
<system:String x:Key="UnsupportedLevel">Unsupported stage, please check the level name or go to「Settings - Update - Check update」and try updating the resource version!</system:String>
<system:String x:Key="ResourceUpdatePaused">Due to server resource constraints, resource version updates are temporarily suspended. Please manually import the level file or wait for a new version release</system:String>