Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

Properties

imgMap

imgMap: Record<string, any>

A object that maps the region to a path to the img scr

locale

locale: Locale

localeList

localeList: Locale[]

Locale list of localization api

Private stateSetLocale

stateSetLocale: React.Dispatch<React.SetStateAction<Locale>>

Methods

getFormateLocale

  • getFormateLocale(): string
  • Gets formatted locale

    Returns string

    formatted locale in the form language[_region][.encoding][@modifier]

getLocale

localeToString

  • localeToString(currentLocal: Locale): string
  • converts a given locale to a formatted string

    Parameters

    • currentLocal: Locale

      the given locale

    Returns string

    the formatted string

onSwitch

  • onSwitch(): void
  • TODO: determine wether or not this should go into the API is a called when switching the locale

    Returns void

    void

setLocale

Object literals

default

default: object

language

language: object

code

code: string = "en"

label

label: string = "English"

Generated using TypeDoc