# Localization

The plugin has two localization files. One for an admin and one for a frontend page. In most cases you need to localize only a frontend page. Localization files are inside the `language` folder of the plugin.

To make a localization from the admin page with the most comfort way, we recommend to use the plugin [Loco translate.](https://wordpress.org/plugins/loco-translate/) You need to make some setup before using the plugin to edit frontend files. Go to `Loco translate` – `Plugins` and find `Affiliate Egg`. Then, go to Setup tab and make next settings. (This can be set automatically. If so, then don't change anything here).

![](https://940736139-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5W1lOLsBsZnXap8X6J%2F-M5WRWbHLYAYIgpUpRjo%2F-M5WT4KbkFkZcJcR6NrE%2FNewItem17.png?alt=media\&token=d2915434-4fc5-4362-a81a-d20b6bf3279f)

Save the file. Now you can create a new language or use an existed language for a frontend localization.

To create a new language, click on link `“New language”`

![](https://940736139-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5W1lOLsBsZnXap8X6J%2F-M5WRWbHLYAYIgpUpRjo%2F-M5WTFAvabD9_RO_bVhG%2FNewItem18.png?alt=media\&token=a07bf62a-f0a0-4182-b9c9-10f7d8b6710b)

{% hint style="warning" %}
The plugin uses own setting for a language of frontend part and doesn't use a language setting of WordPress. Set a language in `Affiliate Egg` –> `Settings` –> `Website language`.
{% endhint %}

Choose `Custom language` and set locale (**two letters**) which you have in the `Affiliate Egg` –> `Settings` –> `Website language`.

When you create a new language in Loco translate, it must be **without a second part.** For example, for Finish, a file name must be `“fi”`, not “fi\_FI” as usual in WordPress.

![](https://940736139-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M5W1lOLsBsZnXap8X6J%2F-M5WRWbHLYAYIgpUpRjo%2F-M5WU-Z_87cyqV99n-ji%2FNewItem20.png?alt=media\&token=55de2b22-4dce-4a66-9a4e-400365436ef7)
