WindUI

v1.6.41 Beta

Localization

Translate UI into different languages

Creating Localization example

-- Paste this before 'CreateWindow()'
WindUI:Localization({ -- it automatically detects the user's language 
    Enabled = true,
    Prefix = "loc:",
    DefaultLanguage = "en",
    Translations = {
        ["ru"] = {
            ["WINDUI_EXAMPLE"] = "WindUI Пример",
            ["WELCOME"] = "Добро пожаловать в WindUI!",
            ["SETTINGS"] = "Настройки",
            ["FEATURES"] = "Функционал",
            ["LOGO"] = "rbxassetid://...", -- russian logo
        },
        ["en"] = {
            ["WINDUI_EXAMPLE"] = "WindUI Example",
            ["WELCOME"] = "Welcome to WindUI!",
            ["SETTINGS"] = "Settings",
            ["FEATURES"] = "Features",
            ["LOGO"] = "rbxassetid://...", -- english logo
        },
        -- and more languages...
    }
})

Set Language

-- removes automatic language detection
WindUI:SetLanguage("en") -- english language

Usage example

local Window = WindUI:CreateWindow({
    Title = "loc:WINDUI_EXAMPLE", -- using with prefix 'loc:'
    Icon = "loc:LOGO",
    Author = "loc:WELCOME", -- too
    Folder = "MyTestHub",
    Theme = "Dark",
})