translator = function translator(key, values) {
            console.debug('p5.js translator called before translations were loaded');

            // Certain FES functionality may trigger before translations are downloaded.
            // Using "partialBundledLanguages" option during initialization, we can
            // still use our fallback language to display messages
            _i18next.default.t(key, values); /* i18next-extract-disable-line */
          }
Set up our translation function, with loaded languages