gt-react-native
v10.19.16
Published
An i18n package for React Native
Readme
gt-react-native
Automatic i18n for React Native.
Installation
npm install gt-react-native
npm install gt --save-devQuick Start
npx gt initimport { T, GTProvider } from 'gt-react-native';
import gtConfig from '../gt.config.json';
import { loadTranslations } from './loadTranslations';
export default function App() {
return (
<GTProvider config={gtConfig} loadTranslations={loadTranslations}>
<T>
<Text>This gets translated automatically.</Text>
</T>
</GTProvider>
);
}See the full documentation for guides and API reference.
