Add option --load-only language codes

The user will not have to install language packages from "argos-translate" that he/she has no use for.
This commit is contained in:
Philippe-Cholet 2021-03-28 16:19:19 +02:00
parent fb031b826a
commit abeee7e385
3 changed files with 27 additions and 4 deletions

View file

@ -49,7 +49,7 @@ def get_routes_limits(default_req_limit, api_keys_db):
def create_app(args):
if not args.offline:
from app.init import boot
boot()
boot(args.load_only)
from app.language import languages
app = Flask(__name__)