routes.py 339 B

12345678910111213141516
  1. # -*- coding: utf-8 -*-
  2. from fileutils import abspath
  3. from languages import read_possible_languages
  4. possible_languages = read_possible_languages(abspath('applications', app))
  5. routers = {
  6. app: dict(
  7. default_language = possible_languages['default'][0],
  8. languages = [lang for lang in possible_languages
  9. if lang != 'default']
  10. )
  11. }