mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-16 07:15:26 -05: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:
@@ -1,6 +1,6 @@
|
||||
from sqlite3 import IntegrityError
|
||||
|
||||
from mealie.lang.providers import AbstractLocaleProvider
|
||||
from mealie.lang.providers import Translator
|
||||
|
||||
|
||||
class PermissionDenied(Exception):
|
||||
@@ -19,7 +19,7 @@ class NoEntryFound(Exception):
|
||||
pass
|
||||
|
||||
|
||||
def mealie_registered_exceptions(t: AbstractLocaleProvider) -> dict:
|
||||
def mealie_registered_exceptions(t: Translator) -> dict:
|
||||
"""
|
||||
This function returns a dictionary of all the globally registered exceptions in the Mealie application.
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user