Custom Language Setup
Learn how to add your own custom language translation to any UZ Scripts product.
All of our scripts come with multiple pre-configured languages out of the box. However, you can easily add your own custom translation by utilizing the lang directory included in the resource.
Target Directory
How to Add a Custom Language
Create a Language File
Open your server files and navigate to the script's language folder ([script_name] > lang). Create a new file named other.lua — or simply duplicate an existing file like en.lua and rename it.
Translate the Strings
Open the newly created other.lua file in your code editor. Translate the values on the right side of the equals sign to your desired language:
-- Example structure in lang/other.lua
Lang = {
spawn_title = "Kendi Diliniz",
last_location = "Son Konum",
confirm_spawn = "Burada Doğ",
-- Continue translating the remaining lines...
}Tip: Only translate the values (right side). Do not modify the keys (left side) or the script won't recognize the strings.
Update Your Configuration
Navigate back to your main configuration file (Customize.lua). Change the Locale parameter to 'other' so the script reads from your new file:
Customize = {
---Localization language
---@type 'en'|'de'|'bg'|'es'|'fr'|'it'|'pt'|'tr'|'other'
Locale = 'other',
-- Rest of your config...
}Restart the Resource
Save all your files and run the following command in your server console to apply the custom language:
ensure [script_name]Done! Your custom language should now be active in the UI.