From e78e5abe2b699db70641eaed70845dbd7311d0ea Mon Sep 17 00:00:00 2001 From: Enis Necipoglu Date: Tue, 17 Oct 2023 16:27:45 +0300 Subject: [PATCH] Localize the error --- .../CmsKit/Components/Contents/ContentFragment.cshtml | 8 +++++--- .../Volo/CmsKit/Localization/Resources/ar.json | 3 ++- .../Volo/CmsKit/Localization/Resources/cs.json | 3 ++- .../Volo/CmsKit/Localization/Resources/de-DE.json | 3 ++- .../Volo/CmsKit/Localization/Resources/el.json | 3 ++- .../Volo/CmsKit/Localization/Resources/en.json | 3 ++- .../Volo/CmsKit/Localization/Resources/es.json | 3 ++- .../Volo/CmsKit/Localization/Resources/fa.json | 3 ++- .../Volo/CmsKit/Localization/Resources/fi.json | 3 ++- .../Volo/CmsKit/Localization/Resources/fr.json | 3 ++- .../Volo/CmsKit/Localization/Resources/hi.json | 3 ++- .../Volo/CmsKit/Localization/Resources/hu.json | 3 ++- .../Volo/CmsKit/Localization/Resources/is.json | 3 ++- .../Volo/CmsKit/Localization/Resources/it.json | 3 ++- .../Volo/CmsKit/Localization/Resources/nl.json | 3 ++- .../Volo/CmsKit/Localization/Resources/pl-PL.json | 3 ++- .../Volo/CmsKit/Localization/Resources/pt-BR.json | 3 ++- .../Volo/CmsKit/Localization/Resources/ro-RO.json | 3 ++- .../Volo/CmsKit/Localization/Resources/ru.json | 3 ++- .../Volo/CmsKit/Localization/Resources/sk.json | 3 ++- .../Volo/CmsKit/Localization/Resources/sl.json | 3 ++- .../Volo/CmsKit/Localization/Resources/tr.json | 3 ++- .../Volo/CmsKit/Localization/Resources/vi.json | 3 ++- .../Volo/CmsKit/Localization/Resources/zh-Hans.json | 3 ++- .../Volo/CmsKit/Localization/Resources/zh-Hant.json | 3 ++- 25 files changed, 53 insertions(+), 27 deletions(-) diff --git a/modules/cms-kit/src/Volo.CmsKit.Common.Web/Pages/CmsKit/Components/Contents/ContentFragment.cshtml b/modules/cms-kit/src/Volo.CmsKit.Common.Web/Pages/CmsKit/Components/Contents/ContentFragment.cshtml index fcd3801667..aad3de1abf 100644 --- a/modules/cms-kit/src/Volo.CmsKit.Common.Web/Pages/CmsKit/Components/Contents/ContentFragment.cshtml +++ b/modules/cms-kit/src/Volo.CmsKit.Common.Web/Pages/CmsKit/Components/Contents/ContentFragment.cshtml @@ -1,8 +1,10 @@ @using Microsoft.AspNetCore.Mvc.ViewComponents +@using Microsoft.Extensions.Localization @using Microsoft.Extensions.Logging @using Volo.Abp.Data @using Volo.Abp.Reflection @using Volo.CmsKit.Contents +@using Volo.CmsKit.Localization @using Volo.CmsKit.Web.Renderers; @using Volo.CmsKit.Web.Pages.CmsKit.Components.Contents; @@ -11,6 +13,7 @@ @inject IMarkdownToHtmlRenderer MarkdownRenderer @inject IViewComponentSelector ViewComponentSelector @inject ILogger Logger +@inject IStringLocalizer L @foreach (var contentFragment in Model.ContentDto.ContentFragments) { @@ -43,9 +46,8 @@ } catch (Exception ex) { -