# 本地化

## Content



### ActiveReportsJS  本地化模块

ActiveReportsJS提供了本地化模块，该模块包括将报表设计器 UI文本翻译成日语（ja）和中文（zh）的功能。 该模块位于 `dist\locales` 文件夹中 [下载包](https://www.grapecity.com/activereportsjs/download)。
此外，本地化模块分布在[@grapecity/activereports-localization](https://www.npmjs.com/package/@grapecity/activereports-localization) 包中

### 导入ActiveReportsJS本地化模块

在Pure JavaScript应用程序中，可以使用`script`标签引用本地化模块脚本，例如：

```html
<script type="text/javascript" src="scripts/locales/designer/ja-locale.js"></script>
<script type="text/javascript" src="scripts/locales/designer/zh-locale.js"></script>
```
Angular，React或Vue应用程序可以从`@ grapecity / activereports-localization`包中导入本地化脚本，例如：

```js
import "@grapecity/activereports-localization/dist/designer/ja-locale";
import "@grapecity/activereports-localization/dist/designer/zh-locale";
```

### 设置报表设计器UI语言

[设计器构造函数](@api/classes/reportdesigner.designer.html#constructor) 接受选项作为第二个参数，可以使用以下选项设置UI语言，例如：

```js
var viewer = new Designer("#designer-host", { language: "ja" });
```

查看 [集成](/activereportsjs/docs/DeveloperGuide/ActiveReportsJSDesignerComponent/Integration) 页面，以获取有关在各种应用程序中集成ActiveReportsJS 报表设计器 组件的更多信息

请访问 [功能演示](/activereportsjs/demos/features/designer-localization)获取有关纯JavaScript，Angular，Vue和React应用程序的完整示例。

