Creating helper which return computed value

hi!

I have an app with about 1000 texts variabled. They are stored in one object and loaded with

script window.texts={…} /script

injection in index.html.

Then, app can receive a message from server to refresh texts and then they are loaded from server, and current state of app should be re-rendered cause some texts changed.

Advise me please a better solution for writing such view helper: {{text text_key_name}}