This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
abbasadel
Hi,
Is there a way to add translated text to the theme files. For example,
<h1>{{'lang.page1.title' | ___}}</h1>
and use normal internationalization files like in Laravel
//file lang/en/lang.php
return [
'page1' => [
'title' => 'Page 1 Title in English'
]
];
Thanks, Abbas
MadeByFRAME
Did you ever find a solution to this @Abbas?
The documentation for Rainlab.Translate suggests:
<h1>{{ 'Page 1 Title in English'|_ }}</h1>
But that doesn't help if the default language text might need to be updated by a non-CMS-level user....
Last updated
1-2 of 2