utils/text/parseRegion

Convert a region cookie value to its display value

Source:
Parameters:
Name Type Description
regionRaw string

raw region cookie value (e.g. gnca-new-brunswick)

slug bool

determines whether to return a region slug (for urls) or a title

Returns:
  • formatted region value (e.g. New Brunswick)
Type
string