getTranslatables(element) {
    const nodes = Array.from(element.querySelectorAll(L10N_ELEMENT_QUERY));

    if (
      typeof element.hasAttribute === "function" &&
      element.hasAttribute(L10NID_ATTR_NAME)
    ) {
      nodes.push(element);
    }

    return nodes;
  }
Collects all translatable child elements of the element.

@param {Element} element
@returns {Array<Element>}
@private