MCPcopy Create free account
hub / github.com/i18next/react-i18next / changeLanguage

Function changeLanguage

example/ReactNativeProject/App.tsx:29–31  ·  view source on GitHub ↗
(lng: string)

Source from the content-addressed store, hash-verified

27 const {t, i18n} = useTranslation();
28
29 const changeLanguage = (lng: string) => {
30 i18n.changeLanguage(lng);
31 };
32
33 return (
34 <View style={{flex: 1, justifyContent: 'center', alignItems: 'center'}}>

Callers 1

AppInnerFunction · 0.70

Calls 1

changeLanguageMethod · 0.45

Tested by

no test coverage detected