@Glenn Meadows, Welcome to Microsoft Q&A, you could try the following code to get the respective cultural language output.
internal class Program
{
static Random rnd = new Random();
static void Main(string[] args)
{
Console.OutputEncoding= Encoding.UTF8;
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("fr-FR");
Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("fr-FR");
DisplayValues();
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("EN-US");
Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("EN-US");
DisplayValues();
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("JP-JP");
Thread.CurrentThread.CurrentUICulture = CultureInfo.CreateSpecificCulture("JP-JP");
DisplayValues();
}
private static void DisplayValues()
{
Console.WriteLine("Some currency values:");
for (int ctr = 0; ctr <= 3; ctr++)
Console.WriteLine(" {0:C2}", rnd.NextDouble() * 10);
}
}
Based on my test, the three languages could get different currency formats:
Best Regards,
Jack
If the answer is the right solution, please click "Accept Answer" and upvote it.If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.