diff --git a/.gitignore b/.gitignore index 8730e8a..ff50ff8 100644 --- a/.gitignore +++ b/.gitignore @@ -54,7 +54,6 @@ coverage.xml .pytest_cache/ # Translations -*.mo *.pot # Django stuff: diff --git a/build.py b/build.py deleted file mode 100644 index 263ba9f..0000000 --- a/build.py +++ /dev/null @@ -1,7 +0,0 @@ -import subprocess - - -def build(setup_kwargs): - print("Compile translations:") - subprocess.run(["pybabel", "compile", "--directory", "fastapi_admin/locales"]) - return setup_kwargs diff --git a/fastapi_admin/locales/en_US/LC_MESSAGES/messages.mo b/fastapi_admin/locales/en_US/LC_MESSAGES/messages.mo new file mode 100644 index 0000000..9881587 Binary files /dev/null and b/fastapi_admin/locales/en_US/LC_MESSAGES/messages.mo differ diff --git a/fastapi_admin/locales/fa_IR/LC_MESSAGES/messages.mo b/fastapi_admin/locales/fa_IR/LC_MESSAGES/messages.mo new file mode 100644 index 0000000..ccd099f Binary files /dev/null and b/fastapi_admin/locales/fa_IR/LC_MESSAGES/messages.mo differ diff --git a/fastapi_admin/locales/fr_FR/LC_MESSAGES/messages.mo b/fastapi_admin/locales/fr_FR/LC_MESSAGES/messages.mo new file mode 100644 index 0000000..6b7d473 Binary files /dev/null and b/fastapi_admin/locales/fr_FR/LC_MESSAGES/messages.mo differ diff --git a/fastapi_admin/locales/zh_CN/LC_MESSAGES/messages.mo b/fastapi_admin/locales/zh_CN/LC_MESSAGES/messages.mo new file mode 100644 index 0000000..a18ad17 Binary files /dev/null and b/fastapi_admin/locales/zh_CN/LC_MESSAGES/messages.mo differ diff --git a/pyproject.toml b/pyproject.toml index e28e35b..3ab21df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,13 +3,6 @@ authors = ["long2ice "] description = "A fast admin dashboard based on FastAPI and TortoiseORM with tabler ui, inspired by Django admin." documentation = "https://fastapi-admin.github.io" homepage = "https://github.com/fastapi-admin/fastapi-admin" -include = [ - "LICENSE", - "README.md", - "CHANGELOG.md", - "fastapi_admin/locales/en_US/LC_MESSAGES/messages.mo", - "fastapi_admin/locales/zh_CN/LC_MESSAGES/messages.mo" -] keywords = ["fastapi", "admin", "dashboard", "tortoise-orm"] license = "Apache-2.0" name = "fastapi-admin" @@ -19,7 +12,6 @@ packages = [ readme = "README.md" repository = "https://github.com/fastapi-admin/fastapi-admin.git" version = "1.0.5" -build = "build.py" [tool.poetry.dependencies] Babel = "*"