Skip to content

leftDelim and rightDelim not correctly detected as reserved keys #357

@andriiberezhynskyi

Description

@andriiberezhynskyi

I did this change more than 3 years ago:

-      "descr": "{{if .DeliveryTime}}Livraison estimée : {{.DeliveryTime}} jours{{end}}",
+      "descr": {
+        "other": "{{if .DeliveryTime}}Livraison estimée : {{.DeliveryTime}} jours{{end}}",
+        "leftDelim": "<<",
+        "rightDelim": ">>"
+      },

I don't fully remember how it all works but it was a workaround to support golang templating {{}} inside translations. The problem is that pr #320 introduces a breaking change and all of a sudden I have this error:

reserved keys [other] mixed with unreserved keys [leftDelim rightDelim]

How do I fix this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions