Disabling pagination aliases in languages.toml

How can this code be used in languages.toml? Pagination | Hugo (I have a different paginate path per language)

[pagination]
  disableAliases = false
  pagerSize = 2
  path = 'page'

https://gohugo.io/templates/pagination/#configuration

Original code

[en]
title = "English"
languageName = "English"
weight = 1

[pagination]
  disableAliases = false
  pagerSize = 2
  path = 'page'

[fr]
title = "Français"
languageName = "Français"
weight = 2

[pagination]
  disableAliases = false
  pagerSize = 2
  path = 'page'

ERROR Failed to reload config: failed to load config: failed to unmarshal config for path "./site/config/_default/languages.toml": "_stream.toml:1:1": unmarshal failed: toml: table pagination already exists

Correct code

[en]
title = "English"
languageName = "English"
weight = 1

[en.pagination]
  disableAliases = false
  pagerSize = 2
  path = 'page'

[fr]
title = "Français"
languageName = "Français"
weight = 2

[fr.pagination]
  disableAliases = false
  pagerSize = 2
  path = 'page'

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.