I am using react-intl
package for internationalization. The package, in turn, relies on intl-messageformat
. I’ve been searching through the docs in both packages, but am still confused about whether it is possible to internationalize messages for variables that are fractions. For example, as discussed here:
some languages use the equivalent of “1.2 teaspoons” but “2.1 teaspoon”
Is there a way to account for fractions when using react-intl
/intl-messageformat
? So far I’ve only seen examples with integers in the docs.