From f180d750fda77e4c2a38012d88539a970cfab227 Mon Sep 17 00:00:00 2001 From: ErQrYfkrju <65288684+ErQrYfkrju@users.noreply.github.com> Date: Thu, 18 Feb 2021 21:44:26 +0300 Subject: [PATCH 1/2] fix static package_data for offline mode package_data 'static/*' won`t include sub directories so offline mode would result in 404 for static resources under js, css, fonts --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index bf9b78b..1839681 100644 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ setup( packages=find_packages(), # packages=find_packages(include=['openpredict']), # package_dir={'openpredict': 'openpredict'}, - package_data={'': ['static/*', 'templates/*']}, + package_data={'': ['static/*', 'static/**/*', 'templates/*']}, include_package_data=True, entry_points={ 'console_scripts': [ From adbadded6b74fdf9cb91bb2ae59af7d77f9db1be Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Fri, 26 Feb 2021 09:07:02 -0500 Subject: [PATCH 2/2] Language bindings note --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index beefe43..9ea8f64 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,14 @@ ltmanage keys remove ltmanage keys ``` +## Language Bindings + +You can use the LibreTranslate API using the following bindings: + + - Rust: https://github.com/DefunctLizard/libretranslate-rs + +More coming soon! + ## Roadmap Help us by opening a pull request!