Due to the nature of the plugin, there's no way to demo both basic
and intl
processors so here are some examples of the basic
(default plugin config)
{{ 'now'|td }}
Output: 07/27/2024 01:40PM
{{ 'now'|td('de') }}
Output: 27.07.2024 13:40
{{ 'now'|td(null, 'Y-m l') }}
Output: 2024-07 Saturday
{{ 'now'|td('lt', 'Y-m l') }}
Output: 2024-07 Šeštadienis
Same usage with intl
support - only formats are different (see README)
Default config is:
enabled: true
processor: basic # `basic|intl`
formats:
cs: 'd.m.Y H:i'
de: 'd.m.Y H:i'
en: 'm/d/Y h:iA'
es: 'd/m/Y H:i'
id: 'd/m/Y H:i'
lt: 'Y-m-d H:i'