I see that this problem is not related to i18n, but in any case, when you need visualization data that still needs to be calculated.
You must prepare your data before sending it to the template that will be displayed, so your template should accept key and show value .
If your Model.attributes not ready for your template, you should not send them directly, but prepare them, and when they are ready to send them to the template.
Check the answers to this question to find out if any of the answers fits your needs.
fguillen
source share