# I can't find any package for slim to translate content?

**URL:** <https://discourse.slimframework.com/t/i-cant-find-any-package-for-slim-to-translate-content/915>\
**Category:** Questions\
**Created:** [November 17, 2016, 12:24pm UTC](https://discourse.slimframework.com/t/i-cant-find-any-package-for-slim-to-translate-content/915 "2016-11-17T12:24:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abedmaatalla](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@abedmaatalla](https://discourse.slimframework.com/u/abedmaatalla)\
**Post date:** [November 17, 2016, 12:24pm UTC](https://discourse.slimframework.com/t/i-cant-find-any-package-for-slim-to-translate-content/915/1 "2016-11-17T12:24:14Z")

</div>

I found only symfony/translator wish is not the same and it’s not clear to use.  
is there any other packages i can use ??

---

<div class="post-metadata">

**Author:** ![llvdl](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/llvdl/32/78_2.png) [@llvdl](https://discourse.slimframework.com/u/llvdl)\
**Post date:** [November 20, 2016, 8:38pm UTC](https://discourse.slimframework.com/t/i-cant-find-any-package-for-slim-to-translate-content/915/2 "2016-11-20T20:38:25Z")

</div>

Can you elaborate on why you don’t wish to or cannot use symfony/translator? Are you missing instructions on using it with Slim?

As an alternative you can use [illuminate/translation](https://github.com/illuminate/translation), which is part of [Laravel](https://laravel.com/). There is an example of using illuminate/translation with Slim instead of Laravel at [https://github.com/mattstauffer/Torch/tree/master/components/translation](https://github.com/mattstauffer/Torch/tree/master/components/translation).

---

<div class="post-metadata">

**Author:** ![abedmaatalla](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@abedmaatalla](https://discourse.slimframework.com/u/abedmaatalla)\
**Post date:** [November 22, 2016, 12:58pm UTC](https://discourse.slimframework.com/t/i-cant-find-any-package-for-slim-to-translate-content/915/3 "2016-11-22T12:58:39Z")

</div>

> [@llvdl](#):
>
> Are you missing instructions on using it with Slim

can you provide me with some useful tutorial or code example in slim ?

---

<div class="post-metadata">

**Author:** ![llvdl](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/llvdl/32/78_2.png) [@llvdl](https://discourse.slimframework.com/u/llvdl)\
**Post date:** [November 22, 2016, 11:07pm UTC](https://discourse.slimframework.com/t/i-cant-find-any-package-for-slim-to-translate-content/915/4 "2016-11-22T23:07:19Z")

</div>

Hello,

There is an example given at [https://helgesverre.com/blog/i18n-slim-framework-translation-twig/](https://helgesverre.com/blog/i18n-slim-framework-translation-twig/). It seems to use Slim Framework 2 instead of Slim Framework 3, though you may be able to adapt it.

I have created a minimal Slim 3 example application that uses Twig for view rendering and [illuminate/translation](https://github.com/illuminate/translation) for translations, which you can find at [https://github.com/llvdl/Slim-Translations-Example](https://github.com/llvdl/Slim-Translations-Example). As demonstrated in the example (see `app/bootstrap.php`), you can register methods to the Twig renderer, in this case the `trans` and `transChoice` methods.
