Files
hugoDocs/content/functions/i18n.md
T
Bjørn Erik Pedersen 4e0bca2b1e Remove the needsexamples construct
We need to rework the whole template func docs and, while a good idea, this does not fit into that.
2017-07-16 15:13:35 +02:00

1006 B

title, linktitle, description, godocref, date, publishdate, lastmod, categories, menu, signature, workson, hugoversion, relatedfuncs, deprecated, aliases
title linktitle description godocref date publishdate lastmod categories menu signature workson hugoversion relatedfuncs deprecated aliases
i18n i18n Translates a piece of content based on your i18n configuration files. 2017-02-01 2017-02-01 2017-02-01
functions
docs
parent
functions
i18n KEY
T KEY
false

This translates a piece of content based on your i18n/en-US.yaml (and friends) files. You can use the go-i18n tools to manage your translations. The translations can exist in both the theme and at the root of your repository.

{{ i18n "translation_id" }}

{{% note "Alias T" %}} T is an alias to i18n. E.g. {{ T "translation_id" }}. {{% /note %}}

For more information about string translations, see Translation of Strings in Multilingual Mode.