# Model Editor

The **Model Editor** allows the user to create **Localizations** and **Models**.

To open the **Model Editor**, double-click on a **Localization** or **Model** file in the **Asset Manager** or right-click on the Menu bar in **Incari** and click on **Model Editor** from the drop-down list. This can be seen in the illustration below:

![](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-4fc589819eba4f347c4b89c2d65a4a2bc95b0f84%2Fmodeleditorimage120241.png?alt=media)

When opened for the first time, the **Model Editor** appears like this:

![Model Editor.](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-df7c53cc44b01e14a79e364ebdf85eaa975b9fcb%2Fmodeleditor20241.png?alt=media)

Note: These sections will not be opened if a **Model** or **Localization** file has already been opened in the **Model Editor**.

`New Localization/Model` lets the user create a new file of the desired type.

`Open Localization/Model` allows the user to open an already created **Localization** or **Model**.

The `Used Localizations/Models` section contains **Localizations** and **Models** that have been previously applied. These **Localizations** or **Models** can be edited by clicking on them.

## Localizations

A **Localization** consists of **Keys**, **Languages**, and **Translations**. The keys (rows) act as a sort of base token which can be a specific word or descriptor. Languages encompass *columns* and their respective cells are populated with the translation for what the key describes. The **Localization** files have `.local` as their filename extension. These are added in the [**Project Settings**](https://docs.incari.com/incari-studio/modules/project-settings/localization) and only one `.local` file can be added at a time.

![](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-19d8424018aa6b3b0ad4b5c4f494a07565ceb1a2%2Fcreatelocalizationexample.gif?alt=media)

It is also possible to add phrases/sentences as a translation. Within these phrases, the user can plant `Translation Attributes` by using curly braces around the important words like so: {{word}}. These make the sentences dynamic and editable within the **Project's Logic**.

For example, if the phrase has two `Translation Attributes` like in the image below:

![](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-7bfab732dcc205cf56c74d5081ab3fdaa9e80e05%2Flocalizatonexample.png?alt=media)

The terms {{number\_of\_people}} and {{name\_of\_place}} can be filled in with **Strings** using the [**Set Translation Attribute Node**](https://docs.incari.com/incari-studio/toolbox/localization/settranslationattribute).

![](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-e9a1bdb2c2c1b63ed5a661c88f85b2ff4198bf5a%2Flocalizatonexample2.png?alt=media)

Which, when attached to a **Console Node**, leads to the output in the **Console**:

![](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-ea335eb1e40e81d0976af7f9c0b06eb7234ddb60%2Flocalizatonexample3.png?alt=media)

## Models

A **Model** sets up data in **Fields** (columns) and **Records** (rows) that will be used later with a **List Object**. The **Model** files have `.incmod` as their filename extension.

To create a new **Model**, simply select `Create Model`, name it, and populate the rows and columns with the appropriate information.

![](https://1553081948-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FU990HLHWA30dTfELtDUK%2Fuploads%2Fgit-blob-8fd691017598e727a939862ef8c9ff650be0c76e%2Fcreatemodelexample.gif?alt=media)

## See Also

* [**Incari Model File**](https://docs.incari.com/incari-studio/v/2021.3-unreleased/objects-and-types/scene-objects/list-widget#incari-model-file)
* [**List**](https://docs.incari.com/incari-studio/toolbox/events/list)
