How to explicitly tell Hugo that i18n support is not needed?

All of my sites are English-only.

Is there a way to tell Hugo to not try to find translations, etc. i.e. not try to enable i18n support?


Context

When tinkering with the default stdout verbosity level in hugo source code and bumping the verbosity to show warnings too (Ref) (and not just errors), I get only these 3 warnings on all my sites:

WARN 2018/09/11 12:26:26 No translation bundle found for default language "en"
WARN 2018/09/11 12:26:26 Translation func for language en not found, use default.
WARN 2018/09/11 12:26:26 i18n not initialized, check that you have language file (in i18n) that matches the site language or the default language.

No…

I used the solution mentioned in a previous discourse thread by @bep

Create an empty file at:

/i18n/en.toml

Then add this to config.toml

[wordCount]
other = "{{ .WordCount }} words"
2 Likes

See https://github.com/gohugoio/hugo/issues/5203