Skip to content

livresaber/app-internationalization

Repository files navigation

app-internationalization

This is an example React Native application that demonstrates how to implement internationalization (i18n) using react-i18next. The app allows users to switch between different languages by clicking on corresponding country flags, and it persists the selected language locally for a consistent user experience across app restarts. For more details, check out the article on Dev.to.

Screenshots

App screenshot portuguese App screenshot chinese App screenshot english

Features

  • Internationalization with i18next: Leverages react-i18next for seamless language management.
  • Persistent Language Selection: Uses AsyncStorage to save the user's language preference.
  • Locale Fallback: Defaults to the device's locale if no language preference is saved.
  • Easy Language Switching: Users can switch languages by tapping on country flags.

Prerequisites

  • Node.js
  • Expo CLI (if using Expo)

Get started

  1. Install dependencies

    npm install
  2. Start the app

     npx expo start

Learn More

🎭 Com quem você pode conversar sobre o projeto?

Who can you talk to about the project?

¿Con quién puedes hablar sobre el proyecto?

С кем вы можете поговорить о проекте?

誰がプロジェクトについて話すことができますか?

À qui pouvez-vous parler du projet?

Projeyle ilgili kim konuşabilirsin?

你能谈谈这个项目吗?