Magento2: Magento 2 Rest Translations

Created on 18 Aug 2017  路  6Comments  路  Source: magento/magento2

Can I put the translations of products and categories thru rest-api?
Category name
Product name
Product description
etc..

needs update

All 6 comments

GitHub is intended for bug reports and other issues observed in vanilla Magento 2 Community Edition. Issues should conform to issue template so that anyone can reproduce problem and not guessing anything.

It is better to use Magento Stack Exchange for questions on how particular customization can be implemented.

No, we do not support that functionality. Updating to a question and adding 'needs update'.

Question - why do you want to translate via the REST API?

I'm building an Integrator and need to pass from the ERP Software all the data to the Magento.
So, when I post Categories or Products in Magento, I send all data based in my ERP, including the languages,
Simplifying
I need to send the Product Name in, for example English and French, my client does not want to administrate the Magento Shop, he wants to do all that in the ERP.

If you look for example to PrestaShop, their API provides methos to do that

Hi @LuisFReis

I need to send the Product Name in, for example English and French

In Magento terms, those wouldn't be "translations".
You'll just have to create a separate "French" store \ store view, and one product attribute (product name, for example) will be able to have different values for different stores.

I believe this is already possible with the current REST API, see here for example here. You'll just need to add the ID of the corresponding store into the endpoint along the translated data.

@korostii is right. Use the store_code url param to retrieve data from different storeviews (which in your case would be localized values for field names like name, description, etc).

Closing the issue since this is not a bug report, as mentioned above.

Was this page helpful?
0 / 5 - 0 ratings