Skip to content
Lukas Joswiak edited this page Feb 7, 2022 · 3 revisions

Etch supports string translation as specified at https://gohugo.io/content-management/multilingual/#translation-of-strings. Translation allows overrides of default values by modifying a configuration file instead of modifying the source repository.

The default values are specified in i18n/en.toml. To specify custom values overriding those in the default configuration, add a language file in i18n/ at the root of your project. For example, to modify the date format when displaying a list of posts, you could add i18n/en.toml in your project root:

[posts.date]
other = "January 2006"

Thanks to doliG for adding translation support!

Clone this wiki locally