Skip to content

Commit

Permalink
#99, Move translations to separate content folders
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-shpak committed Nov 19, 2019
1 parent 707f9e6 commit e3dc5c5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,24 @@ enableGitInfo = true
# pygmentsStyle = 'monokailight'
pygmentsCodeFences = true

# Multilang config
defaultContentLanguage = 'en'

# Multi-lingual mode config
# There are different options to translate files
# See https://gohugo.io/content-management/multilingual/#translation-by-filename
# And https://gohugo.io/content-management/multilingual/#translation-by-content-directory
[languages]
[languages.en]
languageName = 'English'
contentDir = 'content'
weight = 1

[languages.ru]
languageName = 'Russian'
contentDir = 'content.ru'
weight = 2

[languages.cn]
languageName = 'Chinese'
contentDir = 'content.cn'
weight = 3

[params]
Expand Down
10 changes: 7 additions & 3 deletions exampleSite/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,22 @@ enableGitInfo: true
# pygmentsStyle: monokailight
pygmentsCodeFences: true

# Multilang config
defaultContentLanguage: en

# Multi-lingual mode config
# There are different options to translate files
# See https://gohugo.io/content-management/multilingual/#translation-by-filename
# And https://gohugo.io/content-management/multilingual/#translation-by-content-directory
languages:
en:
languageName: English
contentDir: content
weight: 1
ru:
languageName: Russian
contentDir: content.ru
weight: 2
cn:
languageName: Chinese
contentDir: content.cn
weight: 3

params:
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit e3dc5c5

Please sign in to comment.