# Add translation to a plugin

**URL:** https://meta.discourse.org/t/add-translation-to-a-plugin/54748
**Category:** Developers
**Tags:** translation, plugin-guides, how-to
**Created:** [12월 24, 2016, 4:14오후 UTC](https://meta.discourse.org/t/add-translation-to-a-plugin/54748 "2016-12-24T16:14:13Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)
#### Post date: [12월 24, 2016, 4:14오후 UTC](https://meta.discourse.org/t/add-translation-to-a-plugin/54748/1 "2016-12-24T16:14:13Z")

</div>

1. go to the github repository of the plugin, e. g. [discourse-canned-replies](https://github.com/discourse/discourse-canned-replies).

- go to `/config/locales` folder of the plugin. you should see some `yml` files, like `client.en.yml` and `server.en.yml`.

- the client file is for the text parts in client side and is more important to be translated. texts in server file are only shown to admins.

- open the English yml file, as we want to first translate this file.

- press `create new file` button.

- copy the text in `client.en.yml` into the new file.

- change the first line from `en` to the proper locale name in discourse. e.g. I want to translate it to Persian, the correct locale name would be `fa_IR`.

- now translate the strings between quotations `"` to your preferred language.

- save the file into another file named `client.fa.yml`, if you’re translating it into German the name would be something like this `client.de.yml`.

- fill out the information for the file like: `Persian translation of client.en.yml`.

- then you should add a pull request, and wait for the plugin owner to accept it.

BTW, there are other topics which show the way for this, but as I didn’t find it in howto just added my own experience: [https://meta.discourse.org/t/how-to-add-plugin-translations/19890?u=pad\_pors](https://meta.discourse.org/t/how-to-add-plugin-translations/19890)
