It's a defensive tactic against any runtime that doesn't support `gettext()`, as well as a way to run the code in the unit tests without including an additional dependency with the stub.  We could possibly move this to a separate file and configure the JS minifier to always include it first, but I'm a little hesitant to couple the `gettext` stuff with the minification process.