Next.js SEO for Multilingual Real Estate Websites
Use Next.js metadata, canonical URLs, hreflang, and an XML sitemap to make translated property pages easier for search engines to discover.
A multilingual property site has two jobs. It has to guide buyers to a listing they can read, and it has to tell search engines which localized pages describe the same property. On OffplanCity, English, Russian, and Hebrew are visible options. That makes the site a useful example of the decisions a Next.js team needs to make when it adds languages.
Give each published translation a stable URL
Choose a URL convention and apply it to project pages, language switches, internal links, and sitemaps. For example, a site could serve one project at /en/projects/harbour-view, /ru/projects/harbour-view, and /he/projects/harbour-view. A localized slug can differ as long as the system uses a stable project ID to match the versions.
Translate the information a buyer came for, including the description, price labels, availability, and enquiry form. For Hebrew, set the page language to he and its reading direction to right-to-left. An English fallback can help a visitor finish a task, but only add a Russian or Hebrew alternate when that translation has actually been published.
Generate metadata from the published language versions
In the Next.js App Router, generateMetadata can return a localized title and description, a canonical URL, and alternate language URLs. This example assumes the caller has already loaded the current translation and the absolute URLs of its published siblings.
import type { Metadata } from 'next'
type Translation = {
title: string
summary: string
url: string
language: 'en' | 'ru' | 'he'
}
export function projectMetadata(
current: Translation,
published: Translation[],
): Metadata {
return {
title: current.title,
description: current.summary,
alternates: {
canonical: current.url,
languages: Object.fromEntries(
published.map(({ language, url }) => [language, url]),
),
},
}
}
Call this helper from generateMetadata after looking up the project. Include the current translation in published. For distinct, indexable translations, each URL should normally canonicalize to itself. Every alternate should include the same reciprocal set. An optional x-default can point to an appropriate fallback page when your site needs one.
Make the sitemap agree with the page
Generate app/sitemap.ts from the same published records. Include canonical, indexable pages that return a successful response. When a translation is withdrawn, remove it from the sitemap and from the other versions’ language annotations. When a slug changes permanently, update internal links and redirect the old URL to its replacement in the same language.
Before shipping, open one project in each available language. Check the final URL and status, look for canonical and alternate markup, and confirm that every listed alternate points back to the others. Verify that the language switch keeps the visitor on the same project. Test a second project with a missing translation, since that is where fallback URLs can quietly enter the sitemap.