1 Star 0 Fork 0

QianXun-Studio / Grid.Blazor

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Localization.md 1.94 KB
一键复制 编辑 原始数据 按行查看 历史

GridMvc for ASP.NET Core MVC

Localization

Index

For each additional language add the following lines to the _Layout.cshtml view or directly to the page to call the required style sheet and script files (gridmvc-lang-xx.js file is loaded from the GridMvcCore nuget package):

    <script src="~/js/gridmvc-lang-de.js" type="text/javascript"></script>
    <script src="~/lib/bootstrap-datepicker/locales/bootstrap-datepicker.de.min.js" type="text/javascript"></script>

Then you have to call the SetLanguage function with the required language value when the grid is created in the view:

    @using GridMvc
    @model IEnumerable<Foo>

    @await Html.Grid(Model).Columns(columns =>
    {
        columns.Add(foo => foo.Title);
        columns.Add(foo => foo.Description);
    }).SetLanguage("de").RenderAsync()

Supported languages

  • English (default)
  • German
  • French
  • Italian
  • Russian
  • Spanish
  • Norwegian
  • Turkish
  • Czech
  • Slovenian

Additional languages

If you need to support other languages, please send me the translation of the following expressions and I will updete the component:

  • Add
  • And
  • Apply
  • Average
  • Back
  • No
  • Yes
  • Clear all filters
  • Clear filter
  • Contains
  • Create item
  • There are no items to display
  • Delete
  • Delete item
  • Edit
  • Ends with
  • Equals
  • Drop columns here for column extended sorting
  • Filter this column
  • Type
  • Value
  • Greater than
  • Greater than or equals
  • Drop columns here for column grouping
  • Is null
  • Is not null
  • Items
  • Less than
  • Less than or equals
  • Max
  • Min
  • Not equals
  • Or
  • Read item
  • Save
  • Search for ...
  • --- Select an item ---
  • Show
  • Starts with
  • Sum
  • Update item
  • View
  • There was an error creating the new item
  • There was an error deleting this item
  • There was an error updating this item

<- Setup initial column filtering | Client side object model ->

1
https://gitee.com/fan0217/Grid.Blazor.git
git@gitee.com:fan0217/Grid.Blazor.git
fan0217
Grid.Blazor
Grid.Blazor
master

搜索帮助