-
Notifications
You must be signed in to change notification settings - Fork 10
Structure ‐ Language
Language localization is a crucial aspect of lilia as that it allows content to be presented in different languages, if such is what you aim to have. Here's how it works:
The NAME
variable is used to define the ID of the language being localized.
The LANGUAGE
table is used to map variables to their translations. Each variable represents a piece of content that needs to be displayed in multiple languages, and its value is set to the translation in the desired language.
For example:
-
enchant_event
might be mapped to "Enchanter" in French while in English it is Enchant. -
discover_event
might be mapped to "Découvrir" in French while in English it is Discover. - ...
This allows for lilia to dynamically retrieve the correct translation based on the clientside language ID, ensuring that the framework displays content in the user's preferred language.
Here are the default language localization files of Lilia:
- ID: ``"english```
- File Location
- ID: ``"portuguese```
- File Location
- ID: ``"french```
- File Location
- ID: ``"polish```
- File Location
- ID: ```"russian````
- File Location
- ID: ``"dutch```
- File Location
- ID: ``"spanish```
- File Location
These Language Locations provide translations for the variables used in the Lua script, allowing the application or game to support multiple languages