Skip to content

Language is not being passed correctly #24

@jacobjones

Description

@jacobjones

Utilising the example in the README I changed the langauage from "en" to "nl":

await client.SaveContentAsync(generateId: (x) => $"{x.FirstName}_{x.LastName}", "nl", exampleData);

I see that the resulting JSON looks like this:

{
    "index": {
        "_id": "First_Last",
        "language_routing": "nl"
    }
}
{
    "Status$$String": "Published",
    "__typename": "ExampleClassObject",
    "_rbac": "r:Everyone:Read",
    "ContentType$$String": [
        "ExampleClassObject"
    ],
    "Language": {
        "Name$$String": "en"
    },
    "FirstName$$String___searchable": "First",
    "LastName$$String___searchable": "Last",
    "Age$$Int___skip": 30
}

Note that the language name is still "en".

Querying this in Graph, I can't find in under the nl or en locale. Updating the language in the JSON above resolves this issue.

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