Translation For Static WordsCreated 4 years ago by richardoctoey
Hi guys, I guess that pyrocms is able to translate static words. because I watch it from here: https://pyrocms.com/videos/series/extending-pyrocms/overriding-translations
My problem is: I want to write down translate-able static words. So in the view I put:
trans('wosh') then in the lang/en/addon.php I add return [ 'wosh' => 'wow', ];
but it print wosh, instead of wow. I'm sure that i'm in en locale, because i'm put http://localhost:8000/?_locale=en in the url and the content return the english content. I think I am doing it wrong, thanks for help.