Skip to content

Make field label and default options localizable #403

@servedsmart

Description

@servedsmart

Hello,

I have noticed that it isn't possible to localize a lot of the entries in the configuration. I would mainly use this for collections, but it might also be feasible to implement this for other config options.

I tried using an approach layed out here, I'm not sure if the same behaviour can be observed in Decap CMS, but when opening Sveltia I just get a list of the entries in collections with the different localized labels. Switching the locale through the select widget will also not change the label of specified fields. As far as I know, there is no other option that would enable users to customize that behaviour or other config options.

Since sveltia already has a language switcher button in the editor if you use i18n: true, I'd suggest adding logic that allows a user to add localized entries to fields in their collections or other config keys.

This is an example of how hugo does this. It should be possible to implement a similar approach here.

This is my current auto-generated configuration for reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions