bottery icon indicating copy to clipboard operation
bottery copied to clipboard

Automatically handle i18n

Open rougeth opened this issue 8 years ago • 1 comments

rougeth avatar Aug 13 '17 00:08 rougeth

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

guidiego avatar Oct 17 '17 11:10 guidiego