MCPcopy
hub / github.com/ZHO-ZHO-ZHO/Nano-Bananary / useTranslation

Function useTranslation

i18n/context.tsx:63–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

61};
62
63export const useTranslation = (): LanguageContextType => {
64 const context = useContext(LanguageContext);
65 if (!context) {
66 throw new Error('useTranslation must be used within a LanguageProvider');
67 }
68 return context;
69};

Callers 13

AppFunction · 0.90
LanguageSwitcherFunction · 0.90
ImageEditorCanvasFunction · 0.90
UploaderBoxFunction · 0.90
MultiImageUploaderFunction · 0.90
TransformationSelectorFunction · 0.90
ErrorMessageFunction · 0.90
LoadingSpinnerFunction · 0.90
ImagePreviewModalFunction · 0.90
ThemeSwitcherFunction · 0.90
ResultDisplayFunction · 0.90
HistoryItemFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected