Open frankbuckley opened 4 hours ago
Suggest DSE.Open.Localization assembly/project
Or perhaps DSE.Open.Localization.Resources
return string.Format(GetString("Saying", culture), arg0);
Should pass FormatCulture
:
public string SayWord(object? arg0, CultureInfo? culture = null)
{
return string.Format(FormatCulture, GetString("Saying", culture), arg0);
}
Given a project file:
and in
Resources/strings.restext
:and in
Resources/Strings.cs
:and in
Resources/ResourceProvider.cs
:generate:
Notes:
PackagedLocalizedResourceProvider
will need to move to OpenDSE.Open.Localization
assembly/projectSaysWordCount = Says {count:int} words
generatingpublic string SayWord(int count, CultureInfo? culture = null)
?