Add internationalization and RTL layout support to your React Native app using react-i18next

Поделиться
HTML-код
  • Опубликовано: 9 сен 2024
  • In this video tutorial, I show you how to add react-i18next to your react native app to handle translations, how to switch the language, and most importantly how to handle Right to Left layouts for languages like Arabic, Urdu, Farsi, Hebrew, etc.
    Code: github.com/saa...
    You can find all relevant links in the readme file of the Github repo.
    My blog: saadibrah.im/
    Linkedin: / saad-ibrahim-749a4330

Комментарии • 31

  • @aamerabuzaid3591
    @aamerabuzaid3591 Год назад

    This helped me a lot in implementing i18next in my React Native app. Thanks and may God bless you!

  • @muhammadaqibbinazam
    @muhammadaqibbinazam 4 года назад +1

    That is the most useful video on earth, Thank you very much!
    We all viewers urge you to make more unique videos like that.
    Thank you very much for that content.

  • @vyacheslavorlovsky506
    @vyacheslavorlovsky506 2 года назад

    Many thanks! I had no idea that switching layout direction in RN should be done in so messy and unobvious way.

  • @educationonline299
    @educationonline299 2 года назад

    Very useful and productive tutorial thanks for sharing you save mine lots of time wasting searching it.

  • @muhamadimron9785
    @muhamadimron9785 4 года назад +2

    great presentation , and it helped me a lot .. Ty

  • @fellypsantos_
    @fellypsantos_ 3 года назад +6

    08:01 - i18next implementation
    15:12 - RTL layout

  • @jubeeshhamza7913
    @jubeeshhamza7913 4 года назад +1

    Thank you very much for this tutorial. Very nice presentation 👍👌

    • @msaadibrahim
      @msaadibrahim  4 года назад +1

      Glad you liked it.

    • @jubeeshhamza7913
      @jubeeshhamza7913 4 года назад

      Saad Ibrahim Bro could you please share your WhatsApp or Instant message to connect with you. Thank you

  • @darbariandrabia
    @darbariandrabia 4 года назад +1

    Very nice explanation ...helped alot...keep it up ..make something good with drawer and explain with good example ...hats off

  • @hariprasatht9082
    @hariprasatht9082 Год назад

    thank you for this useful tutorial

  • @devina1957
    @devina1957 4 года назад +1

    thank you so much, so helpful

  • @abdulbasir8740
    @abdulbasir8740 3 года назад

    Amazing, thank you brother

  • @virajjayasinghe3434
    @virajjayasinghe3434 3 года назад

    useful tutorial. thanks

  • @muhammadumarhayat7832
    @muhammadumarhayat7832 3 года назад

    informative brother

  • @mcnimi
    @mcnimi 4 года назад

    that was helpful. thank you :)

  • @FaramarzRazmi
    @FaramarzRazmi 2 года назад

    awsome man

  • @soloogho4937
    @soloogho4937 2 года назад +1

    Your video about making the site Persian was excellent. But there is still a problem.
    Texts are written from the right, but Lyot is still arranged from the left.
    can you help us about this problem?

    • @Yusuf-ok5rk
      @Yusuf-ok5rk Год назад

      please visit react native docs on this matter. they got info on this.

  • @ScoreMatch_099
    @ScoreMatch_099 2 года назад

    Amazing Tutorial.
    Very Helpful
    But I have an Issue
    we are working on more than 2 languages app
    SO we have two left align language and one right align
    how can i create a check for this
    In index.js file when we set language and is there any way to change alignment without restarting app

  • @maazsurchy
    @maazsurchy 4 года назад

    Hello Saad, thank you so much for such an informative tutorial.
    I am new to React Native, how can I Force RTL my app with single language? I use Kurdish CKB.

  • @fouadchahd2969
    @fouadchahd2969 2 года назад

    does the react native restart work on expo ? if not how can i reach the same behaviour on expo ? ((everything is working fine except i should manually restare the app to see rtl flip)

  • @saadsheikh9395
    @saadsheikh9395 3 года назад

    forceRTL always returning false in ios any workaround for this?
    even after it sets to true

  • @naimbouallagui412
    @naimbouallagui412 3 года назад

    i see this method usefull for whole of the app ! but what if i want to use it just in a one or two components ? is there any helps !!

  • @nickvanhoof5212
    @nickvanhoof5212 3 года назад

    Can we also put the translations in separate files?

    • @smartcubeuae4227
      @smartcubeuae4227 3 года назад +1

      import english from "../../locales/en/translation.json";
      import arabic from "../../locales/ar/translation.json";
      const resources = {
      en: {
      english: english
      },
      ar: {
      arabic: arabic
      },
      };
      in the file where you want to use.
      t('english:key')

  • @chihabahmed5207
    @chihabahmed5207 4 года назад

    Salam bro, how about expo?
    What do I need to change when it comes to expo to get this to work.
    Thanks

    • @msaadibrahim
      @msaadibrahim  4 года назад

      Actually for expo, its even simpler, please check this link:
      docs.expo.io/guides/running-in-the-browser/

    • @KamalHossain-rn1ox
      @KamalHossain-rn1ox 3 года назад

      @@msaadibrahim Thank you sir for sharing this useful video. But the link you have provided doesn't have anything related about RTL or translations. Can you provide us some resouce for expo usage.
      It will be very helpful.

  • @mustafaalajmi2489
    @mustafaalajmi2489 Год назад

    Thanks

  • @ChristianWagner888
    @ChristianWagner888 3 года назад

    This helped me a lot in implementing i18next in my React Native app. Thanks and may God bless you!