createCompactLangNode = ({ lang, x, y, display_format }) => {
  const color = languageColors[lang.name] || "#858585";
  const value = formatLanguageValue({ display_format, lang });

  return `
    <g transform="translate(${x}, ${y})">
      <circle cx="5" cy="6" r="5" fill="${color}" />
      <text data-testid="lang-name" x="15" y="10" class='lang-name'>
        ${lang.name} - ${value}
      </text>
    </g>
  `;
}
Create compact WakaTime layout.

@param {Object} args The function arguments.
@param {WakaTimeLang} args.lang The languages array.
@param {number} args.x The x position of the language node.
@param {number} args.y The y position of the language node.
@param {"time" | "percent"} args.display_format The display format of the language node.
@returns {string} The compact layout language SVG node.