@ag-grid-community/locale

中文文档
36.3.0发布于 2026/11/04MITTypeScriptESM + CJS零依赖构建来源已验证近 30 天下载 77.1万

Localisation Module for AG Grid, providing translations in 46 languages.

原始使用文档
文档目录22 节
  1. 📖 Overview
  2. Features
  3. Examples
  4. ⚡️ Quick Start
  5. Installation
  6. Setup
  7. Seed Projects
  8. 🛠️ Customisations
  9. Custom Components
  10. Themes
  11. Custom Themes
  12. 🌍 Community
  13. Tools & Extensions
  14. Showcase
  15. Stargazers
  16. 🤝 Support
  17. Enterprise Support
  18. Bug Reports
  19. Questions
  20. Contributing
  21. ⚠️ License
  22. AG Charts

JavaScript Data Grid | JavaScript Table

AG Grid Logo
GitHub Release NPM Downloads GitHub Repo stars GitHub forks

Quality Gate Status npms.io Maintenance Score GitHub commit activity Dependents

AG Grid is a fully-featured and highly customizable JavaScript Data Grid. It delivers outstanding performance, has no third-party dependencies and comes with support for React Logo React, Angular Logo Angular and Vue Logo Vue.


High Performance Demo

📖 Overview

Table of Contents

AG Grid is available in two versions: Community & Enterprise.

Features

FeatureAG Grid CommunityAG Grid Enterprise
MCP Server✅✅ (Advanced)
Filtering✅✅ (Advanced)
Sorting✅✅
Cell Editing✅✅
CSV Export✅✅
Drag & Drop✅✅
Themes and Styling✅✅
Selection✅✅
Accessibility✅✅
Infinite Scrolling✅✅
Pagination✅✅
Server-Side Data✅✅ (Advanced)
Custom Components✅✅
AI Toolkit❌✅
Integrated Charting❌✅
Formulas❌✅
Find❌✅
Range Selection❌✅
Row Grouping and Aggregation❌✅
Pivoting❌✅
Excel Export❌✅
PDF Export❌✅
Clipboard Operations❌✅
Master/Detail❌✅
Tree Data❌✅
Column Menu❌✅
Context Menu❌✅
Tool Panels❌✅
Support❌✅

ℹ️ Note:

Visit the Pricing page for a full comparison.

Examples

We've created several demos to showcase AG Grid's rich feature set across different use cases. See them in action below, or interact with them on our Demo page.

🏦 Financial Demo

Financial data example featuring live updates and sparklines:

Finance

📦 Inventory Demo

Inventory data example to view and manage products:

Finance
🧑‍💼 HR Demo

HR data example showing hierarchical employee data:

Finance

⚡️ Quick Start

AG Grid is easy to set up - all you need to do is provide your data and define your column structure. Read on for vanilla JavaScript installation instructions, or refer to our framework-specific guides forReact Logo React,Angular Logo Angular andVue Logo Vue.

Installation

$ npm install --save ag-grid-community

Setup

1. Provide a Container

Load the AG Grid library and create a container div. The div should have a height because the Data Grid will fill the size of the parent container:

<html lang="en">
    <head>
        <!-- Includes all JS & CSS for the JavaScript Data Grid -->
        <script src="https://cdn.jsdelivr.net/npm/ag-grid-community/dist/ag-grid-community.min.js"></script>
    </head>
    <body>
        <!-- Your Data Grid container -->
        <div id="myGrid" style="height: 500px"></div>
    </body>
</html>

2. Instantiating the JavaScript Data Grid

Create the Data Grid inside of your container div using createGrid.

// Grid Options: Contains all of the Data Grid configurations
const gridOptions = {};

// Your Javascript code to create the Data Grid
const myGridElement = document.querySelector('#myGrid');
agGrid.createGrid(myGridElement, gridOptions);

3. Define Rows and Columns

// Grid Options: Contains all of the Data Grid configurations
const gridOptions = {
    // Row Data: The data to be displayed.
    rowData: [
        { make: 'Tesla', model: 'Model Y', price: 64950, electric: true },
        { make: 'Ford', model: 'F-Series', price: 33850, electric: false },
        { make: 'Toyota', model: 'Corolla', price: 29600, electric: false },
    ],
    // Column Definitions: Defines the columns to be displayed.
    columnDefs: [{ field: 'make' }, { field: 'model' }, { field: 'price' }, { field: 'electric' }],
};

ℹ️ Note:

For more information on building Data Grids with AG Grid, refer to our Documentation.

Seed Projects

We also provide Seed Projects to help you get started with common configurations:

