# How to change default language in shopware6 from backend?

**URL:** <https://forum.shopware.com/t/how-to-change-default-language-in-shopware6-from-backend/64220>\
**Category:** Programming (EN)\
**Created:** [24. Januar 2020 um 10:02 UTC](https://forum.shopware.com/t/how-to-change-default-language-in-shopware6-from-backend/64220 "2020-01-24T10:02:54Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mynote](https://avatars.discourse-cdn.com/v4/letter/m/fbc32d/32.png) [@mynote](https://forum.shopware.com/u/mynote)\
**Post date:** [13. November 2020 um 10:47 UTC](https://forum.shopware.com/t/how-to-change-default-language-in-shopware6-from-backend/64220/6 "2020-11-13T10:47:26Z")

</div>

Got it working, but there were still some bugs. Finally i found the last changes which need to be done.

Beside of the fact that you need to change some files like:

&nbsp;

core\shopware.js

and Defaults.php (change the system language to the proper one).

ENG =&nbsp;2fbb5fe2e29a4d70aa5854ce7ce3e20b

DE =&nbsp;afbab23128a44b39be16583ef9d386fa

&nbsp;

My core\shopware.js lookes like that (Defualt was EN, now its DE):

&nbsp;

```
 this.Defaults = {
        systemLanguageId: 'afbab23128a44b39be16583ef9d386fa',
        defaultLanguageIds: ['afbab23128a44b39be16583ef9d386fa'],
        versionId: '0fa91ce3e96a4bc2be4bd9ce752c3425',
        storefrontSalesChannelTypeId: '8a243080f92e4c719546314b577cf82b',
        productComparisonTypeId: 'ed535e5722134ac1aa6524f73e26881b',
        apiSalesChannelTypeId: 'f183ee5650cf4bdb8a774337575067a6'
    };

```

Defaults.php is now

```
 public const LANGUAGE_SYSTEM = 'afbab23128a44b39be16583ef9d386fa';

```

After that search for your languages in mysql …

&nbsp;

```
SELECT FROM language

```

&nbsp;

&nbsp;

Since you cant change the parent\_id in phpmyadmin, you need to execute it directly like:

Deleting the parent id for DE so it doesnt inherit from EN.

```
UPDATE `language` SET parent_id = NULL where id=0xafbab23128a44b39be16583ef9d386fa

```

After that you need to inherit all other languages from your primary language (DE in my case):

```
UPDATE `language` SET parent_id =0xafbab23128a44b39be16583ef9d386fa where id=0x2fbb5fe2e29a4d70aa5854ce7ce3e20b

```

&nbsp;

Deleting the cache and it should be working.

&nbsp;

---

_[View the full topic](https://forum.shopware.com/t/how-to-change-default-language-in-shopware6-from-backend/64220)._
