Class: Translation#
@jupyterlite/translation.Translation
A class to handle requests to /api/translations
Constructors#
constructor#
new Translation()
Properties#
_prevLocale#
Private_prevLocale:string=''
Defined in#
Methods#
get#
get(locale):Promise<JSONObject>
Get the translation data for the given locale
Parameters#
Name |
Type |
Description |
|---|---|---|
|
|
The locale |
Returns#
Promise<JSONObject>