Skip to content

Impossible to copy internationalized fields #571

@rijk

Description

@rijk

This was originally reported in #528, but I'm posting it here as I think it is an issue with the copy format.

On fields using the (official) internationalized array approach, they are impossible to copy-paste as that loses the associated _keys, where the language of the data is stored.

I am quite bummed the localization is not standard built-in functionality in Sanity. That was one of my main doubts when choosing Sanity as CMS, and this was exactly the type of issue I was afraid of.

By the way, when debugging I noticed that the keys aren't included in the copy-paste format — it's quite basic actually. Just a comma-separated list of values, with no indication of field names, types, or keys:

Item 1 NL, Item 1 EN, normal, Item 1 NL portabletext, Item 1 EN portabletext, normal, Item 2 NL, Item 2 EN, Item 2 FR, Item 2 NL portabletext, normal

This is copied from this field:

Image

So I think this plugin will never be able to fix this, as it's impossible to infer the language from the data copied.

Originally posted by @rijk in #87

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions