diff --git a/src/features/getTranslatableLink.ts b/src/features/getTranslatableLink.ts index 02150210..49cd92ad 100644 --- a/src/features/getTranslatableLink.ts +++ b/src/features/getTranslatableLink.ts @@ -1,5 +1,7 @@ export default ( - translatableLink: { en?: string; es?: string; it?: string } | undefined, + translatableLink: + | { en?: string; es?: string; it?: string; fr?: string } + | undefined, language: string ) => { if (typeof translatableLink === "undefined") { @@ -14,5 +16,8 @@ export default ( if (language === "es" && translatableLink.es) { return translatableLink.es; } + if (language === "fr" && translatableLink.fr) { + return translatableLink.fr; + } return "#"; };