MCPcopy Create free account
hub / github.com/api-platform/website / getTranslation

Function getTranslation

pwa/utils/con/translation.tsx:10–13  ·  view source on GitHub ↗
(locale: Locale)

Source from the content-addressed store, hash-verified

8export type TranslationPatterns = Record<string, ReactNode>;
9
10export const getTranslation = async (locale: Locale) => {
11 const dict = await getDictionary(locale);
12 return t(dict);
13};
14
15export const t =
16 (dict: DictionaryReturn) =>

Callers

nothing calls this directly

Calls 2

getDictionaryFunction · 0.90
tFunction · 0.85

Tested by

no test coverage detected