diff --git a/website/alternatives/index.html b/website/alternatives/index.html index 623ae18..1aca346 100644 --- a/website/alternatives/index.html +++ b/website/alternatives/index.html @@ -35,6 +35,7 @@ + @@ -64,6 +65,21 @@ } + + + diff --git a/website/alternatives/screen-sharing.html b/website/alternatives/screen-sharing.html index 54dee7f..75f5eaf 100644 --- a/website/alternatives/screen-sharing.html +++ b/website/alternatives/screen-sharing.html @@ -35,6 +35,7 @@ + @@ -70,6 +71,21 @@ } + + + @@ -173,7 +189,7 @@
diff --git a/website/alternatives/teleparty.html b/website/alternatives/teleparty.html index c769d37..ee8d9b3 100644 --- a/website/alternatives/teleparty.html +++ b/website/alternatives/teleparty.html @@ -35,6 +35,7 @@ + @@ -70,6 +71,21 @@ } + + + @@ -173,7 +189,7 @@ diff --git a/website/build.cjs b/website/build.cjs index e6b04ad..902e9a9 100644 --- a/website/build.cjs +++ b/website/build.cjs @@ -215,6 +215,15 @@ async function compile() { compiled = compiled.replace(/\{\{ALT_INDEX_TITLE\}\}/g, indexTitle); compiled = compiled.replace(/\{\{ALT_INDEX_META_DESC\}\}/g, indexDesc); + // og:locale mapping for Facebook + const ogLocales = { + en: 'en_US', de: 'de_DE', fr: 'fr_FR', es: 'es_ES', + 'pt-BR': 'pt_BR', ru: 'ru_RU', it: 'it_IT', pl: 'pl_PL', + tr: 'tr_TR', nl: 'nl_NL', ja: 'ja_JP', ko: 'ko_KR', + zh: 'zh_CN', uk: 'uk_UA', pt: 'pt_PT' + }; + compiled = compiled.replace(/\{\{OG_LOCALE\}\}/g, ogLocales[lang] || 'en_US'); + // Merge locale with English fallback for keys not present in current locale const mergedLocale = { ...englishLocale, ...locale }; for (const [key, value] of Object.entries(mergedLocale)) {