Skip to content

[writer]Surround string by double quote instead of simple #290

Closed
@AlaricCalmette

Description

@AlaricCalmette

I would like to be able to take a json object like this :

{
    translation:
        { 
            key: 'this_is_a_key',
            value: 'this is a value'
        }
}

and output a yml file like this :

- translation :
    key: "this_is_a_key"
    value: "this is a value"

I've tried several method but was only able to achieve either

- translation :
    key: this_is_a_key
    value: this is a value

or

- translation :
    key: '"this_is_a_key"'
    value: '"this is a value"'

note that in the latter this is not three quotes but a single quote followed by a double quote

Is there any way to do this with this module?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions