How to translate dates in different languages?

In different languages, the number of years is written differently, for example, 3 years and 10 years in Ukrainian are written as 3 роки and 10 років, how can this condition be written in localazy?

Hello Oleg,

this can be handled by defining the source key as plural type.
In your example, you would define two variants for English

  • One: 1 year
  • Other: x years

English supports two plural types, one and other. However, when translating into other languages, Localazy will automatically prompt the translator to fill in all the variants for the target language.

You can read more about plurals here.

How to create a plural source key depends on how you upload your content and in which format.