sylius_admin_locale:
    resource: |
        alias: sylius.locale
        section: admin
        templates: "@SyliusAdmin\\Crud"
        except: ['show', 'delete']
        redirect: index
        grid: sylius_admin_locale
        permission: true
        vars:
            all:
                subheader: sylius.ui.manage_languages_available_in_the_store
                templates:
                    form: "@SyliusAdmin/Locale/_form.html.twig"
            index:
                icon: translate
    type: sylius.resource

sylius_admin_locale_delete:
    path: /locales/{id}
    methods: [DELETE]
    defaults:
        _controller: sylius.controller.locale::deleteAction
        _sylius:
            section: admin
            redirect: referer
            permission: true
