LGTM
This commit is contained in:
parent
9248e26af2
commit
f2a2651b8a
95 changed files with 3993 additions and 1471 deletions
|
|
@ -753,3 +753,110 @@ export const SEO_CONTENT_PAGES: Record<SeoContentKey, SeoContentPage> = {
|
|||
],
|
||||
},
|
||||
};
|
||||
|
||||
type SeoLanguageCode = 'en' | 'fr' | 'de' | 'zh' | 'hi' | 'hu';
|
||||
type LocalizedSeoLanguageCode = Exclude<SeoLanguageCode, 'en'>;
|
||||
|
||||
function toSeoLanguage(language?: string): SeoLanguageCode {
|
||||
const code = language?.toLowerCase().split('-')[0];
|
||||
if (code === 'fr' || code === 'de' || code === 'zh' || code === 'hi' || code === 'hu') {
|
||||
return code;
|
||||
}
|
||||
return 'en';
|
||||
}
|
||||
|
||||
const COMMON_RELATED_LINKS_BY_LANGUAGE: Record<LocalizedSeoLanguageCode, SeoLink[]> = {
|
||||
fr: [
|
||||
{
|
||||
label: 'Sources et couverture des données',
|
||||
path: '/data-sources',
|
||||
description:
|
||||
'Voyez quels jeux de données alimentent les filtres par code postal et où se situent leurs limites.',
|
||||
},
|
||||
{
|
||||
label: 'Méthodologie',
|
||||
path: '/methodology',
|
||||
description:
|
||||
'Comprenez comment la carte aide à établir une présélection sans remplacer les vérifications nécessaires.',
|
||||
},
|
||||
{
|
||||
label: 'Vérificateur de code postal',
|
||||
path: '/postcode-checker',
|
||||
description: 'Contrôlez un code postal avant de consacrer du temps à une visite.',
|
||||
},
|
||||
],
|
||||
de: [
|
||||
{
|
||||
label: 'Datenquellen und Abdeckung',
|
||||
path: '/data-sources',
|
||||
description:
|
||||
'Sehen Sie, welche Datensätze hinter den Postleitzahlfiltern stehen und wo ihre Grenzen liegen.',
|
||||
},
|
||||
{
|
||||
label: 'Methodik',
|
||||
path: '/methodology',
|
||||
description:
|
||||
'Verstehen Sie, wie die Karte beim Eingrenzen hilft, ohne die eigene Prüfung zu ersetzen.',
|
||||
},
|
||||
{
|
||||
label: 'Postleitzahl-Prüfer',
|
||||
path: '/postcode-checker',
|
||||
description: 'Prüfen Sie eine Postleitzahl, bevor Sie Zeit für eine Besichtigung einplanen.',
|
||||
},
|
||||
],
|
||||
zh: [
|
||||
{
|
||||
label: '数据来源和覆盖范围',
|
||||
path: '/data-sources',
|
||||
description: '查看哪些数据集支持邮编筛选,以及这些数据的限制。',
|
||||
},
|
||||
{
|
||||
label: '方法说明',
|
||||
path: '/methodology',
|
||||
description: '了解地图如何帮助建立候选清单,而不是替代尽职调查。',
|
||||
},
|
||||
{
|
||||
label: '邮编检查器',
|
||||
path: '/postcode-checker',
|
||||
description: '在安排看房前先检查一个邮编。',
|
||||
},
|
||||
],
|
||||
hi: [
|
||||
{
|
||||
label: 'डेटा स्रोत और कवरेज',
|
||||
path: '/data-sources',
|
||||
description:
|
||||
'देखें कि पोस्टकोड फ़िल्टर के पीछे कौन से डेटा सेट हैं और उनकी सीमाएँ कहाँ हैं।',
|
||||
},
|
||||
{
|
||||
label: 'कार्यप्रणाली',
|
||||
path: '/methodology',
|
||||
description:
|
||||
'समझें कि नक्शा शॉर्टलिस्ट बनाने में कैसे मदद करता है, लेकिन आपकी जाँच की जगह नहीं लेता।',
|
||||
},
|
||||
{
|
||||
label: 'पोस्टकोड जाँच',
|
||||
path: '/postcode-checker',
|
||||
description: 'किसी देखने जाने से पहले एक पोस्टकोड की जाँच करें।',
|
||||
},
|
||||
],
|
||||
hu: [
|
||||
{
|
||||
label: 'Adatforrások és lefedettség',
|
||||
path: '/data-sources',
|
||||
description:
|
||||
'Nézze meg, mely adatkészletek állnak az irányítószám-szűrők mögött, és hol vannak a korlátaik.',
|
||||
},
|
||||
{
|
||||
label: 'Módszertan',
|
||||
path: '/methodology',
|
||||
description:
|
||||
'Értse meg, hogyan támogatja a térkép a szűkítést anélkül, hogy kiváltaná a saját ellenőrzést.',
|
||||
},
|
||||
{
|
||||
label: 'Irányítószám-ellenőrző',
|
||||
path: '/postcode-checker',
|
||||
description: 'Ellenőrizzen egy irányítószámot, mielőtt időt szánna egy megtekintésre.',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue