react-native-i18n or i18next with react-i18next:
1import i18n from "i18next";2import { initReactI18next } from "react-i18next";34i18n.use(initReactI18next).init({5 lng: "ru",6 resources: {7 ru: { translation: { greeting: "Привет" } },8 en: { translation: { greeting: "Hello" } },9 },10});
Component usage:
1import { useTranslation } from "react-i18next";23function Greeting() {4 const { t } = useTranslation();5 return <Text>{t("greeting")}</Text>;6}
Best practices:
I18nManager.forceRTL() for RTL support