mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 13:12:24 +00:00
15 lines
268 B
Python
15 lines
268 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
from backend.common.i18n import i18n
|
|
from backend.utils.console import console
|
|
|
|
__version__ = '1.8.0'
|
|
|
|
|
|
def get_version() -> str | None:
|
|
console.print(f'[cyan]{__version__}[/]')
|
|
|
|
|
|
# 初始化 i18n
|
|
i18n.load_locales()
|