Cldr.Unit.Format.grammar
You're seeing just the function
grammar
, go back to Cldr.Unit.Format module for more information.
Specs
grammar(Cldr.Unit.t(), Keyword.t()) :: grammar_list() | {grammar_list(), grammar_list()}
Traverses the components of a unit and resolves a list of base units with their gramatical case and plural selector definitions for a given locale.
This function relies upon the internal
representation of units and grammatical features
and is primarily for the support of
formatting a function through Cldr.Unit.to_string/2
.
Arguments
unit
is at:Cldr.Unit
or a binary unit string
Options
:locale
is any valid locale name returned byCldr.known_locale_names/1
or at:Cldr.LanguageTag
struct. The default isCldr.get_locale/0
backend
is any module that includesuse Cldr
and therefore is aCldr
backend module. The default isCldr.default_backend!/0
.