# Class: `Translation` [@jupyterlite/translation](../modules/jupyterlite_translation.md).Translation A class to handle requests to /api/translations ## Constructors ### `constructor` > **`new Translation`**() ## Properties ### `_prevLocale` > `Private` **`_prevLocale`**: `string` = `''` #### Defined in [packages/translation/src/translation.ts:56](https://github.com/jupyterlite/jupyterlite/blob/7971e0aa/packages/translation/src/translation.ts#L56) ## 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/src/translation.ts:19](https://github.com/jupyterlite/jupyterlite/blob/7971e0aa/packages/translation/src/translation.ts#L19)