Skip to content

Commit cbfc2ae

Browse files
YousefEDnperez0111
authored andcommitted
docs: use ai locale export correctly
1 parent 18ceef7 commit cbfc2ae

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/pages/docs/ai/getting-started.mdx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,16 @@ Now, you can create the editor with the AI Extension enabled:
5454
```ts
5555
import { createBlockNoteEditor } from "@blocknote/core";
5656
import { BlockNoteAIExtension } from "@blocknote/xl-ai";
57+
import { en } from "@blocknote/core/locales";
58+
import { en as aiEn } from "@blocknote/xl-ai/locales";
5759
import {
58-
locales as aiLocales,
5960
createAIExtension,
6061
} from "@blocknote/xl-ai";
6162

6263
const editor = createBlockNoteEditor({
6364
dictionary: {
6465
...en,
65-
ai: aiLocales.en, // add default translations for the AI extension
66+
ai: aiEn, // add default translations for the AI extension
6667
},
6768
extensions: [
6869
createAIExtension({

0 commit comments

Comments
 (0)