# createChild in specific language in Multilanguage Setup

**URL:** <https://forum.getkirby.com/t/createchild-in-specific-language-in-multilanguage-setup/29945>\
**Category:** Questions\
**Tags:** v4\
**Created:** [November 8, 2023, 11:40am UTC](https://forum.getkirby.com/t/createchild-in-specific-language-in-multilanguage-setup/29945 "2023-11-08T11:40:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rottstegge](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/rottstegge/32/11159_2.png) [@rottstegge](https://forum.getkirby.com/u/rottstegge)\
**Post date:** [November 8, 2023, 11:40am UTC](https://forum.getkirby.com/t/createchild-in-specific-language-in-multilanguage-setup/29945/1 "2023-11-08T11:40:20Z")

</div>

Hi there, I’m facing a small issue while creating child pages: In a route that’s available in both default language (en =\> ‘/’) and a secondary language (de =\> ‘/de’) I’m creating a child page using the `createChild` function using values that are user-submitted:

```auto
                    $kirby->impersonate('kirby');
                    $new_child = $my_page->createChild([
                        'slug' => 'some-slug',
                        'title' => 'Some Title',
                        'template' => 'child_page',
                        'status' => 'listed',
                        'content' => [
                            'my_field' => $sent_data['my_field']
                        ]
                    ]);
                    $new_child->publish();

```

Now, I need to make sure that the field value of `my_field` will always be set only in the default language (en), even if the route was used while the secondary language is active. How can I use the createChild function while specifying in what language the content should be saved?

So I need to either specify the language somehow in the array passed to createChild or I need to manually activate the default language before using createChild.

I found this [related thread](https://forum.getkirby.com/t/createchild-with-non-default-language-and-translate-false/22642) that didn’t provide an answer.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [November 8, 2023, 12:27pm UTC](https://forum.getkirby.com/t/createchild-in-specific-language-in-multilanguage-setup/29945/2 "2023-11-08T12:27:26Z")

</div>

Since a page is always created in the default language, this shouldn’t be an issue, actually. Or does this also create a translation?

---

<div class="post-metadata">

**Author:** ![rottstegge](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/rottstegge/32/11159_2.png) [@rottstegge](https://forum.getkirby.com/u/rottstegge)\
**Post date:** [November 8, 2023, 3:51pm UTC](https://forum.getkirby.com/t/createchild-in-specific-language-in-multilanguage-setup/29945/3 "2023-11-08T15:51:06Z")

</div>

Thanks for the reply! In the past I had some issues with that, but I now realized that I was probably having the issues with the update function. Checked again and the code above doesn’t seem to create any unwanted translations.
