command-line-api icon indicating copy to clipboard operation
command-line-api copied to clipboard

Missing support for Finnish language

Open KalleOlaviNiemitalo opened this issue 6 months ago • 5 comments

Please add Finnish translations of System.CommandLine strings like "Options:" and "Required command was not provided."

An application would have been able to provide the translations to System.CommandLine 2.0.0-beta4.22272.1, but this is no longer possible in 2.0.0-beta5.25306.1, as the UseLocalizationResources method and the LocalizationResources class were removed from the public API in https://github.com/dotnet/command-line-api/pull/2041. The migration guide asked me to file an issue.

KalleOlaviNiemitalo avatar Jun 23 '25 08:06 KalleOlaviNiemitalo

@ViktorHofer do you have any idea why adding the Finnish resource file gets a different treatment than other languages? Is it the XlfLanguages suggested by @KalleOlaviNiemitalo ?

adamsitnik avatar Sep 16 '25 15:09 adamsitnik

We need to check that we can add Finnish translation support through our localization and compliance processes. Moving to Future.

jeffhandley avatar Sep 16 '25 16:09 jeffhandley

I wonder though if I could just build a resource assembly myself, fake sign it with PublicSign, and reference it alongside the System.CommandLine package.

KalleOlaviNiemitalo avatar Sep 16 '25 17:09 KalleOlaviNiemitalo

@ViktorHofer do you have any idea why adding the Finnish resource file gets a different treatment than other languages? Is it the XlfLanguages suggested by @KalleOlaviNiemitalo ?

I believe so, yes. Looks like Finish isn't part of the default language set used by xliff-tasks.

ViktorHofer avatar Sep 17 '25 10:09 ViktorHofer