bouquin/tests/test_strings.py
Miguel Jacq 07c8e31c66
All checks were successful
CI / test (push) Successful in 2m27s
Lint / test (push) Successful in 15s
Trivy / test (push) Successful in 20s
Add Italian translations (thanks @mdaleo404)
2025-11-14 11:41:55 +11:00

17 lines
522 B
Python

from bouquin import strings
def test_load_strings_uses_system_locale_and_fallback():
# pass a bogus locale to trigger fallback-to-default
strings.load_strings("zz")
assert strings._("next") # key exists in base translations
def test_load_strings_french():
strings.load_strings("fr")
assert strings._("today") == "Aujourd'hui" # translation exists in French
def test_load_strings_italian():
strings.load_strings("it")
assert strings._("today") == "Oggi" # translation exists in Italian