打开 关闭

How to apply blazorise to zh-Han resource package #7422


User avatar
0
cunyong.yu@vskysoft.com 创建

I am using the DataGrid component of blaze, but there is no Simplified Chinese package in the component.When I referred to the Localization document of Blazorise and set the language to zh-Han, I found that individual pages are valid, but global settings have no effect. Because it is used in many places, we hope to inject language packs globally. I added the following to the ConfigServices method of the Module. cs class in the Blazor project.

Translation of DataGrid component added to zh Hans.json file

But the interface still has no effect

  • ABP Framework version: v7.2.2
  • UI Type: Blazor Server
  • Database System: PostgreSQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

3 答案
  • User Avatar
    0
    Anjali_Musmade 创建
    支持团队 Support Team Member

    Hello

    Can you please check this similar issue https://support.abp.io/QA/Questions/2504/How-to-set-default-language-as-Chinese-in-Blazor-Server-App

    Thank you.

  • User Avatar
    0
    cunyong.yu@vskysoft.com 创建

    Hello

    Can you please check this similar issue https://support.abp.io/QA/Questions/2504/How-to-set-default-language-as-Chinese-in-Blazor-Server-App

    Thank you.

    I added this configuration to the Module class, but it still doesn't take effect

  • User Avatar
    0
    liangshiwei 创建
    支持团队 Fullstack Developer

    Hi,

    The datagrid component uses separate Localizers.

    https://blazorise.com/docs/extensions/datagrid/getting-started

    https://github.com/Megabit/Blazorise/blob/rel-1.5/Source/Extensions/Blazorise.DataGrid/_DataGridPagination.razor#L70-L75

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11