haitham/country-code-translation

This bundles translate given country codes to names

v1.01 2018-02-19 23:51 UTC

This package is not auto-updated.

Last update: 2024-05-03 01:47:33 UTC


README

This bundles translate given country codes to names

{{ "TN" |country }} #default locale
<-- OR -->
{{ "TN" |country("en") }} #given locale

INSTALLATION via Composer

composer require haitham/country-code-translation

CONFIGURATION

Register the bundle:

// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new haitham\countriesBundle\haithamcountriesBundle(),
    );
    // ...
}