We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dad9165 + 346a45a commit 6ca29cdCopy full SHA for 6ca29cd
flask_babel/__init__.py
@@ -16,10 +16,10 @@
16
17
from babel.support import Translations, NullTranslations
18
from flask import current_app, g
19
-from flask.helpers import locked_cached_property
20
from babel import dates, numbers, support, Locale
21
from pytz import timezone, UTC
22
from werkzeug.datastructures import ImmutableDict
+from werkzeug.utils import cached_property
23
24
from flask_babel.speaklater import LazyString
25
@@ -221,7 +221,7 @@ def domain(self) -> str:
221
"""
222
return get_babel().default_domain
223
224
- @locked_cached_property
+ @cached_property
225
def domain_instance(self):
226
"""The message domain for the translations.
227
0 commit comments