diff --git a/src/System.CommandLine.Tests/LocalizationTests.cs b/src/System.CommandLine.Tests/LocalizationTests.cs
index e79811f683..aec26c79be 100644
--- a/src/System.CommandLine.Tests/LocalizationTests.cs
+++ b/src/System.CommandLine.Tests/LocalizationTests.cs
@@ -7,10 +7,11 @@ namespace System.CommandLine.Tests
public class LocalizationTests
{
private const string CommandName = "the-command";
+ private const string ArgumentName = "arg";
[Theory]
- [InlineData("es", $"Falta el argumento requerido para el comando: '{CommandName}'.")]
- [InlineData("en-US", $"Required argument missing for command: '{CommandName}'.")]
+ [InlineData("es", $"Falta el argumento requerido '{ArgumentName}' para el comando: '{CommandName}'.")]
+ [InlineData("en-US", $"Required argument '{ArgumentName}' missing for command: '{CommandName}'.")]
public void ErrorMessages_AreLocalized(string cultureName, string expectedMessage)
{
CultureInfo uiCultureBefore = CultureInfo.CurrentUICulture;
diff --git a/src/System.CommandLine/LocalizationResources.cs b/src/System.CommandLine/LocalizationResources.cs
index 18f3c33d76..b3437b7223 100644
--- a/src/System.CommandLine/LocalizationResources.cs
+++ b/src/System.CommandLine/LocalizationResources.cs
@@ -50,11 +50,11 @@ internal static string InvalidCharactersInFileName(char invalidChar) =>
GetResourceString(Properties.Resources.InvalidCharactersInFileName, invalidChar);
///
- /// Interpolates values into a localized string similar to Required argument missing for command: {0}.
+ /// Interpolates values into a localized string similar to Required argument '{0}' missing for command: '{1}'.
///
internal static string RequiredArgumentMissing(ArgumentResult argumentResult) =>
argumentResult.Parent is CommandResult commandResult
- ? GetResourceString(Properties.Resources.CommandRequiredArgumentMissing, commandResult.IdentifierToken.Value)
+ ? GetResourceString(Properties.Resources.CommandRequiredArgumentMissing, argumentResult.Argument.Name, commandResult.IdentifierToken.Value)
: RequiredArgumentMissing((OptionResult)argumentResult.Parent!);
///
diff --git a/src/System.CommandLine/Properties/Resources.resx b/src/System.CommandLine/Properties/Resources.resx
index 2cd913ede2..57cddbe4fc 100644
--- a/src/System.CommandLine/Properties/Resources.resx
+++ b/src/System.CommandLine/Properties/Resources.resx
@@ -133,7 +133,7 @@
Character not allowed in a path: '{0}'.
- Required argument missing for command: '{0}'.
+ Required argument '{0}' missing for command: '{1}'.
Required argument missing for option: '{0}'.
diff --git a/src/System.CommandLine/Properties/xlf/Resources.cs.xlf b/src/System.CommandLine/Properties/xlf/Resources.cs.xlf
index d20a81bf04..5200fa0e62 100644
--- a/src/System.CommandLine/Properties/xlf/Resources.cs.xlf
+++ b/src/System.CommandLine/Properties/xlf/Resources.cs.xlf
@@ -28,8 +28,8 @@
- Required argument missing for command: '{0}'.
- Chybí povinný argument pro příkaz: '{0}'.
+ Required argument '{0}' missing for command: '{1}'.
+ Chybí povinný argument '{0}' pro příkaz: '{1}'.
diff --git a/src/System.CommandLine/Properties/xlf/Resources.de.xlf b/src/System.CommandLine/Properties/xlf/Resources.de.xlf
index 648385ec11..ecf7ee658a 100644
--- a/src/System.CommandLine/Properties/xlf/Resources.de.xlf
+++ b/src/System.CommandLine/Properties/xlf/Resources.de.xlf
@@ -28,8 +28,8 @@
- Required argument missing for command: '{0}'.
- Ein erforderliches Argument fehlt für den Befehl: '{0}'.
+ Required argument '{0}' missing for command: '{1}'.
+ Ein erforderliches Argument '{0}' fehlt für den Befehl: '{1}'.
diff --git a/src/System.CommandLine/Properties/xlf/Resources.es.xlf b/src/System.CommandLine/Properties/xlf/Resources.es.xlf
index 3d8efcb17c..00c97d4d51 100644
--- a/src/System.CommandLine/Properties/xlf/Resources.es.xlf
+++ b/src/System.CommandLine/Properties/xlf/Resources.es.xlf
@@ -28,8 +28,8 @@
- Required argument missing for command: '{0}'.
- Falta el argumento requerido para el comando: '{0}'.
+ Required argument '{0}' missing for command: '{1}'.
+ Falta el argumento requerido '{0}' para el comando: '{1}'.
diff --git a/src/System.CommandLine/Properties/xlf/Resources.fi.xlf b/src/System.CommandLine/Properties/xlf/Resources.fi.xlf
index 1a15074f13..2539b7351a 100644
--- a/src/System.CommandLine/Properties/xlf/Resources.fi.xlf
+++ b/src/System.CommandLine/Properties/xlf/Resources.fi.xlf
@@ -28,8 +28,8 @@
- Required argument missing for command: '{0}'.
- Pakollinen argumentti puuttuu komennolta: '{0}'.
+ Required argument '{0}' missing for command: '{1}'.
+ Pakollinen argumentti '{0}' puuttuu komennolta: '{1}'.
diff --git a/src/System.CommandLine/Properties/xlf/Resources.fr.xlf b/src/System.CommandLine/Properties/xlf/Resources.fr.xlf
index cee804e763..21acd04739 100644
--- a/src/System.CommandLine/Properties/xlf/Resources.fr.xlf
+++ b/src/System.CommandLine/Properties/xlf/Resources.fr.xlf
@@ -28,8 +28,8 @@
- Required argument missing for command: '{0}'.
- Argument obligatoire manquant pour la commande : '{0}'.
+ Required argument '{0}' missing for command: '{1}'.
+ Argument obligatoire '{0}' manquant pour la commande : '{1}'.
diff --git a/src/System.CommandLine/Properties/xlf/Resources.it.xlf b/src/System.CommandLine/Properties/xlf/Resources.it.xlf
index 9801fe92dc..a0f1d80adf 100644
--- a/src/System.CommandLine/Properties/xlf/Resources.it.xlf
+++ b/src/System.CommandLine/Properties/xlf/Resources.it.xlf
@@ -28,8 +28,8 @@
- Required argument missing for command: '{0}'.
- Manca l'argomento obbligatorio per il comando: '{0}'.
+ Required argument '{0}' missing for command: '{1}'.
+ Manca l'argomento obbligatorio '{0}' per il comando: '{1}'.
diff --git a/src/System.CommandLine/Properties/xlf/Resources.ja.xlf b/src/System.CommandLine/Properties/xlf/Resources.ja.xlf
index 3370c359b7..392631110d 100644
--- a/src/System.CommandLine/Properties/xlf/Resources.ja.xlf
+++ b/src/System.CommandLine/Properties/xlf/Resources.ja.xlf
@@ -28,8 +28,8 @@
- Required argument missing for command: '{0}'.
- 必要な引数がコマンドにありません: '{0}'.
+ Required argument '{0}' missing for command: '{1}'.
+ 必要な引数 '{0}' がコマンド '{1}' にありません。
diff --git a/src/System.CommandLine/Properties/xlf/Resources.ko.xlf b/src/System.CommandLine/Properties/xlf/Resources.ko.xlf
index e121e576d9..b049e95ca9 100644
--- a/src/System.CommandLine/Properties/xlf/Resources.ko.xlf
+++ b/src/System.CommandLine/Properties/xlf/Resources.ko.xlf
@@ -28,8 +28,8 @@
- Required argument missing for command: '{0}'.
- 명령 '{0}'에 대한 필수 인수가 없습니다.
+ Required argument '{0}' missing for command: '{1}'.
+ 명령 '{1}'에 대한 필수 인수 '{0}'이(가) 없습니다.
diff --git a/src/System.CommandLine/Properties/xlf/Resources.pl.xlf b/src/System.CommandLine/Properties/xlf/Resources.pl.xlf
index 12d431c17e..687d6cab23 100644
--- a/src/System.CommandLine/Properties/xlf/Resources.pl.xlf
+++ b/src/System.CommandLine/Properties/xlf/Resources.pl.xlf
@@ -28,8 +28,8 @@
- Required argument missing for command: '{0}'.
- Brakuje argumentu wymaganego polecenia: '{0}'.
+ Required argument '{0}' missing for command: '{1}'.
+ Brakuje argumentu wymaganego '{0}' polecenia: '{1}'.
diff --git a/src/System.CommandLine/Properties/xlf/Resources.pt-BR.xlf b/src/System.CommandLine/Properties/xlf/Resources.pt-BR.xlf
index fffee1d8ed..c8401634ac 100644
--- a/src/System.CommandLine/Properties/xlf/Resources.pt-BR.xlf
+++ b/src/System.CommandLine/Properties/xlf/Resources.pt-BR.xlf
@@ -28,8 +28,8 @@
- Required argument missing for command: '{0}'.
- Argumento obrigatório ausente para o comando: '{0}'.
+ Required argument '{0}' missing for command: '{1}'.
+ Argumento obrigatório '{0}' ausente para o comando: '{1}'.
diff --git a/src/System.CommandLine/Properties/xlf/Resources.ru.xlf b/src/System.CommandLine/Properties/xlf/Resources.ru.xlf
index 68a2d6eb24..61ec7cfcc8 100644
--- a/src/System.CommandLine/Properties/xlf/Resources.ru.xlf
+++ b/src/System.CommandLine/Properties/xlf/Resources.ru.xlf
@@ -28,8 +28,8 @@
- Required argument missing for command: '{0}'.
- Отсутствует обязательный аргумент для команды: '{0}'.
+ Required argument '{0}' missing for command: '{1}'.
+ Отсутствует обязательный аргумент '{0}' для команды: '{1}'.
diff --git a/src/System.CommandLine/Properties/xlf/Resources.tr.xlf b/src/System.CommandLine/Properties/xlf/Resources.tr.xlf
index 5096668256..529fe45a47 100644
--- a/src/System.CommandLine/Properties/xlf/Resources.tr.xlf
+++ b/src/System.CommandLine/Properties/xlf/Resources.tr.xlf
@@ -28,8 +28,8 @@
- Required argument missing for command: '{0}'.
- Komut için gerekli bağımsız değişken eksik: '{0}'.
+ Required argument '{0}' missing for command: '{1}'.
+ Komut '{1}' için gerekli bağımsız değişken '{0}' eksik.
diff --git a/src/System.CommandLine/Properties/xlf/Resources.zh-Hans.xlf b/src/System.CommandLine/Properties/xlf/Resources.zh-Hans.xlf
index 507b132746..31dd6e8849 100644
--- a/src/System.CommandLine/Properties/xlf/Resources.zh-Hans.xlf
+++ b/src/System.CommandLine/Properties/xlf/Resources.zh-Hans.xlf
@@ -28,8 +28,8 @@
- Required argument missing for command: '{0}'.
- 命令缺少所需参数: '{0}'.
+ Required argument '{0}' missing for command: '{1}'.
+ 命令 '{1}' 缺少所需参数 '{0}'。
diff --git a/src/System.CommandLine/Properties/xlf/Resources.zh-Hant.xlf b/src/System.CommandLine/Properties/xlf/Resources.zh-Hant.xlf
index 72d2f50e2d..acd6fdc118 100644
--- a/src/System.CommandLine/Properties/xlf/Resources.zh-Hant.xlf
+++ b/src/System.CommandLine/Properties/xlf/Resources.zh-Hant.xlf
@@ -28,8 +28,8 @@
- Required argument missing for command: '{0}'.
- 命令遺漏必要引數: '{0}'.
+ Required argument '{0}' missing for command: '{1}'.
+ 命令 '{1}' 遺漏必要引數 '{0}'。