Class CSVLoader
The loader class to parse a csv file. The localisation csv should be located @ "Assets/Resources/localisation.csv"
Inherited Members
Namespace: JelleVer.Localisation
Assembly: cs.temp.dll.dll
Syntax
public class CSVLoader
Methods
GetAllDictionaryValues()
Gets all the languages and their key value pairs
Declaration
public Dictionary<string, string>[] GetAllDictionaryValues()
Returns
| Type | Description |
|---|---|
| Dictionary<String, String>[] | an array of dictionaries containing all the language pairs |
GetDictionaryValues(String)
Parses the csv and gets the key value pair of a specified language
Declaration
public Dictionary<string, string> GetDictionaryValues(string attrbuteId)
Parameters
| Type | Name | Description |
|---|---|---|
| String | attrbuteId | The language id |
Returns
| Type | Description |
|---|---|
| Dictionary<String, String> | a dictuinary containging the key value pairs |
LoadCSV()
Loads the localisation csv into the class
Declaration
public void LoadCSV()