# Function: generateJsonInkTranslation() (/jsdoc/pixi-vn-ink/index/functions/generateJsonInkTranslation)



\> **generateJsonInkTranslation**(`pixivnJson`, `json?`, `options?`): `Promise`\<`object`>

Defined in: [src/functions/translate.ts:38](https://github.com/DRincs-Productions/pixi-vn-ink/blob/cf876d4db655e65b32a20a362a828ecba73f4786/src/functions/translate.ts#L38)

Generate a json object with the keys of the labels and the values of the text to be translated

Parameters [#parameters]

pixivnJson [#pixivnjson]

[`PixiVNJson`](/jsdoc/pixi-vn-ink/index/interfaces/PixiVNJson)

The labels to be used in the narrative. They will be added to the system

json? [#json]

`object` = `{}`

If you want to add more keys to the existing json

options? [#options]

The options to set the default value if the key is not found

defaultValue? [#defaultvalue]

`"empty_string"` | `"copy_key"`

Default value to set if the key is not found

**Default**

```ts
"copy_key"
```

Returns [#returns]

`Promise`\<`object`>

The json object with the keys of the labels and the values of the text to be translated

Example [#example]

```ts
import { generateTranslateJson, importInkText } from 'pixi-vn-ink'

importInkText( your_ink_text_here ).then((labels) => {
    let json = generateTranslateJson(labels)
})
```
