Language in url

Language should be present in URL, conventionnaly as first argument.


This allow users to change from one language to another one on each page, which may be useful in multilanguages teams. If the installation is single-language, the language switcher will not appears.

This is an example of routing defined in yaml :

    pattern: /{_locale}/person/{person_id}/general/edit
    defaults: {_controller: ChillPersonBundle:Person:edit }

Date and time

The Intl extension is enabled on the Chill application.

You may format date and time using the localizeddate function :

date|localizeddate('long', 'none')

By default, we prefer using the long format for date formatting.

See also

Documentation for Intl Extension
Read the complete doc for the Intl extension.