Add a way to disable one or more languages
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 25 Jan 2018 16:03:29 +0000 (17:03 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Fri, 26 Jan 2018 13:04:14 +0000 (14:04 +0100)
commit6413559f7575e2653d76227a8037a7edbaae82aa
tree4b2d2be2943e1f7c37d6aa09937bec4391c1e678
parent322c567220aa4123a5d707629c1bebd375599912
Add a way to disable one or more languages

This commit adds a new config setting:

```toml
disableLanguages = ["fr"]
```

If this is a multilingual site:

* No site for the French language will be created
* French content pages will be ignored/not read
* The French language configuration (menus etc.) will also be ignored

This makes it possible to start translating new languages and turn it on when you're happy etc.

Fixes #4297
Fixed #4329
commands/server.go
config/configProvider.go
helpers/language.go
hugolib/config.go
hugolib/fileInfo.go
hugolib/page_bundler_capture.go
hugolib/page_bundler_capture_test.go
hugolib/page_bundler_test.go
hugolib/site.go
source/sourceSpec.go