Skip to content

Commit

Permalink
russian long value converter (#161)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex T <[email protected]>
  • Loading branch information
alex-t0 and Alex T authored Oct 16, 2024
1 parent 32c13f7 commit dd83c9e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ public List<PluralForms> 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)
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
Expand Down

0 comments on commit dd83c9e

Please sign in to comment.