Closed tomtomaZ closed 4 years ago
Can you please provide an example key that doesn't work with the relative self.loc
call?
Just a call that i create dosen't work with self.loc.get(), i create a call called "conversation_click_add_cart", and in his string in a pt_br.py i used a product of name key, the message is showed but the key is not converted for the value, showing {name} in message
Have you passed the key as a keyword argument in the self.loc.get
call?
Can you please send me the problematic line(s) of code?
you need to pass
name
in theself.loc.get
callself.loc.get("conversation_click_add_cart", name="your string")
I tried to insert some strings of my own in the language files, but as braces called "{...}" it doesn't work in the new messages I created even following a syntax, maybe it is an error in the localization.py formation
Steps to reproduce the behavior: