make trade codes API endpoints locale aware