diff --git a/modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs b/modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs index 2b2fe4d33f..8651c0d3fd 100644 --- a/modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs +++ b/modules/docs/app/VoloDocs.Web/VoloDocsWebModule.cs @@ -166,7 +166,7 @@ namespace VoloDocs.Web Configure(options => { - options.EnableGoogleTranslation = true; + options.EnableGoogleTranslate = true; options.EnableGoogleProgrammableSearchEngine = true; options.GoogleSearchEngineId = "77c7266532da1427f"; }); diff --git a/modules/docs/src/Volo.Docs.Web/DocsWebGoogleOptions.cs b/modules/docs/src/Volo.Docs.Web/DocsWebGoogleOptions.cs index c2614decce..8342061a9b 100644 --- a/modules/docs/src/Volo.Docs.Web/DocsWebGoogleOptions.cs +++ b/modules/docs/src/Volo.Docs.Web/DocsWebGoogleOptions.cs @@ -6,7 +6,7 @@ namespace Volo.Docs; public class DocsWebGoogleOptions { - public bool EnableGoogleTranslation { get; set; } + public bool EnableGoogleTranslate { get; set; } /// /// https://cloud.google.com/translate/docs/languages @@ -21,7 +21,7 @@ public class DocsWebGoogleOptions public DocsWebGoogleOptions() { - EnableGoogleTranslation = false; + EnableGoogleTranslate = false; IncludedLanguages = [ "en", diff --git a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml index 116facfd26..b60ad9507f 100644 --- a/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml +++ b/modules/docs/src/Volo.Docs.Web/Pages/Documents/Project/Index.cshtml @@ -22,7 +22,7 @@ @inject IThemeManager ThemeManager @inject IPageLayout PageLayout @inject IHtmlLocalizer L -@inject IOptions DocsWebOptions +@inject IOptions DocsWebGoogleOptions @model IndexModel @{ @@ -58,15 +58,15 @@ - if (DocsWebOptions.Value.EnableGoogleTranslation) + if (DocsWebGoogleOptions.Value.EnableGoogleTranslate) { } - if (DocsWebOptions.Value.EnableGoogleProgrammableSearchEngine) + if (DocsWebGoogleOptions.Value.EnableGoogleProgrammableSearchEngine) { - + } } else @@ -218,7 +218,7 @@ } - @if (DocsWebOptions.Value.EnableGoogleTranslation) + @if (DocsWebGoogleOptions.Value.EnableGoogleTranslate) {
@L["GoogleTranslate"] @@ -323,7 +323,7 @@
} - @if (DocsWebOptions.Value.EnableGoogleProgrammableSearchEngine) + @if (DocsWebGoogleOptions.Value.EnableGoogleProgrammableSearchEngine) { }