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

Function loadDictionaryFromRequest

packages/react/src/rsc/utils.ts:86–91  ·  view source on GitHub ↗
(
  loader: (locale: string) => Promise<any>,
)

Source from the content-addressed store, hash-verified

84 * ```
85 */
86export async function loadDictionaryFromRequest(
87 loader: (locale: string) => Promise<any>,
88) {
89 const locale = await loadLocaleFromCookies();
90 return loader(locale);
91}

Callers 4

LingoComponentFunction · 0.90
utils.spec.tsFile · 0.90
LingoAttributeComponentFunction · 0.90
LingoProviderFunction · 0.90

Calls 1

loadLocaleFromCookiesFunction · 0.70

Tested by

no test coverage detected