Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Latest commit

 

History

History
29 lines (23 loc) · 916 Bytes

internationalisation.md

File metadata and controls

29 lines (23 loc) · 916 Bytes

Internationalisation

There are three options by which you can include internalisation options:

Option Type Default Description
cdn_language_by_locale bool false Get the actual language file by app.request.locale from CDN.
language_by_locale bool false Get the actual language by app.request.locale.
language null or string null Set a language by given ISO 639-1 code.
class PostDatatable extends AbstractDatatable
{
    public function buildDatatable(array $options = array())
    {
        // ...

        $this->language->set(array(
            'cdn_language_by_locale' => true
            //'language_by_locale' => true
            //'language' => 'de'
        ));
        
        // ...
    }
    
    // ...
}