PHP code example of phpaml / i18n

1. Go to this page and download the library: Download phpaml/i18n library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

phpaml / i18n example snippets


use AML\I18n\I18n;
use function AML\I18n\t;

I18n::configure(__DIR__ . '/locales', 'fr', 'en');
echo t('pages.home.welcome', ['name' => 'André']);
echo trans_choice('pages.home.tasks', 3);