Implementing the base for localization with flask babel.