Okay, (hopefully) last update on this. Let's make the data attribute `data-global-close="{{ _('Close') }}"`. We'll add the `global-` namespace to separate global strings from those in specific page templates.

So, I believe we want:

`var closeText = window.trans('global-close');`