# setLanguage

function to change lnaguage selected in the EnkaNetwork.

### Params

* **`language?:`**` ``"CHS" | "CHT" | "DE" | "EN" | "ES" | "FR" | "ID" | "JP" | "KR" | "PT" | "RU" | "TH" | "VI"` (not required) - the language to be used in the localization of names (characters, artifacts, etc.). Default is language selected in the class.

### Example

{% code overflow="wrap" %}
```typescript
import { EnkaNetwork } from "enkanetwork";

const enka = new EnkaNetwork({ language: "EN", assets: { languages: ["RU"] } });

enka.setLanguage("RU").fetchUser(700832641).then(console.log); // In Russian localization
```
{% endcode %}

### Return

{% content-ref url="../class-description/enkanetwork" %}
[enkanetwork](../class-description/enkanetwork)
{% endcontent-ref %}
