Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(get_locale): set default locale to 'en' without Flask-Babel #333

Merged
merged 2 commits into from Dec 27, 2018

Conversation

aveuiller
Copy link
Contributor

Closes #332

@aveuiller aveuiller force-pushed the 332_define_default_get_locale branch 2 times, most recently from 634e26f to a56c7b1 Compare July 16, 2018 14:51
except ImportError:
def get_locale(): return babel.Locale('en')
except AttributeError:
# As babel is optional, we may raise an AttributeError accessing it
def get_locale():
raise ImproperlyConfigured(
'Could not load get_locale function from Flask-Babel. Either '

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that Flask-Babel is no longer required I guess you can remove mention of it in the error message.

Antoine Veuiller added 2 commits July 17, 2018 10:27
@aveuiller aveuiller force-pushed the 332_define_default_get_locale branch from a56c7b1 to c863854 Compare July 17, 2018 08:28
@kdeldycke
Copy link

Any news on that one? :)

@kvesteri kvesteri merged commit faec07a into kvesteri:master Dec 27, 2018
@kvesteri
Copy link
Owner

Thanks for the PR! 🚋

@kdeldycke
Copy link

Thanks @kvesteri for the merge and release! 👍

@aveuiller aveuiller deleted the 332_define_default_get_locale branch December 27, 2018 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants