# -*- coding: utf-8 -*- import os OUT = os.path.join( os.path.dirname(os.path.dirname(os.path.abspath(__file__))), "ruoyi-ui", "src", "views", "production", "meatYieldAnalysis", "index.vue", ) # Chinese via unicode escapes only LABELS = { "entrance_time": "\u5165\u573a\u65f6\u95f4", "to": "\u81f3", "start": "\u5f00\u59cb\u65e5\u671f", "end": "\u7ed3\u675f\u65e5\u671f", "search": "\u641c\u7d22", "reset": "\u91cd\u7f6e", "batch_no": "\u5165\u573a\u6279\u6b21", "batch_date": "\u6279\u6b21\u5165\u573a\u65e5\u671f", "gross": "\u6bdb\u91cd(kg)", "net": "\u51c0\u91cd(kg)", "avg_yield": "\u5e73\u5747\u51fa\u8089\u7387(%)", "action": "\u64cd\u4f5c", "detail": "\u8be6\u60c5", "individual": "\u4e2a\u4f53\u7f16\u53f7", "yield": "\u51fa\u8089\u7387(%)", "close": "\u5173 \u95ed", "detail_title": "\u6279\u6b21\u51fa\u8089\u7387\u8be6\u60c5 - ", } CONTENT = ''' '''.format(**LABELS) os.makedirs(os.path.dirname(OUT), exist_ok=True) with open(OUT, "w", encoding="utf-8", newline="\n") as f: f.write(CONTENT) print("Wrote", OUT)