Title of categories page is not translated

Hello. I have a Persian website. Here’s my website config:

baseURL = 'https://blogfa.farooqkz.com/'
languageCode = 'fa'
defaultContentLanguage = "fa"
title = 'فاروق'
theme = "vitae"

enableRobotsTXT = true
copyright = "(C) بعضی از حقوق مطلب‌ها تحت پروانهٔ CC-BY-SA 4.0 محفوظ است."

math = true
wordcount = true


[[params.social]]
name = "خوراک"
icon = "fas fa-rss"
url = "/index.xml"

[[params.social]]
name = "گیت‌هاب"
icon = "fab fa-github"
url = "https://github.com/farooqkz"

[[params.social]]
name = "ماستودون"
icon = "fab fa-mastodon"
rel = "me"
url = "https://cr8r.gg/@farooqkz"

[params]
languageDir = "rtl"
jalali = true
keywords = [
  "Farooq",
  "Farooq Karimi Zadeh",
  "farooqkz",
  "فاروق",
  "فاروق کریمی",
  "فاروق کریمی زاده",
]
math = true
favicon = true
avatar = "/mylogo0.png"
mainSections = ["bandari", "religion", "misc"]

[[menu.main]]
name = "خانه"
url = "/"
weight = 1

[[menu.main]]
name = "دسته‌بندی‌ها"
url = "/categories"
weight = 2


[[menu.main]]
name = "دربارهٔ من"
url = "/about-me"
weight = 3

My problem is that mywebsite/categories still has got an English title “Categories | فاروق”. Hints appreciated.

Edit: The template uses {{ .Title }} | {{ .Site.Title }}:

all you other pages have a title set in fronmatter using persian characters.

  1. create content/categories/_index.html with frontmatter only

    +++
    date = '2025-06-14T11:39:36+03:30'
    draft = false
    title = 'دسته بندی‌ها'
    +++
    
  2. To use your translation file you could change line 6 in the layouts to

    <title>{{ or (i18n .Title) .Title }} | {{ .Site.Title }}</title>
    

    which will pick up the translation if one exists (categories) and otherwise take the title as is (about-me)

    just quickly checked the secodn one , make sure to check other pages

Thanks for the solution. The 2nd solution seemed better for the theme/template.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.