# How to Get Field Value for a Specific Language?

**URL:** <https://forum.getkirby.com/t/how-to-get-field-value-for-a-specific-language/16187>\
**Category:** Questions\
**Tags:** v3\
**Created:** [November 5, 2019, 10:02pm UTC](https://forum.getkirby.com/t/how-to-get-field-value-for-a-specific-language/16187 "2019-11-05T22:02:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![luxlogica](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/luxlogica/32/437_2.png) [@luxlogica](https://forum.getkirby.com/u/luxlogica)\
**Post date:** [November 5, 2019, 10:02pm UTC](https://forum.getkirby.com/t/how-to-get-field-value-for-a-specific-language/16187/1 "2019-11-05T22:02:10Z")

</div>

I feel like there’s something obvious I’m missing here, but I can’t find it anywhere in the Kirby Docs. In a multilingual site, I need to get the value of a field in a specific language - which may not be the current one. Is that what the `translation()` method is for?:

```auto
<?= $page->translation('de')->myfield() ?>

```

Whatever method we use, if there field does not have a translated value in that language, will it automatically fallback to the default language value?

Many thanks in advance for any guidance.

---

<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 5, 2019, 10:03pm UTC](https://forum.getkirby.com/t/how-to-get-field-value-for-a-specific-language/16187/2 "2019-11-05T22:03:35Z")

</div>

No, you need the `content()` method:

```auto
<?= $page->content('de')->myfield() ?>

```

`translation()` gets the `[translation](https://getkirby.com/docs/reference/@/classes/cms/contenttranslation)` object that you can use to check if a content file in a given language exists.

---

<div class="post-metadata">

**Author:** ![luxlogica](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/luxlogica/32/437_2.png) [@luxlogica](https://forum.getkirby.com/u/luxlogica)\
**Post date:** [November 5, 2019, 10:08pm UTC](https://forum.getkirby.com/t/how-to-get-field-value-for-a-specific-language/16187/3 "2019-11-05T22:08:28Z")

</div>

Thank you, @texnixe!

If the content is not available in the requested language, does it return whatever is available in the ‘default’ language, or does it return empty/null/error?

---

<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 5, 2019, 10:12pm UTC](https://forum.getkirby.com/t/how-to-get-field-value-for-a-specific-language/16187/4 "2019-11-05T22:12:59Z")

</div>

If the language is defined and the translation doesn’t exist, the default language content is returned. If you pass the language code of a language that is not defined, an error is thrown.

---

<div class="post-metadata">

**Author:** ![jackmb](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jackmb](https://forum.getkirby.com/u/jackmb)\
**Post date:** [August 6, 2025, 4:18pm UTC](https://forum.getkirby.com/t/how-to-get-field-value-for-a-specific-language/16187/5 "2025-08-06T16:18:16Z")

</div>

`content()` appears to be deprecated in v5. What is the recommended way of doing this now?

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [August 6, 2025, 5:25pm UTC](https://forum.getkirby.com/t/how-to-get-field-value-for-a-specific-language/16187/6 "2025-08-06T17:25:10Z")

</div>

It’s not deprecated, can still be used. What was deprecated is the `content()` method of the Panel support Classe (e.g. `Kirby\Panel\Page`), but not `Kirby\Cms\Page` which is what we usually talk about when referring to `$page`, `$file` etc.

---

<div class="post-metadata">

**Author:** ![jackmb](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jackmb](https://forum.getkirby.com/u/jackmb)\
**Post date:** [August 6, 2025, 6:27pm UTC](https://forum.getkirby.com/t/how-to-get-field-value-for-a-specific-language/16187/7 "2025-08-06T18:27:21Z")

</div>

Ah ok I must have been on the wrong docs page then, thanks for clarifying @distantnative : )

---

<div class="post-metadata">

**Author:** ![Weltverloren](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/weltverloren/32/13826_2.png) [@Weltverloren](https://forum.getkirby.com/u/Weltverloren)\
**Post date:** [September 25, 2025, 11:25am UTC](https://forum.getkirby.com/t/how-to-get-field-value-for-a-specific-language/16187/8 "2025-09-25T11:25:56Z")

</div>

And is there also a way to get the content in a website’s primary language (without hardcoding the language code into the request)?

Also, how about structure fields? If I have a field in a specific row of a structure fields, how would I go about fetching that same field in another language (f.e. the primary language)?
