> For the complete documentation index, see [llms.txt](https://docs.streamavatars.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/classes/app/translatecommand.md).

# translateCommand

```lua
return function()
    local app = getApp();
    local avatarCmd = app.translateCommand('avatar');
    
    log(avatarCmd); --this will now be the user's custom input for the command!
    --if the user changed the command fromn  avatar to character
    --it would log 'character')
    
    --this is useful for making a lua script that functions for users without worrying
    --about their settings
end
```
