Skip to content

Latest commit

 

History

History
24 lines (24 loc) · 1.23 KB

2022-08-05-implement-admin-translation-via-adminextensionsdk.md

File metadata and controls

24 lines (24 loc) · 1.23 KB
title issue author author_email author_github
Implement admin translation via AdminExtensionSDK
NEXT-22761
Marcel Brode
m.brode@shopware.com
Marcel Brode

Core

  • Changed \Shopware\Core\Framework\App\Lifecycle\AppLoader to persist snippets from apps via the \Shopware\Administration\Snippet\AppAdministrationSnippetPersister.
  • Added the possibility to provide snippet files for the administration via app.
    • Snippet files must be given in yourAppDirectory/Resources/administration/snippet/[localeCode].json.
    • Snippets for en-GB must always be given.

Administration

  • Changed locale.factory to convert it to typescript.
  • Changed \Shopware\Administration\Snippet\SnippetFinder to also load snippets from active apps.
  • Added \Shopware\Administration\Snippet\AppAdministrationSnippetPersister in order to persist snippets from apps.
  • Added \Shopware\Administration\Snippet\AppAdministrationSnippetEntity which stores all snippets for one app for one locale.

Upgrade Information

Added possibility to extend snippets in the Administration via App.

  • Snippets can be imported via AdminExtensionSDK
  • Snippets will be validated to not override existing snippets
  • Snippets will be sanitized to avoid script injection