Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think I understand what you're suggesting, and I think it can be achieved with javascript template literals. It might be easier to understand with a usage example instead of an implementation example.

The only restriction may be that variable placeholders in additional translations might need to be positional rather than named.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: