How to Change the Language File
Last updated
TGIANN scripts support a multi-language system. Players can change their language:
Using the /language command
Or via the /hud menu inside tgiann-lumi-hud
When adding a new language file or changing the default language, follow the steps below carefully.
Open the tgiann-core config file and modify the language key:
config.lang = "en"Replace "en" with your desired language key.
Example:
config.lang = "de"Each TGIANN script has its own languages folder.
This process must be applied to every TGIANN script, not only tgiann-core.
Go to the script’s languages folder.
Copy the existing en.lua file.
Rename the copied file to your new language key.
Example: de.lua
Open the new file and update the first line.
Example:
Old:
New:
If you are adding a different language, replace en with your own language key.
Repeat this process for all TGIANN scripts.
For players who have already joined the server, their language preference is saved in the database.
If you set a new default language using:
You must clear the tgiann_core_lang database table.
Otherwise, players will continue to see the last language they used instead of the new default language.
When a player joins the server, the language is set based on config.lang.
Each time the player connects, this saved language preference is loaded.
Do not delete existing language files.
Instead, add new language files and update the main tgiann-core config:
After completing all changes, restart the scripts and make sure the language files are working properly.
Last updated
config.langs.en = {config.langs.de = {config.lang = "new_key"config.lang = "new_key"