Getting standardizedProductType in another language

Getting standardizedProductType in another language

antonioreale
Shopify Partner
19 1 3

Hello I am trying to get standardized product type in another language, the data is only in english.

This is the code:

 

 

query = """
query GetProductsById($id: ID!) {
product(id: $id) {
standardizedProductType {
productTaxonomyNode {
name
}
}
}
}
"""

 

This is the output:

 

{'data': {'product': {'standardizedProductType': {'productTaxonomyNode': {'name': 'Lighters & Matches'}}}}, 'extensions': {'cost': {'requestedQueryCost': 3, 'actualQueryCost': 3, 'throttleStatus': {'maximumAvailable': 1000.0, 'currentlyAvailable': 997, 'restoreRate': 50.0}}}}

 

As you can see the data returned is in english, for example look at productTaxonomyNode and name.

How to get it in another language, for example in italian?

Reply 1 (1)

HerculesApps
Shopify Partner
19 1 14

 

Ciao Antonio,

 

did you found a solution?