Skip to content

Language Changer

Compare
Choose a tag to compare
@dcblogdev dcblogdev released this 12 Apr 05:59
· 2712 commits to master since this release

Languages can now be changed with a route:

Router::any('language/(:any)', 'App\Controllers\Language@change');

Example of change language links:

<a href='<?=DIR;?>language/cs'>Czech</a>
<a href='<?=DIR;?>language/en'>English</a>
<a href='<?=DIR;?>language/de'>German</a>
<a href='<?=DIR;?>language/fr'>French</a>
<a href='<?=DIR;?>language/it'>Italian</a>
<a href='<?=DIR;?>language/nl'>Dutch</a>
<a href='<?=DIR;?>language/pl'>Polish</a>
<a href='<?=DIR;?>language/ro'>Romanian</a>
<a href='<?=DIR;?>language/ru'>Russian</a>