Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/twigphp/intl-extra

Intl support for Twig
https://github.com/twigphp/intl-extra

i18n intl l10n php twig twig-extension

Last synced: about 2 months ago
JSON representation

Intl support for Twig

Awesome Lists containing this project

README

        

Twig Intl Extension
===================

This package is a Twig extension that provides the following:

* [`country_name`][1] filter: returns the country name given its two-letter/five-letter code;
* [`currency_name`][2] filter: returns the currency name given its three-letter code;
* [`currency_symbol`][3] filter: returns the currency symbol given its three-letter code;
* [`language_name`][4] filter: returns the language name given its two-letter/five-letter code;
* [`locale_name`][5] filter: returns the language name given its two-letter/five-letter code;
* [`timezone_name`][6] filter: returns the timezone name given its identifier;
* [`country_timezones`][7] filter: returns the timezone identifiers of the given country code;
* [`format_currency`][8] filter: formats a number as a currency;
* [`format_number`][9] filter: formats a number;
* [`format_datetime`][10] filter: formats a date time;
* [`format_date`][11] filter: formats a date;
* [`format_time`][12] filter: formats a time.

[1]: https://twig.symfony.com/country_name
[2]: https://twig.symfony.com/currency_name
[3]: https://twig.symfony.com/currency_symbol
[4]: https://twig.symfony.com/language_name
[5]: https://twig.symfony.com/locale_name
[6]: https://twig.symfony.com/timezone_name
[7]: https://twig.symfony.com/country_timezones
[8]: https://twig.symfony.com/format_currency
[9]: https://twig.symfony.com/format_number
[10]: https://twig.symfony.com/format_datetime
[11]: https://twig.symfony.com/format_date
[12]: https://twig.symfony.com/format_time