> For the complete documentation index, see [llms.txt](https://aklgaming.gitbook.io/documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aklgaming.gitbook.io/documentation/gusti-resources/gusti-welderloot/common-issues.md).

# Common Issues

## Locales

If you try to change locale to en/id and nothing changes

open `server.cfg`

```properties
## ESX Translation convar (edit to change the language of ESX)
setr esx:locale "en"
```

deactivate `setr esx:locale "en"`

```properties
## ESX Translation convar (edit to change the language of ESX)
# setr esx:locale "en"
```

## TranslateCap

open `es_extended/locale.lua` and replace your code with below code

```lua
Locales = {}

function Translate(str, ...)  -- Translate string
    if Locales[Config.Locale] then
        if Locales[Config.Locale][str] then
            return string.format(Locales[Config.Locale][str], ...)
        elseif Config.Locale ~= 'en' and Locales['en'] and Locales['en'][str] then
            return string.format(Locales['en'][str], ...)
        else
            return 'Translation [' .. Config.Locale .. '][' .. str .. '] does not exist'
        end
    elseif Config.Locale ~= 'en' and Locales['en'] and Locales['en'][str] then
            return string.format(Locales['en'][str], ...)
    else
        return 'Locale [' .. Config.Locale .. '] does not exist'
    end
end

function TranslateCap(str, ...) -- Translate string first char uppercase
    return _(str, ...):gsub("^%l", string.upper)
end

_ = Translate
_U = TranslateCap
```
