This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
    kuroski
    
            
            
                    
                                            
        
    
        Good morning guys.
There is a way to translate the themes (as the backend and plugins with a lang folder)?
    JasonSuave
    
            
            
                    
                                            
        
    
        I've create a Twig filter that uses Lang::get() so I can use language files in my Twig templates just as I normally would with Laravel.  
public function translate($message, $variables = [])
    {
        return\Lang::get($message, $variables);
    }
    kuroski
    
            
            
                    
                                            
        
    
        Thankkss for the reply @JasonSuave xDD
I just have 1 question regarding this:
- 
This method would go in the default layout? description = "Default Layout" == <? public function translate($message, $variables = []) { return\Lang::get($message, $variables); } ?> == <h3>MyTheme</h3>
Last updated
1-3 of 3