0👍
Try to use hard-coded, for a test, translation.activate(language)
just before sending it:
def nomegiorno(self):
old = translation.get_language()
print('old', old)
translation.activate('it')
pio = self.datainserimento.strftime("%A")
translation.activate(old)
return pio
And tell me what you have, this should help anyway
Source:stackexchange.com