Open Closed

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


User avatar
0
cunyong.yu@vskysoft.com created

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 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team 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 created

    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 created
    Support Team 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 v9.1.0-preview. Updated on December 12, 2024, 07:15