am-editor-002/docs/api/language.md

35 lines
467 B
Markdown
Raw Normal View History

2021-11-03 19:58:08 +08:00
# Language
Add multi-language configuration to the editor
Type: `LanguageInterface`
## Constructor
```ts
new (lange: string, data: {} = {}): LanguageInterface
```
## Method
### `add`
Increase language configuration
Method signature
```ts
add(data: {}): void;
```
### `get`
Get the value of the language configuration item
```ts
/**
* @param keys The keys of multiple configuration items
* */
get<T extends string | {}>(...keys: Array<string>): T;
```