USe the system locale if the parameter default_language is not set while instanciating Ki18n

This commit is contained in:
2026-11-22 09:46:04 +01:00
parent 0e8875e878
commit f7825e6789
8 changed files with 420 additions and 37 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ def test_non_english_default_language(env):
assert manager.t("greeting") == "Hallo"
@pytest.mark.parametrize("code", ["!!", "", "de/DE", None])
@pytest.mark.parametrize("code", ["!!", "", "de/DE", 42])
def test_invalid_default_language_raises_value_error(env, code):
env.install_defaults()
with pytest.raises(ValueError, match="Invalid default language"):