From 0a6385fc7af60f5385e4bcc995c0ad9b17c3e850 Mon Sep 17 00:00:00 2001 From: TabularElf Date: Thu, 2 Nov 2023 13:13:23 +1100 Subject: [PATCH] Update gettingstarted.md --- 2.1.3/gettingstarted.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/2.1.3/gettingstarted.md b/2.1.3/gettingstarted.md index 22781fc..1d7f48d 100644 --- a/2.1.3/gettingstarted.md +++ b/2.1.3/gettingstarted.md @@ -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): @@ -78,6 +78,22 @@ Once you have your language files created, you can set it up as one of three way +### **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 @@ -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.