Can initTranslations() be called outside the init() function?

Calling it outside the init() function makes it possible to use translations in global scope like:

const baz = {
    a: _('foo'),
    b: _('bar'),
}

Sure, I don’t see why not. We treat top-level module code as equivalent to code in init() during review, so that should be fine.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.