Skip to content

Commit

Permalink
fix: update plural resolver map (#252)
Browse files Browse the repository at this point in the history
Signed-off-by: Emmanuel Ferdman <[email protected]>
  • Loading branch information
emmanuel-ferdman authored Oct 18, 2024
1 parent daa8ac2 commit 0b55a71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion slang/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ Optionally, you can escape linked translations by surrounding the path with `{}`

This library uses the concept defined [here](https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html).

Some languages have support out of the box. See [here](https://github.com/slang-i18n/slang/blob/main/slang/lib/api/plural_resolver_map.dart).
Some languages have support out of the box. See [here](https://github.com/slang-i18n/slang/blob/main/slang/lib/src/api/plural_resolver_map.dart).

Plurals are detected by the following keywords: `zero`, `one`, `two`, `few`, `many`, `other`.

Expand Down
2 changes: 1 addition & 1 deletion slang/lib/src/api/singleton.dart
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ extension LocaleSettingsExt<E extends BaseAppLocale<E, T>,

/// Sets plural resolvers.
/// See https://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html
/// See https://github.com/slang-i18n/slang/blob/main/slang/lib/api/plural_resolver_map.dart
/// See https://github.com/slang-i18n/slang/blob/main/slang/lib/src/api/plural_resolver_map.dart
/// Either specify [language], or [locale]. [locale] has precedence.
Future<void> setPluralResolver({
String? language,
Expand Down

0 comments on commit 0b55a71

Please sign in to comment.