SetLanguage in IVR?

How do I use the SetLanguage command within the IVR context? I can set it up as exten=>s,n,SetLanguage()=es and it works, until I do any change in FreePBX and hit the red bar, then it erases it from there. Any help will be greatly appreciated.