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: 09/29/2023 08:46PM
{{ 'now'|td('de') }}
Output: 29.09.2023 20:46
{{ 'now'|td(null, 'Y-m l') }}
Output: 2023-09 Friday
{{ 'now'|td('lt', 'Y-m l') }}
Output: 2023-09 Penktadienis
Same usage with intl
support - only formats are different (see README)
Default config is:
enabled: true
processor: basic # `basic|intl`
formats:
de: 'd.m.Y H:i'
en: 'm/d/Y h:iA'
lt: 'Y-m-d H:i'