getText(textObj, ...params) {
      if (typeof textObj === "string") {
        textObj = {
          key: textObj,
          defaultText: textObj
        };
      }
      if (!textObj || !textObj.key) {
        return "";
      }
      const bundle = (0, _i18n.getI18nBundleData)(this.packageName);
      if (bundle && !bundle[textObj.key]) {
        // eslint-disable-next-line no-console
        console.warn(`Key ${textObj.key} not found in the i18n bundle, the default text will be used`);
      }
      const messageText = bundle && bundle[textObj.key] ? bundle[textObj.key] : textObj.defaultText || textObj.key;
      return (0, _formatMessage.default)(messageText, params);
    }
Returns a text in the currently loaded language

@public
@param {Object|String} textObj key/defaultText pair or just the key
@param params Values for the placeholders
@returns {string}