github.com/jbramsden/hugo@v0.47.1/docs/content/en/functions/i18n.md (about)

     1  ---
     2  title: i18n
     3  linktitle: i18n
     4  description: Translates a piece of content based on your i18n configuration files.
     5  godocref:
     6  date: 2017-02-01
     7  publishdate: 2017-02-01
     8  lastmod: 2017-02-01
     9  categories: [functions]
    10  menu:
    11    docs:
    12      parent: "functions"
    13  keywords: [internationalization,i18n,multilingual]
    14  signature: ["i18n KEY", "T KEY"]
    15  workson: []
    16  hugoversion:
    17  relatedfuncs: []
    18  deprecated: false
    19  aliases: []
    20  ---
    21  
    22  This translates a piece of content based on your `i18n/en-US.yaml` (and similar) files. You can use the [go-i18n](https://github.com/nicksnyder/go-i18n) tools to manage your translations. The translations can exist in both the theme and at the root of your repository.
    23  
    24  ```
    25  {{ i18n "translation_id" }}
    26  ```
    27  
    28  {{% note "Alias `T`" %}}
    29  `T` is an alias to `i18n`. E.g. `{{ T "translation_id" }}`.
    30  {{% /note %}}
    31  
    32  For more information about string translations, see [Translation of Strings in Multilingual Mode][multistrings].
    33  
    34  [multistrings]: /content-management/multilingual/#translation-of-strings