Skip to main content
Adding a language to Parley is fairly straight forwards, the steps below show you how to modify the supported languages.

1. Updating the ENUM

Open up the Localization.cs file located inside the Utilities folder of the Parley asset. You’ll find the LanguageID enum located near the top of the file, this is where your supported languages go. Add your desired language(s) to the enum. It should look something like this:

2. Adding the info

Inside the Localizer class, you’ll find a dictionary called Languages. Create the language details pair like the english example or like the example below:
If you did things correctly, you should see something like the example below:
It is recommended to use ISO 639-1 codes for languages so that your naming is consistent, however, you can use whatever string you like in the iso_code field.
And with that, you have added a new language! Please note that text direction is handled at the start of your files, this is shown in the next section.