From b4aa9f28283fd26155d7bcf396458e5838dd4ac8 Mon Sep 17 00:00:00 2001 From: Hongyu Shi Date: Wed, 22 Oct 2025 09:46:49 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):=20=E4=BF=AE=E5=A4=8D=20i18n=20?= =?UTF-8?q?=E5=8C=85=E5=90=AB=E7=9A=84=E6=96=87=E4=BB=B6=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=EF=BC=8C=E7=A1=AE=E4=BF=9D=E6=AD=A3=E7=A1=AE=E6=89=93=E5=8C=85?= =?UTF-8?q?=E7=BF=BB=E8=AF=91=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hongyu Shi --- pyproject.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 37dc1c7..98c8633 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,7 @@ packages = [ "src/log", "src/tool", ] +artifacts = ["src/i18n/locales/*/LC_MESSAGES/*.mo"] [tool.hatch.build.targets.wheel.force-include] "src/main.py" = "main.py" @@ -55,7 +56,7 @@ packages = [ [tool.hatch.build.targets.wheel.package-data] app = ["css/*.tcss"] -i18n = ["locales/*/LC_MESSAGES/*.mo", "locales/*.pot"] +i18n = ["locales/*.pot", "locales/*/LC_MESSAGES/*.po"] [tool.hatch.build.targets.sdist] include = ["LICENSE", "MANIFEST.in", "README.md", "requirements.txt", "src"] -- Gitee