code: def set_language(self, language):
          '''
          Set the cookie for locale.
          '''
          if language == 'ZH':
              self.set_cookie('ulocale', 'zh_CN')
              self.set_cookie('blocale', 'zh_CN')
          else:
              self.set_cookie('ulocale', 'en_US')
              self.set_cookie('blocale', 'en_US'f set_language(self, language):
          '''
          Set the cookie for locale.
          '''
          if language == 'ZH':
              self.set_cookie('ulocale', 'zh_CN')
              self.set_cookie('blocale', 'zh_CN')
          else:
              self.set_cookie('ulocale', 'en_US')
              self.set_cookie('blocale', 'en_US')
docs: Set the cookie for locale.