Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Tags not saved in multiple languages in tagsAdd graphql api

Tags not saved in multiple languages in tagsAdd graphql api

banmalakiran
Shopify Partner
3 0 0

When adding multiple tags in different languages, at most one tag is saved in languages other than english. However if the tags in other languages has english words combined, those tags are saved.

 

graphql query:

 

 

 

mutation tagsAdd($id: ID!, $tags: [String!]!) {
  tagsAdd(id: $id, tags: $tags) {
    node {
      id
    }
    userErrors {
      field
      message
    }
  }
}

 

 

 

Graphql variables:

 

 

 

{
  "id": "{order_id}",
  "tags": [
    "नेपाल",
    "जापान",
    "काठमाडौं"
  ]
}

 

 

 

  In the above graphql mutation, only the first tag i.e. "नेपाल" is saved and rest of the tags are ignored (not saved).
But if you add english words or english word combined with other language, those tags are saved. For example: "Nepal", "नेपालnepal", "Tag", etc. are saved.

Replies 2 (2)

Alan
Shopify Staff
129 15 25

Hi @banmalakiran - this was definitely an odd issue, thanks for bringing this up to us. I was able to get in touch with our developers on your behalf and they have let me know that some other developers and merchants have related similar experiences as the one you've described, particularly when updating tags using non-Latin script characters through the TagsAdd mutation. They have isolated the issue and are currently working on a fix. 

I can't guarantee an exact timeline in terms of when the fix will be completely implemented, however, I would recommend taking a look at our developer changelog, which will keep you updated on the state of our APIs and other recent changes/fixes like this one.

 

Thanks again for bringing this up, we'll get this fixed.

 

Cheers!

 

 

Alan | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

banmalakiran
Shopify Partner
3 0 0

Thanks for your response @Alan