Shopware icon

Shopware

Shopware

Actions778

Language → Create Language

AI-generated

Overview

This node operation creates a new language entity in the Shopware system. It is useful for managing multilingual content by adding new languages with detailed configurations such as locale, translation codes, parent-child relationships, sales channels, customers, orders, and other related entities. For example, it can be used to add a new language to an e-commerce platform to support additional customer regions or to customize language settings for specific sales channels.

Use Case Examples

  1. Adding a new language with specific locale and translation code to support a new market.
  2. Creating a language with custom fields and parent-child relationships for advanced localization setups.

Properties

Name Meaning
Response Data format for response, either basic or detailed.
Id Unique identifier for the language entity.
Parent Id Identifier of the parent language, if any.
Locale Id Identifier for the locale associated with the language.
Translation Code Id Identifier for the translation code associated with the language.
Name Name of the language.
Custom Fields Custom fields for additional language metadata.
Created At Creation timestamp of the language entity.
Updated At Last update timestamp of the language entity.
Parent JSON object representing the parent language entity with nested relations.
Locale JSON object representing the locale details associated with the language.
Translation Code JSON object representing the translation code details associated with the language.
Children JSON array representing child languages of this language.
Sales Channels JSON array representing sales channels associated with the language.
Sales Channel Default Assignments JSON array representing default assignments for sales channels.
Sales Channel Domains JSON array representing sales channel domains associated with the language.
Customers JSON array representing customers associated with the language.
Newsletter Recipients JSON array representing newsletter recipients associated with the language.
Orders JSON array representing orders associated with the language.
Product Search Keywords JSON array representing product search keywords associated with the language.
Product Keyword Dictionaries JSON array representing product keyword dictionaries associated with the language.
Product Reviews JSON array representing product reviews associated with the language.
Product Search Config JSON object representing product search configuration associated with the language.

Output

JSON

  • id - Unique identifier of the created language.
  • name - Name of the created language.
  • localeId - Locale identifier associated with the language.
  • parentId - Parent language identifier, if any.
  • translationCodeId - Translation code identifier associated with the language.
  • customFields - Custom fields data of the language.
  • createdAt - Creation timestamp of the language.
  • updatedAt - Last update timestamp of the language.
  • parent - Parent language entity details.
  • locale - Locale details associated with the language.
  • translationCode - Translation code details associated with the language.
  • children - Child languages of the created language.
  • salesChannels - Sales channels associated with the language.
  • salesChannelDefaultAssignments - Default assignments for sales channels.
  • salesChannelDomains - Sales channel domains associated with the language.
  • customers - Customers associated with the language.
  • newsletterRecipients - Newsletter recipients associated with the language.
  • orders - Orders associated with the language.
  • productSearchKeywords - Product search keywords associated with the language.
  • productKeywordDictionaries - Product keyword dictionaries associated with the language.
  • productReviews - Product reviews associated with the language.
  • productSearchConfig - Product search configuration associated with the language.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Locale Id, Name) are provided to avoid validation errors.
  • Verify JSON format correctness for complex JSON input fields like Parent, Locale, Translation Code, Children, Sales Channels, etc.
  • Check API credentials and base URL configuration to ensure successful API communication.
  • If the API returns errors related to relationships (e.g., parent or translation code), verify that referenced entities exist in the Shopware system.

Discussion