title | issue | author | author_email | author_github |
---|---|---|---|---|
Implement admin translation via AdminExtensionSDK |
NEXT-22761 |
Marcel Brode |
Marcel Brode |
- 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.
- Snippet files must be given in
- 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.
- Snippets can be imported via AdminExtensionSDK
- Snippets will be validated to not override existing snippets
- Snippets will be sanitized to avoid script injection