2019-04-25 23:50:31 +02:00
|
|
|
from flask import render_template
|
|
|
|
from objects import glob
|
|
|
|
|
2019-05-10 09:36:45 +02:00
|
|
|
@glob.app.context_processor
|
|
|
|
def locale():
|
|
|
|
def _locale(lang, key):
|
|
|
|
return glob.langs[lang][key] if key in glob.langs[lang] else key
|
|
|
|
return dict(locale = _locale)
|