Environment Framework
Create React App (CRA) React Logo
Vite React Logo
Create Next App React Logo
Vite - TypeScript TypeScript Logo
Webpack 5 - TypeScript TypeScript Logo
Webpack 5 - JavaScript JavaScript Logo
Angular CLI Angular Logo
Nuxt Vue3 Logo
Vite Vue3 Logo

🛠️ Customisations

AG Grid is fully customisable, both in terms of appearance and functionality. There are many ways in which the grid can be customised and we provide a selection of tools to help create those customisations.

Custom Components

You can create your own Custom Components to customise the behaviour of the grid. For example, you can customise how cells are rendered, how values are edited and also create your own filters.

There are a number of different Component Types that you can provide to the grid, including:

To supply a custom cell renderer and filter components to the Grid, create a direct reference to your component within the gridOptions.columnDefs property:

gridOptions = {
    columnDefs: [
        {
            field: 'country', // The column to add the component to
            cellRenderer: CountryCellRenderer, // Your custom cell component
            filter: CountryFilter, // Your custom filter component
        },
    ],
};

Themes

AG Grid has 4 themes, each available in light & dark modes:

Quartz Material
Quartz Theme Material Theme
Alpine Balham
Alpine Theme Balham Theme

Custom Themes

All AG Grid themes can be customised using the Theming API, or you can create a new theme from scratch with the help of our Theme Builder or Figma Design System.

🌍 Community

Tools & Extensions

AG Grid has a large and active community who have created an ecosystem of 3rd party tools, extensions and utilities to help you build your next project with AG Grid, no matter which language or framework you use:

Showcase

AG Grid is used by 100,000's of developers across the world, from almost every industry. Whilst most of these projects are private, we've curated a selection of open-source projects from different industries where household names use AG Grid, including J.P.Morgan, MongoDB and NASA. Visit our Community Showcase page to learn more.

Stargazers

Founded in 2016, AG Grid has seen a steady rise in popularity and is now the market leader for Data Grids:

The AG Grid star history chart

🤝 Support

Enterprise Support

AG Grid Enterprise customers have access to dedicated support via ZenDesk, which is monitored by our engineering teams.

Bug Reports

If you have found a bug, please report it in this repository's issues section.

GitHub Issues

Questions

Look for similar problems on StackOverflow using the ag-grid tag. If nothing seems related, post a new message there. Please do not use GitHub issues to ask questions.

Stack Exchange questions

Contributing

AG Grid is developed by a team of co-located developers in London. If you want to join the team send your application to [email protected].

⚠️ License

ag-grid-community is licensed under the MIT license.

ag-grid-enterprise has a Commercial license.

See the LICENSE file for more info.

AG ChartsLogoAG Charts

If you've made it this far, you may be interested in our latest project: AG Charts - The best JavaScript Charting library in the world.

Initially built to power Integrated Charts in AG Grid, we open-sourced this project in 2018. Having seen the steady rise in popularity since then, we have decided to invest in AG Charts with a dedicated Enterprise version (ag-charts-enterprise) in addition to our continued support of ag-charts-community.

Preview of AG Charts JavaScript Charting Examples

Follow us to keep up to date with all the latest news from AG Grid:

Twitter Badge LinkedIn Badge YouTube Badge Blog Badge

版本与发布记录

@ag-grid-community/locale 共发布 54 个版本,首次发布于 2024/07/01;过去 12 个月发布了 13 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
36.3.0latest2026/11/041 天前
36.2.02026/09/161 个月前
36.1.02026/08/053 个月前
36.0.22026/07/223 个月前
36.0.12026/07/153 个月前
36.0.02026/06/244 个月前

其他发布通道:v32-lts → 32.3.9。

关于 @ag-grid-community/locale 的常见问题

@ag-grid-community/locale 是什么?

Localisation Module for AG Grid, providing translations in 46 languages.

如何安装 @ag-grid-community/locale?

在项目目录运行 npm install @ag-grid-community/locale,或使用 pnpm add / yarn add / bun add。

@ag-grid-community/locale 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@ag-grid-community/locale 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@ag-grid-community/locale 可以商用吗?

@ag-grid-community/locale 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@ag-grid-community/locale 的下载量有多少?

根据 npm 官方下载统计,@ag-grid-community/locale 在 2026/10/05 – 2026/11/03 这 30 天内被下载 771,480 次,日均约 25,716 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@ag-grid-community/locale 还在维护吗?

最新版本 36.3.0 发布于 2026/11/04(1 天前);至今共发布 54 个版本,其中过去 12 个月发布了 13 个;首次发布于 2024/07/01。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。