# Plugin localization

**URL:** <https://discourse.cakephp.org/t/plugin-localization/4737>\
**Category:** Plugins\
**Tags:** i18n\
**Created:** [August 17, 2018, 8:27am UTC](https://discourse.cakephp.org/t/plugin-localization/4737 "2018-08-17T08:27:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hamidreza](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/hamidreza/32/1122_2.png) [@hamidreza](https://discourse.cakephp.org/u/hamidreza)\
**Post date:** [August 17, 2018, 8:27am UTC](https://discourse.cakephp.org/t/plugin-localization/4737/1 "2018-08-17T08:27:14Z")

</div>

i wrote a plugin `(SiteTheme)` as a theme and i want to localize it.  
i generate `pot` file using

```
bin\cake i18n extract --plugin SiteTheme

```

the `pot` file created by bake at

`root/plugins/SiteTheme/src/Locale/default.pot`

i moved it to

`root/plugins/SiteTheme/src/Locale/en_US/default.po`

and i set the locale to `en_US`  
but cakephp dose not load it .  
but when i move files to the

`root/src/Locale/en_US/default.po`

it loads perfectly.  
the question is how can i load `po` files in the plugins directory ?

i cleared the `root/tmp/cache/persistent` every time i test
