Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 6 days ago
JSON representation
Intl support for Twig
- Host: GitHub
- URL: https://github.com/twigphp/intl-extra
- Owner: twigphp
- License: mit
- Created: 2019-08-10T14:02:56.000Z (over 5 years ago)
- Default Branch: 2.x
- Last Pushed: 2024-06-21T06:25:13.000Z (5 months ago)
- Last Synced: 2024-07-27T22:42:58.478Z (4 months ago)
- Topics: i18n, intl, l10n, php, twig, twig-extension
- Language: PHP
- Size: 122 KB
- Stars: 313
- Watchers: 6
- Forks: 21
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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