hugo

Fork of github.com/gohugoio/hugo with reverse pagination support

git clone git://git.shimmy1996.com/hugo.git

i18n.md (993B)

    1 ---
    2 title: i18n
    3 linktitle: i18n
    4 description: Translates a piece of content based on your i18n configuration files.
    5 date: 2017-02-01
    6 publishdate: 2017-02-01
    7 lastmod: 2017-02-01
    8 categories: [functions]
    9 menu:
   10   docs:
   11     parent: "functions"
   12 keywords: [internationalization,i18n,multilingual]
   13 signature: ["i18n KEY", "T KEY"]
   14 workson: []
   15 hugoversion:
   16 relatedfuncs: []
   17 deprecated: false
   18 aliases: []
   19 ---
   20 
   21 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.
   22 
   23 ```
   24 {{ i18n "translation_id" }}
   25 ```
   26 
   27 {{% note "Alias `T`" %}}
   28 `T` is an alias to `i18n`. E.g. `{{ T "translation_id" }}`.
   29 {{% /note %}}
   30 
   31 For more information about string translations, see [Translation of Strings in Multilingual Mode][multistrings].
   32 
   33 [multistrings]: /content-management/multilingual/#translation-of-strings