You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For now method AppLocalizations.plural supports only .zero .one and .other. It is good for the English language. But, for example, Russian needs support of .two .few and .many.
It will be perfect to delegate plurals logic to a reliable library. I chose the Intl library and it works great for me. Intl package already included in dart so there is no need for external dependencies. I replaced plural method with the following code:
For now method AppLocalizations.plural supports only .zero .one and .other. It is good for the English language. But, for example, Russian needs support of .two .few and .many.
It will be perfect to delegate plurals logic to a reliable library. I chose the Intl library and it works great for me. Intl package already included in dart so there is no need for external dependencies. I replaced plural method with the following code:
Method _resolve should return null if it does not find a res by key. Be cause different languages may not use some plurals.
The text was updated successfully, but these errors were encountered: