Multi Language

To enable/disable the language translation button in the footer, edit the parameter enableLangChange in params.toml.

The default language of this theme is English. If you want to use another language, follow these steps

  1. Make a menu file.

    root
    β”œβ”€β”€ config
    β”‚Β Β  β”œβ”€β”€ _default
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ ...
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ menus.ko.toml
    
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    
    [[main]]
      identifier = "about"
      name = "about"
      url = "/about/"
      weight = 1
    
    [[main]]
        identifier = "archive"
        name = "archive"
        url = "/archive/"
        weight = 2
    ...
    

    config/_default/menus.ko.toml

  2. Make a content file. Add your language code before the md extension.

    hugo new about/index.ko.md
    hugo new posts/markdown-syntax.ko.md
    ...
    
  3. Make an i18n file.

    1
    2
    3
    4
    5
    6
    7
    8
    9
    
    [search-placeholder]
    other = "검색..."
    
    [summary-dateformat]
    other = "2006λ…„ 01μ›” 02일"
    
    [tags]
    other = "νƒœκ·Έ"
    ...
    

    i18n/ko.toml

  4. Edit config.toml file.

    1
    2
    3
    
    defaultContentLanguage = "ko"
    defaultContentLanguageInSubdir = true
    hasCJKLanguage = true