<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/shopware/shopware/trunk/src/Core/System/SystemConfig/Schema/config.xsd">
    <card>
        <title>Address validation</title>
        <title lang="de-DE">Adressvalidierung</title>

        <input-field type="bool">
            <name>enableStreetValidation</name>
            <label>Enable street length validation</label>
            <label lang="de-DE">Strassenlaengenpruefung aktivieren</label>
            <helpText>Rejects addresses when the street field is longer than the configured maximum.</helpText>
            <helpText lang="de-DE">Lehnt Adressen ab, wenn das Feld Strasse laenger als der konfigurierte Maximalwert ist.</helpText>
            <defaultValue>true</defaultValue>
        </input-field>

        <input-field type="int">
            <name>maxStreetLength</name>
            <label>Maximum street length</label>
            <label lang="de-DE">Maximale Strassenlaenge</label>
            <helpText>Recommended range: 1 to 255 characters.</helpText>
            <helpText lang="de-DE">Empfohlener Bereich: 1 bis 255 Zeichen.</helpText>
            <defaultValue>35</defaultValue>
        </input-field>

        <input-field type="bool">
            <name>enablePhoneValidation</name>
            <label>Enable phone number validation</label>
            <label lang="de-DE">Telefonnummernpruefung aktivieren</label>
            <helpText>Validates entered phone numbers without changing or normalizing them.</helpText>
            <helpText lang="de-DE">Validiert eingegebene Telefonnummern, ohne sie zu veraendern oder zu normalisieren.</helpText>
            <defaultValue>true</defaultValue>
        </input-field>

        <input-field type="text">
            <name>defaultPhoneRegion</name>
            <label>Default phone region</label>
            <label lang="de-DE">Standardregion fuer Telefonnummern</label>
            <helpText>ISO 3166-1 alpha-2 country code used as fallback for validation and phone prefix hints, for example DE.</helpText>
            <helpText lang="de-DE">ISO-3166-1-Alpha-2-Laendercode als Fallback fuer Validierung und Vorwahlhinweise, z. B. DE.</helpText>
            <defaultValue>DE</defaultValue>
        </input-field>

        <input-field type="bool">
            <name>enablePostalCodeFormatHints</name>
            <label>Enable country-specific postal code format hints</label>
            <label lang="de-DE">Laenderspezifische PLZ-Format-Hinweise aktivieren</label>
            <helpText>Adds field-specific postal code validation messages for configured countries without changing the entered postal code.</helpText>
            <helpText lang="de-DE">Ergaenzt feldbezogene PLZ-Formatmeldungen fuer konfigurierte Laender, ohne die eingegebene PLZ zu veraendern.</helpText>
            <defaultValue>true</defaultValue>
        </input-field>

        <input-field type="text">
            <name>postalCodeFormatRules</name>
            <label>Additional postal code format rules as JSON</label>
            <label lang="de-DE">Zusaetzliche PLZ-Formatregeln als JSON</label>
            <helpText>Optional JSON object keyed by ISO country code. Example: {"NL":{"format":"1234 AB","regex":"^[0-9]{4} [A-Z]{2}$"}}. Built-in defaults exist for US, CA, AU and CZ.</helpText>
            <helpText lang="de-DE">Optionales JSON-Objekt mit ISO-Laendercode als Schluessel. Beispiel: {"NL":{"format":"1234 AB","regex":"^[0-9]{4} [A-Z]{2}$"}}. Standardregeln sind fuer US, CA, AU und CZ enthalten.</helpText>
        </input-field>
    </card>
</config>
