Skip to content

Commit

Permalink
Update gettingstarted.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tabularelf authored Nov 2, 2023
1 parent cb94149 commit 0a6385f
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions 2.1.3/gettingstarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
Once added to your project, Lexicon will automatically initialise its core functionality when you run the game.
Lexicon requires your language files to be in either JSON or CSV format.

The format of these files are as follows:
The format of these files are as follows (and all of these are interchangeable):

<!-- tabs:start -->

Expand Down Expand Up @@ -78,6 +78,22 @@ Once you have your language files created, you can set it up as one of three way

<!-- tabs:start -->

### **The new way**

Note: These will add additional files if the language is already declared.

```gml
// i.e. lexicon_index_declare_from_json("english.json");
lexicon_index_declare_from_json("english.json");
```
```gml
// Which will declare multiple languages within the CSV.
// i.e. lexicon_index_declare_from_csv("locale.csv");
lexicon_index_declare_from_csv("locale.csv");
```

### **The old way**

```gml
Expand All @@ -100,22 +116,6 @@ lexicon_index_add_json("en-US", "english.json")
lexicon_index_add_csv("en-US", "locale.csv");
```
### **The new way**
Note: These will add additional files if the language is already declared.
```gml
// i.e. lexicon_index_declare_from_json("english.json");
lexicon_index_declare_from_json("english.json");
```


```gml
// Which will declare multiple languages within the CSV.
// i.e. lexicon_index_declare_from_csv("locale.csv");
lexicon_index_declare_from_csv("locale.csv");
```
### **Definitions File**
[Click here](definitions.md) for more on how the definitions format works.
Expand Down

0 comments on commit 0a6385f

Please sign in to comment.