Skip to content

Decap i18n with Hugo? #7291

Answered by martinjagodic
majdal asked this question in Q&A
Sep 24, 2024 · 2 comments · 6 replies
Discussion options

You must be logged in to vote

@majdal here is an example configuration

# other root config here (backend, media_library etc.)

i18n:
  structure: multiple_files
  locales: [en, ar]

collections:
  - name: projects
    label: Projects
    label_singular: project
    folder: content/projects
    i18n: true
    create: true
    fields: [
      {name: title, widget: string, i18n: true},
      {name: image, widget: image, i18n: duplicate},
    ]

And this is how the UI should look like:

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
4 replies
@majdal
Comment options

@janealsh
Comment options

@martinjagodic
Comment options

Answer selected by majdal
@majdal
Comment options

Comment options

You must be logged in to vote
2 replies
@martinjagodic
Comment options

@privatemaker
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants