MyApp.Cldr.Territory.from_subdivision_code-exclamation-mark
You're seeing just the function
from_subdivision_code-exclamation-mark
, go back to MyApp.Cldr.Territory module for more information.
Link to this function
from_subdivision_code!(subdivision_code, options \\ [locale: MyApp.Cldr.get_locale()])
View SourceSpecs
from_subdivision_code!(binary(), [{:locale, Cldr.Territory.binary_tag()}]) :: binary() | no_return()
The same as from_subdivision_code/2
, but raises an exception if it fails.
Example
iex> MyApp.Cldr.Territory.from_subdivision_code!("gbcma", locale: "en")
"Cumbria"
iex> MyApp.Cldr.Territory.from_subdivision_code!("gbcma", locale: "pl")
"Kumbria"