Coverage for app / backend / src / couchers / notifications / locales.py: 100%

7 statements  

« prev     ^ index     » next       coverage.py v7.13.4, created at 2026-03-09 12:40 +0000

1from functools import lru_cache 

2from pathlib import Path 

3 

4from couchers.i18n.i18next import I18Next 

5from couchers.i18n.locales import load_locales 

6 

7 

8@lru_cache(maxsize=1) 

9def get_notifs_i18next() -> I18Next: 

10 """Gets the I18Next instance for notifications.""" 

11 return load_locales(Path(__file__).parent / "locales")