code: def __init__(self, is_trans=False):
      super().__init__()
      self.trans_dict = defaultdict(dict)
      with open(
          osp.join(pjpath, "config/zh_CN.EN"), "r", encoding="utf-8"
      ) as f:
          texts = f.readlines()
          for txt in texts:
              strs = txt.split("@")
              self.trans_dict[strs[0].strip()] = strs[1].strip()
      self.is_trans = is_trans
      self.youdao_url = (
          "http://fanyi.youdao.com/translate?&doctype=json&type=AUTO&i="
      )
  
file_path: PaddleSeg/EISeg/eiseg/util/language.py
imports: import os.path
  import re
  from eiseg import pjpath
  from collections import defaultdict
  import json
  from urllib import parse
  import requests
label_desc: Use image node_id 1 to create a new TransUI object from inherited base classes: object with example: obj = TransUI(is_trans)