1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 07:39:41 +02:00

Feature/improve localization (#1147)

* use locale to set language header

* rewrite i18n provider and drop dependency

* rename file

* rename CrudMixin to HttpRepo

* refactor: code-cleanup

* add crowdin source

* remove unused translations

* grab translations from dev branch

* add translation support for foods, units, and labels

* remove rich import
This commit is contained in:
Hayden 2022-04-10 14:07:35 -08:00 committed by GitHub
parent db095656e1
commit 7866f0f46e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
71 changed files with 4736 additions and 3642 deletions

View file

@ -1,9 +1,9 @@
from mealie.core import exceptions
from mealie.lang import get_locale_provider
from mealie.lang import local_provider
def test_mealie_registered_exceptions() -> None:
provider = get_locale_provider()
provider = local_provider()
lookup = exceptions.mealie_registered_exceptions(provider)