MCPcopy
hub / github.com/freeCodeCamp/freeCodeCamp / useTranslation

Function useTranslation

client/__mocks__/react-i18next.js:50–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48};
49
50const useTranslation = () => {
51 return {
52 t: str => str,
53 i18n: {
54 changeLanguage: () => new Promise(() => {})
55 }
56 };
57};
58
59const Trans = ({ children }) =>
60 Array.isArray(children) ? renderNodes(children) : renderNodes([children]);

Callers 15

AppMountNotifierFunction · 0.90
EmailListOptInFunction · 0.90
EmailOptionsFunction · 0.90
CatalogItemFunction · 0.90
OfflineWarningFunction · 0.90
DefaultLayoutFunction · 0.90
SEOFunction · 0.90
MapFunction · 0.90
DownFunction · 0.90
DisabledFunction · 0.90
OnaNoteFunction · 0.90
CodeAllyButtonFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected