Class: Translation#

translation.Translation

A class to handle requests to /api/translations

Constructors#

constructor#

new Translation()

Properties#

_prevLocale#

Private _prevLocale: any

Defined in#

packages/translation/lib/translation.d.ts:12

Methods#

get#

get(locale): Promise<JSONObject>

Get the translation data for the given locale

Parameters#

Name

Type

Description

locale

string

The locale

Returns#

Promise<JSONObject>

Defined in#

packages/translation/lib/translation.d.ts:11