MCPcopy
hub / github.com/lingodotdev/lingo.dev / LingoHtmlComponent

Function LingoHtmlComponent

packages/react/src/rsc/component.tsx:33–38  ·  view source on GitHub ↗
(
  props: React.HTMLAttributes<HTMLHtmlElement>,
)

Source from the content-addressed store, hash-verified

31}
32
33export async function LingoHtmlComponent(
34 props: React.HTMLAttributes<HTMLHtmlElement>,
35) {
36 const locale = await loadLocaleFromCookies();
37 return <html {...props} lang={locale} data-lingodotdev-compiler={locale} />;
38}

Callers 1

component.spec.tsxFile · 0.90

Calls 1

loadLocaleFromCookiesFunction · 0.90

Tested by

no test coverage detected