'Get /locale/{lang_code}/LC_MESSAGES/messages.json'

def locale_json(self):

    locale_file = ek(os.path.normpath, u'{locale_dir}/{lang}/LC_MESSAGES/messages.json'.format(locale_dir=sickbeard.LOCALE_DIR, lang=sickbeard.GUI_LANG))
    if os.path.isfile(locale_file):
        self.set_header(u'Content-Type', u'application/json')
        with open(locale_file, u'r') as content:
            return content.read()
    else:
        self.set_status(204)
        return None
