fetchHubTranslation

Function

Fetch the Hub translation file for a given locale These are all public urls and should never require auth/tokens etc

  • fetchHubTranslation(locale: string, portal: IPortal, mode: RequestMode) : Promise<any>

Parameters

Parameter Type Default Notes
locale Required string

Locale code - i.e. es

portal Required IPortal

Portal Self

mode Optional RequestMode "cors"

Returns

Promise<any>

Function defined in common/src/i18n/fetch-hub-translation.ts:10