From 4e22796d9dafee93b3d2916154730e8be815fd00 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Sun, 21 Jul 2024 17:45:55 +0330 Subject: [PATCH] #445 link to google translated version of pages --- TajikGanjoor/Pages/Index.cshtml.cs | 1 + TajikGanjoor/Pages/Shared/_Layout.cshtml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/TajikGanjoor/Pages/Index.cshtml.cs b/TajikGanjoor/Pages/Index.cshtml.cs index b80be894..9d3668d8 100644 --- a/TajikGanjoor/Pages/Index.cshtml.cs +++ b/TajikGanjoor/Pages/Index.cshtml.cs @@ -115,6 +115,7 @@ namespace TajikGanjoor.Pages } ViewData["BreadCrumpUrls"] = BreadCrumpUrls; ViewData["GoogleAnalyticsCode"] = Configuration["GoogleAnalyticsCode"]; + ViewData["GoogleTranslateLink"] = $"https://translate.google.com/translate?hl=fa&sl=fa&tl=tg&u={Uri.EscapeDataString(stringToEscape: $"https://ganjoor.net{Request.Path}")}"; return Page(); } diff --git a/TajikGanjoor/Pages/Shared/_Layout.cshtml b/TajikGanjoor/Pages/Shared/_Layout.cshtml index fed64ba0..27a20d5b 100644 --- a/TajikGanjoor/Pages/Shared/_Layout.cshtml +++ b/TajikGanjoor/Pages/Shared/_Layout.cshtml @@ -23,7 +23,8 @@