I want to iterate over my i18n translations. Given an i18n/en.toml
:
[whatever]
other = "What?"
[toprely]
other = "You Can Rely on Us"
[topcont]
other = "Contact Us"
[topwhy]
other = "Why Us?"
[somethingelse]
other = "Another"
… can I use range against the i18n values? This did not work, to filter for and iterate over just the i18n values that contain “top”:
{{ range where i18n "in" "top"}}
{{ . }}
{{ end }}
I want to use this to build some repeating structure like a <ul>
or grid, with a set of translations with a common substring.
Any help appreciated!