dotnet / dotnet/command-line-api

Incomplete French (fr) translation: RequiredOptionWasNotProvided not translated

Open Beginner friendly
#2,822 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
3.7k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

## Description

The French satellite assembly (fr/System.CommandLine.resources.dll) shipped with System.CommandLine 2.0.9 contains untranslated strings.

## Current behavior

When CultureInfo.DefaultThreadCurrentUICulture is set to fr-FR and a required option is missing:

`
Option '--input' is required.
`

## Expected behavior

The message should be in French:

`
L'option '--input' est obligatoire.
`

## Analysis

Inspecting the fr/System.CommandLine.resources.dll satellite assembly shows that RequiredOptionWasNotProvided still holds the English text, along with several other untranslated keys (ArgumentConversionCannotParse, HelpOptionDescription, HelpOptionsRequiredLabel, SuggestionsTokenNotMatched, etc.).

## Environment

- System.CommandLine version: 2.0.9
- .NET version: net10.0

## Suggested fix

Update the French resource file to translate all missing keys, at minimum:
- RequiredOptionWasNotProvided = L'option '{0}' est obligatoire.
- HelpOptionsRequiredLabel = (OBLIGATOIRE)

Contributor guide

Open the contributing guide

Research direction

Start by locating the French resource source that produces fr/System.CommandLine.resources.dll, then inspect the RequiredOptionWasNotProvided and other listed untranslated keys. Translate the missing entries, including the suggested RequiredOptionWasNotProvided and HelpOptionsRequiredLabel values, and rebuild the French satellite assembly. Verify the required-option message under fr-FR and check the other listed keys.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, localization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.