twig/intl-extra

A Twig extension for Intl

Maintainers

Package info

github.com/twigphp/intl-extra

Homepage

pkg:composer/twig/intl-extra

Transparency log

Fund package maintenance!

fabpot

Tidelift

Statistics

Installs: 69 958 706

Dependents: 214

Suggesters: 2

Stars: 365


README

This package is a Twig extension that provides the following:

  • country_name filter: returns the country name given its two-letter/five-letter code;
  • currency_name filter: returns the currency name given its three-letter code;
  • currency_symbol filter: returns the currency symbol given its three-letter code;
  • language_name filter: returns the language name given its two-letter/five-letter code;
  • locale_name filter: returns the language name given its two-letter/five-letter code;
  • timezone_name filter: returns the timezone name given its identifier;
  • country_timezones filter: returns the timezone identifiers of the given country code;
  • format_currency filter: formats a number as a currency;
  • format_number filter: formats a number;
  • format_datetime filter: formats a date time;
  • format_date filter: formats a date;
  • format_time filter: formats a time;
  • format_list filter: formats a list of strings as a single, locale-aware string.