You can't guarantee this to be here `navigator.mozL10n` is loaded async. Instead use it directly inside the function that requires it.