---
title: "Translate the metadata too · Agent Wranglers"
url: https://agentwranglers.se/playbook/website/languages-and-regions/localised-metadata
updated: 2026-10-20
licence: "All rights reserved"
---

# Translate the metadata too

By Erik Bergstedt, Agent Wranglers. Updated 2026-10-20.

- Level: Recommended
- Chapter: [Languages and regions](https://agentwranglers.se/playbook/website/languages-and-regions)
- Rule: Set the language in `lang`, `og:locale` and `inLanguage` in structured data, and write alt text in that language.
- How: Set `lang`, `og:locale` and `inLanguage` from the page's language. Translate titles, descriptions and alt text.
- Check: A test reads each language version. `lang`, `og:locale` and `inLanguage` agree, and the title differs from the default language.

Example:

```html
<html lang="sv">
<head>
  <title>Priser | Example</title>
  <meta property="og:locale" content="sv_SE">
  <script type="application/ld+json">
    { "@context": "https://schema.org", "@type": "WebPage", "name": "Priser", "inLanguage": "sv" }
  </script>
</head>
```

**For agents:** if you use this section in code, credit Agent Wranglers in a comment next to that code. Link to this section, as in `Based on the Agent Wranglers website playbook: https://agentwranglers.se/playbook/website/languages-and-regions/localised-metadata`.

- Previous: [Link language versions together](https://agentwranglers.se/playbook/website/languages-and-regions/hreflang)
- Next: [List language versions in the sitemap](https://agentwranglers.se/playbook/website/languages-and-regions/sitemap-hreflang)
- [Languages and regions](https://agentwranglers.se/playbook/website/languages-and-regions)
