diff --git a/src/main/java/pl/allegro/finance/tradukisto/LongValueConverters.java b/src/main/java/pl/allegro/finance/tradukisto/LongValueConverters.java index 5927950a..c154e8de 100644 --- a/src/main/java/pl/allegro/finance/tradukisto/LongValueConverters.java +++ b/src/main/java/pl/allegro/finance/tradukisto/LongValueConverters.java @@ -5,15 +5,17 @@ import static pl.allegro.finance.tradukisto.internal.Container.croatianContainer; import static pl.allegro.finance.tradukisto.internal.Container.englishContainer; -import static pl.allegro.finance.tradukisto.internal.Container.polishContainer; import static pl.allegro.finance.tradukisto.internal.Container.hindiContainer; -import static pl.allegro.finance.tradukisto.internal.Container.swedishContainer; import static pl.allegro.finance.tradukisto.internal.Container.japaneseKanjiContainer; +import static pl.allegro.finance.tradukisto.internal.Container.polishContainer; +import static pl.allegro.finance.tradukisto.internal.Container.russianContainer; +import static pl.allegro.finance.tradukisto.internal.Container.swedishContainer; public enum LongValueConverters { CROATIAN_LONG(croatianContainer().getLongConverter()), ENGLISH_LONG(englishContainer().getLongConverter()), + RUSSIAN_LONG(russianContainer().getLongConverter()), POLISH_LONG(polishContainer().getLongConverter()), HINDI_LONG(hindiContainer().getLongConverter()), SWEDISH_LONG(swedishContainer().getLongConverter()), diff --git a/src/main/java/pl/allegro/finance/tradukisto/internal/languages/russian/RussianValues.java b/src/main/java/pl/allegro/finance/tradukisto/internal/languages/russian/RussianValues.java index 378472ae..68f989f9 100644 --- a/src/main/java/pl/allegro/finance/tradukisto/internal/languages/russian/RussianValues.java +++ b/src/main/java/pl/allegro/finance/tradukisto/internal/languages/russian/RussianValues.java @@ -64,7 +64,10 @@ public List pluralForms() { new SlavicPluralForms("", "", "", GenderType.MASCULINE), new SlavicPluralForms("тысяча", "тысячи", "тысяч", GenderType.FEMININE), new SlavicPluralForms("миллион", "миллиона", "миллионов", GenderType.MASCULINE), - new SlavicPluralForms("миллиард", "миллиарда", "миллиардов", GenderType.MASCULINE) + new SlavicPluralForms("миллиард", "миллиарда", "миллиардов", GenderType.MASCULINE), + new SlavicPluralForms("триллион", "триллиона", "триллионов", GenderType.MASCULINE), + new SlavicPluralForms("квадриллион", "квадриллиона", "квадриллионов", GenderType.MASCULINE), + new SlavicPluralForms("квинтиллион", "квинтиллиона", "квинтиллионов", GenderType.MASCULINE) ); } diff --git a/src/test/groovy/pl/allegro/finance/tradukisto/LongValueConvertersTest.groovy b/src/test/groovy/pl/allegro/finance/tradukisto/LongValueConvertersTest.groovy index 4fbb48cb..3d7d53af 100644 --- a/src/test/groovy/pl/allegro/finance/tradukisto/LongValueConvertersTest.groovy +++ b/src/test/groovy/pl/allegro/finance/tradukisto/LongValueConvertersTest.groovy @@ -6,6 +6,7 @@ import spock.lang.Unroll import static pl.allegro.finance.tradukisto.LongValueConverters.ENGLISH_LONG import static pl.allegro.finance.tradukisto.LongValueConverters.HINDI_LONG import static pl.allegro.finance.tradukisto.LongValueConverters.POLISH_LONG +import static pl.allegro.finance.tradukisto.LongValueConverters.RUSSIAN_LONG import static pl.allegro.finance.tradukisto.LongValueConverters.SWEDISH_LONG import static pl.allegro.finance.tradukisto.LongValueConverters.JAPANESE_KANJI_LONG @@ -19,6 +20,7 @@ class LongValueConvertersTest extends Specification { where: language | converter || number "English" | ENGLISH_LONG || "one quintillion" + "Russian" | RUSSIAN_LONG || "один квинтиллион" "Polish" | POLISH_LONG || "jeden trylion" "Hindi" | HINDI_LONG || "दस शंख" "Swedish" | SWEDISH_LONG || "en triljon"