using System.Collections.Generic;
using Jeffijoe.MessageFormat;
public static void Main()
var testValues = new int[] { 1, 2, 5, 11, 21, 121, 111, 1891 };
var pattern = "{Total, plural, one {({Total} zapis)} few {({Total} zapisa)} other {({Total} zapisa)}}";
var formatter = new MessageFormatter(false, "bs");
foreach (var val in testValues)
var args = new Dictionary<string, object> { { "Total", val }};
Console.WriteLine(formatter.FormatMessage(pattern, args));