Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 15 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | /** |
||
2 | * @package admin |
||
3 | */ |
||
4 | |||
5 | // eslint-disable-next-line sw-deprecation-rules/private-feature-declarations |
||
6 | export default function initLanguageService() { |
||
7 | Shopware.Application.addServiceProviderMiddleware('repositoryFactory', (repositoryFactory) => { |
||
8 | // load the language when repositoryFactory is created |
||
9 | // eslint-disable-next-line no-unused-expressions |
||
10 | Shopware.Application.getContainer('service').languageAutoFetchingService; |
||
11 | |||
12 | return repositoryFactory; |
||
13 | }); |
||
14 | } |
||
15 |