allegro / allegro/allegro-api

[NEWS] - 9 maja 2023 włączymy wymagalność pola “language” w ofercie / On May 9, 2023, we will mark the “language” field in the offer as "required"

Ouverte
#6,775 6 commentaires 0 réactions 1 personne assignée Réclamée par @PrzemyslawLukanowski Voir sur GitHub
News
Langage dominant
Aucune donnée de langage
Étoiles
244
Forks
40
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

Pole “**language”** w strukturze oferty odpowiada za informację o jej języku bazowym. Wartość, którą w nim wskażesz, jest podstawą do [dalszych tłumaczeń oferty](https://github.com/allegro/allegro-api/issues/5545). Języki, które na tę chwilę wspieramy, to polski (wartość “pl-PL”) oraz angielski (“en-US”).

**Jak obsługujemy pole “language” obecnie?**

Jeśli nie wysyłasz nam tego pola lub nie wskazujesz w nim żadnej wartości, automatycznie przypisujemy język polski - “pl-PL”. Zmianę wartości umożliwiamy, jeśli oferta jest w statusie “INACTIVE”.

**Jakie zmiany wprowadzimy?**

9 maja 2023 wprowadzimy zmiany związane z tym polem:
- dla [POST /sale/offers ](https://developer.allegro.pl/documentation#operation/createOfferUsingPOST)- **oznaczymy to pole jako wymagane**. Jeśli w polu “language” nie wskażesz żadnej z dostępnych wartości, zwrócimy błąd, który **uniemożliwi wystawienie oferty!**
- niezależnie od zasobu, zmiana wartości tego pola nie będzie możliwa na utworzonej ofercie.

Dla [POST /sale/product-offers](https://developer.allegro.pl/documentation#operation/getPromoModificationCommandDetailedResultUsingGET) pole pozostanie niewymagane. Gdy nie wstawisz wartości, ustawimy ją na podstawie języka interfejsu z ustawień konta użytkownika. W tym przypadku nie musisz wykonywać żadnych zmian po swojej stronie.

-----

The **“language”** field in the offer structure indicates its base language. The provided value is the basis for further [translations of the offer.](https://developer.allegro.pl/news/offer-translations-we-have-added-new-features-b2RKOPZk9ib) Currently supported languages are Polish (“pl-PL” value) and English (“en-US”).

**How do we handle the “language” field currently?**

If you do not send or set value in this field, we automatically assign the Polish language - “pl-PL”. Changing the value is possible only if offer is in “INACTIVE” status.

**What changes will we make?**

On May 9, 2023, we will introduce changes regarding the “language” field:
- for [POST /sale/offers](https://developer.allegro.pl/documentation#operation/createOfferUsingPOST) - **we will mark it as “required”.** This means that, if you do not set any of the available values in the "language" field, we will return an **error that will prevent you from listing the offer!**
- changing the value will not be possible at any offer status.

For [POST /sale/product-offers](https://developer.allegro.pl/documentation#operation/getPromoModificationCommandDetailedResultUsingGET) the field will remain not required. If you do not send any value in this field, we will set it automatically based on the interface language from the user’s account settings. In this case, you do not need to change anything in your application.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.