bottery
bottery copied to clipboard
Automatically handle i18n
Can I get it?
My idea is mix this 2 guys: https://github.com/Mimino666/langdetect https://github.com/tuvistavie/python-i18n
To can handle properly an i18n translated based on user entry <3 My initial idea is apply it to Message object, something like
@i18n
def view_example(message):
return messages.my_message
We use message._detected_lang to detect the correct return for this message in i18n package configuration
CC: @rougeth