Fix fluent plural forms.

This commit is contained in:
Matthias Mailänder
2023-05-22 21:44:46 +02:00
committed by abcdefg30
parent 8a9426a0d4
commit 5bcb1a678c
2 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ label-players = {$player ->
[TestCase(TestName = "Fluent Plural Terms")]
public void TestOne()
{
var translation = new Translation(pluralForms, e => Console.WriteLine(e.Message));
var translation = new Translation("en", pluralForms, e => Console.WriteLine(e.Message));
var label = translation.GetString("label-players", Translation.Arguments("player", 1));
Assert.That("One player", Is.EqualTo(label));
label = translation.GetString("label-players", Translation.Arguments("player", 2));