PHP code example of 68publishers / i18n
1. Go to this page and download the library: Download 68publishers/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/ */
68publishers / i18n example snippets
/** @var \SixtyEightPublishers\i18n\Profile\ActiveProfile $activeProfile */
/** @var \SixtyEightPublishers\TranslationBridge\Localization\TranslatorLocalizerInterface $localizer */
$activeProfile->changeLanguage('en_GB');
$localizer->getLocale(); # en_GB
$activeProfile->changeLanguage('cs_CZ');
$localizer->getLocale(); # cs_CZ
bash
$ vendor/bin/php-cs-fixer fix --config=.php_cs.dist -v --dry-run