I have a footer string in i18n/en.toml
that looks like this:
[footer_text]
other = "Copyright © 2015-{{ now.Format `2006` }}"
Building it gives this warning (and doesn’t create the string):
WARN 2021/03/26 13:51:17 Failed to get translated string for language "en" and ID "footer_text": template: :1: function "now" not defined
The warning is pretty clear. I know I can access variables from within the translated string, so I’d expect to be able to access Hugo’s set of functions too?
How should I access the current timestamp from inside an internationalised string?