PHP code example of conedevelopment / i18n

1. Go to this page and download the library: Download conedevelopment/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/ */

    

conedevelopment / i18n example snippets


[
    'attempts' => 'Be careful, you have :attempts attempt left.|You still have :attempts attempts left.',
]

[
    'apples' => '{0} There are none|[1,19] There are some (:number)|[20,*] There are many (:number)',
]

[
    'welcome' => 'Welcome, :NAME',
    'goodbye' => 'Goodbye, :Name',
]