Flutter Tutorial - Create Multi Language App (i18n) | Internationalization In Flutter

Поделиться
HTML-код
  • Опубликовано: 13 июн 2024
  • How to translate texts into any language using Flutter Internationalization and Localization to create a Flutter multi language app.
    Click here to Subscribe to Johannes Milke: ruclips.net/user/JohannesMilke...
    👉 12 Week Flutter Training | heyflutter.com
    👉 Flutter Masterclass Courses | heyflutter.com/masterclass
    Source Code | github.com/JohannesMilke/inte...
    My Courses | heyflutter.com
    Follow Newsletter | johannesmilke.com/#/newsletter
    Docs Internationalization: docs.flutter.dev/development/...
    SUBSCRIBE HERE
    bit.ly/JohannesMilke
    SUPPORT & SPONSOR ME
    github.com/sponsors/JohannesM...
    TIMELINE
    0:00 Flutter Internationalization / Localization (i18n)
    0:32 Setup Flutter Localizations
    2:15 Generate Translations For Different Languages
    5:17 Display Translation Texts In App
    7:58 Add Parameters To Translation
    SOCIAL MEDIA: Follow Us :-)
    Twitter | / heyflutter_
    Linkedin | / heyflutter
    #Flutter #Tutorial #JohannesMilke
    LIKE & SHARE & ACTIVATE THE BELL
    Thanks For Watching :-)
  • НаукаНаука

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

  • @HeyFlutter
    @HeyFlutter  Год назад +1

    This might help you :)
    👉 12 Week Flutter Training from Newbie to Expert: heyflutter.com
    Source Code: github.com/JohannesMilke/internationalization_app
    Docs Internationalization: docs.flutter.dev/development/accessibility-and-localization/internationalization
    Change Language Translation MANUALLY In App Tutorial: ruclips.net/video/Zw4KoorVxgg/видео.html
    Null Safety Introduction Tutorial: ruclips.net/video/PnSpQkOKwv0/видео.html
    Migrate Flutter App To Null Safety Tutorial: ruclips.net/video/GLnQphHi1BY/видео.html
    TOP 10 Flutter Questions Answered: ruclips.net/video/0-gS_JTLwaM/видео.html
    Expand Floating Action Button Tutorial: ruclips.net/video/YHNCYfqGrBY/видео.html
    Home Screen Quick Actions Popup Tutorial: ruclips.net/video/sqw-taR2_Ww/видео.html
    Hide/Show AppBar/Pinned TabBar On Scroll Tutorial: ruclips.net/video/xzPXqQ-Pe2g/видео.html
    Hide/Show Bottom Navigation Bar On Scroll: ruclips.net/video/pr_Go9I19SA/видео.html
    Hide/Show Widgets In Flutter Tutorial: ruclips.net/video/MqIBOlG7Dts/видео.html
    Show iOS Popup Alert Dialog Tutorial: ruclips.net/video/UYVylKqdKRY/видео.html
    Show Material Banner Tutorial: ruclips.net/video/WXmvbsEhMWk/видео.html
    Show Toast Message Tutorial: ruclips.net/video/o2tq4RMcAJw/видео.html
    Show SnackBar Tutorial: ruclips.net/video/Q_YO_Y5u2Pg/видео.html
    Show/Hide Bottom Sheet Tutorial: ruclips.net/video/AjAQglJKcb4/видео.html
    Show/Hide Navigation Drawer Tutorial: ruclips.net/video/vZ7vdMok98g/видео.html
    Amazing Lottie Animations Tutorial: ruclips.net/video/kyPizhfn8k8/видео.html
    QR Code Scanner Tutorial: ruclips.net/video/hHehIGfX_yU/видео.html

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

    You're amazing, thanks for ALL the help you provided us!

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

    Appreciate your consistency greatly.thanku

  • @cris4lomas
    @cris4lomas Год назад +1

    I was really stucked at this point and I was getting frustrated but then I saw your video. Thanks a lot for sharing all this information!!

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

      Glad it was helpful, @cris4lomas 😀

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

    This was very helpfull too me ,danke bro !

  • @BrightCode
    @BrightCode 2 года назад +5

    Hello I love what you are providing for us
    Can I ask if you can do about encryption like encrypt chat messages using rsa encryption algorithm or any other method thank you very much.

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

    Hi Milke, nice tutorial. How does the app rebuild the widgets when you change the language? Does the package take care of it? It seems like you should manage the state somewhere to rebuild when listening to a change.

  • @frijole16
    @frijole16 2 года назад +2

    Hello Johannes! Great video! I'm wondering how this method would apply to a text-heavy app? Could we store the translations in a database and load them as needed? If so, how would that work? Sorry I'm still kinda new to this so I hope this question makes sense!

  • @mranderson9844
    @mranderson9844 2 года назад +3

    Thanks for this video.
    इस वीडियो के लिए धन्यवाद।
    Gracias por este video.
    Merci pour cette vidéo.

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

    thank you, brother. You are awesome!

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

      You are welcome, Dharyel Santos!

  • @patrickwitter4437
    @patrickwitter4437 2 года назад +7

    Would be great if you provided links to documentation in description

    • @HeyFlutter
      @HeyFlutter  Год назад +2

      Thank you, Patrick Witter! 🙂 Here you go: docs.flutter.dev/development/accessibility-and-localization/internationalization

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

    Amazing tutorial Mike!, I would like to ask if is there any tutorial to the menu to change the language locally too, since it would be useful for some cases

    • @HeyFlutter
      @HeyFlutter  Год назад +1

      Thanks for the idea, HrHr! 🙂 I have added it to my list of ideas for future videos!

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

    Very useful Video, thanks a lot

    • @HeyFlutter
      @HeyFlutter  Год назад +1

      Glad you liked it, @daumienebi4864 😀

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

    नमस्ते
    आपका बहुत बहुत धन्यवाद ।

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

    Great video, I'll integrate it shortly. Any chance you could create a similar video on a11y (accessibility)?

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

      @@HeyFlutter Awesome, happy to help. Thanks for the great content.

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

    Hey Johannes, is there a way to chance the localisation for numbers and dates? I want 2,99 instead 2.99 and 22.10.2022 instead 10/22/2022. I can't find any advice... is it so easy? 😅 I hope you can help me out!

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

      Thanks for the idea Fl3tscheR Thornbridge 😀, i have added it in my list of future videos

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

    Hello Sir! I hope you are doing well. I loved to learn from your videos. I want to ask a question sir as we know an app have multiple things. As you're adding the hello World for text. If i want to change the language of complete app by single click then i have to add all the things one by one??????????????

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

      Sir I want to change the language of whole app like change the language of signup page, login page, dashboard etc??? Will this tutorial work for me???

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

      You're just adding hello world in this tutorial and changing the language of that hello world only... That's why I m asking this que... I hope you'll understand what am I trying to ask?? Sorry 😐 sir for stupid question!

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

      @@shakeebahmedkhan8026 Bro for that you need to get it from back end through API

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

      @@shamshushaash5251 thank you bro but I m using Firebase as a backend for my application

    • @MuhammedFayis-bi6jw
      @MuhammedFayis-bi6jw Год назад

      @@shamshushaash5251 oh i see

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

    What about the alignment of the language..like English is left to right..Arabic is right to left. Will the alignment of the language also take place automatically?
    I don't want to translate but upload unique language texts. Pls advise.

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

      Thank you, Shah Rahman! 🙂. Yes it will.

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

    شكرا لك

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

    thanks bro

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

      You are welcome, SSuperCrack!

  • @user-qo2zs5rb3w
    @user-qo2zs5rb3w Год назад

    Hello, can you do it in retrieving the translated content by using key in the string format like
    ‘language’ instead of .language, because I would like to display it based on my database query
    By the way, thanks for your guiding 😇

    • @HeyFlutter
      @HeyFlutter  Год назад +1

      Thank You Chen Yang Bee! Follow this link: stackoverflow.com/questions/58021915/how-to-get-key-data-on-flutter#:~:text=You%20can%20use%20JSON%20to,fast%20with%20less%20human%20error.
      I hope you will get your answer 🙂

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

    Thanks alot

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

      Glad you liked it, @ahmedzizo19988 😀

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

    hello. after providing data to receive access to your github, the mail that you send for confirm subscription does not work.Any help?

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

      Thanks, pct constantin! 🙂 Learn more about it here: github.com/JohannesMilke/sponsorware#2-why-didnt-i-get-an-email-even-if-i-have-sent-already-a-request-on-your-website

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

    Hi, great video. There is an error throwing in my code at 0:59 -> (Abstract classes can't be instantiated.
    Try creating an instance of a concrete subtype.) on all Locale('en'),Locale('hi'),Locale('ar') etc. Code also complains about const before locale. Right now i have used Locale.fromSubtags('en') which removes the error but i don't know if its the right approach. How do i tackle this error?

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

      Also, how did you reference .dart_tool at 5:42 without any error? In my code it shows "Target of URI doesn't exist: 'package:flutter_gen/gen_l10n/app_localizations.dart'.
      Try creating the file referenced by the URI, or Try using a URI for a file that does exist."

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

      Right now i just copied all the flutter_gen files inside the lib folder. That's alright(good practice), right? It's working then.

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

      @@HeyFlutter I have the exact same issue and this article does not help me... I copied your l10n.dart file but get errors on every const and every Locale. But I dont know why :(

    • @mattrudin4074
      @mattrudin4074 2 года назад +3

      @@linusreutter2108 in your l10n.dart file, add the following import: "import 'package:flutter/material.dart';". Locale is a class from "flutter/material", not from "intl/locale".

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

      @@mattrudin4074 ty 😁

  • @abdelouahebbenouar6157
    @abdelouahebbenouar6157 Год назад +1

    But you didn't show us how to change the language inside the app , like the menu you are using at the beginning

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

      Thank You abdou Ben! Follow this link: stackoverflow.com/questions/65307961/button-to-change-the-language-flutter
      I hope you will get your answer 🙂

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

    Thanks a lot for this! But how to change the language at runtime without rebuilding the entire widget tree? Thanks again

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

      @@HeyFlutter Thanks a lot for your valuable reply! 💙

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

      Thank You Mohammed Nihad! Follow this link: docs.flutter.dev/resources/architectural-overview
      I hope you will get your answer 🙂

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

    I followed all of it, but the Applocalization is not generated in my app. What should I do?

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

      @@HeyFlutter , I restarted my app, but the flutter_gen package that contains app_localization.dart not generated by itself and now my app show that "AppLocalization is undefined" at localizationsDelegate part.

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

    Does this support Kurdish language? If not, how can I add the Kurdish language to the "ckb" or "ku" code?

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

      Thank You Amin Samad! Follow this link: pub.dev/packages/kurdish_localization
      I hope you will get your answer 🙂

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

    Very nice.

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

      Thank you, abbas jafary! 🙂

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

    Thanks a lot ! .. i couldnt reatch github link to get the source code.

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

      Hey, @whitebracket 🙂 make sure to subscribe on github to access code

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

    It's also supposed in Web?. how to change language with the help of pop up. Boz it's define the Mobil local language only

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

      Thank You Jayamurugan J! Follow this link: docs.flutter.dev/development/accessibility-and-localization/internationalization
      I hope you will get your answer 🙂

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

    Hi! I have question? How much it cost to add multi languages program in a new developing app?

  • @pritomchaki4461
    @pritomchaki4461 2 года назад +2

    is it incomplete video? u did not show how to change language from the app..by clicking button

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

      @@HeyFlutter Thanks for the excellent video, I would also like to know how to change the language from within the app, I think it's the only thing missing from it.

    • @HeyFlutter
      @HeyFlutter  Год назад +1

      Thank you, Pritom Chaki! 🙂. I have explained all the important things related to the topic in this video

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

    Bro..This is a nice tutorial but you didn't mention somethings...like are we the one that's going to ask the user what language he wants the app in with a pop up or is playstore already going to provide the appropriate language as they download the app from Google play?
    I have already figured this out though....I feel you should have mentioned how to implement also if you get the data from probably a local database not just static data in the arb file...though you used a username parameter...that's nice though...Also what other datatypes does that stuff support??...is it normal datatypes in flutter ??
    Hope you understand the question

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

      I think the following video will cover your requirement of letting a user change the language: ruclips.net/video/yrbaZgMtFQs/видео.html

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

      Thank You segga multi!. I showed the main functionality, which is important for this package. Learn more about it here: docs.flutter.dev/development/accessibility-and-localization/internationalization

  • @MuhammedFayis-bi6jw
    @MuhammedFayis-bi6jw Год назад

    how can i change the language of text which is coming from api?

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

      Hey 😊, @user-xn2or5te3i! Check out this package: pub.dev/packages/translator you can translate it on your end

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

    Can we change these languages using dropdown button,
    if Yes than how ?

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

      Hey, Taimoor Saleem 🙂 please follow this video : ruclips.net/video/z0ihUbwlSHs/видео.html

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

    sir please make a pdf to excel and excel to pdf converter app in flutter

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

    How to improve SEO in flutter plz tell sir

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

      Thank You shive52gaming! Follow this link: medium.com/mindful-engineering/flutter-web-seo-friendly-317528c29cc6#:~:text=Need%20to%20add%20keywords%20meta,making%20the%20website%20SEO%20friendly.
      I hope you will get your answer 🙂

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

    Why we have used intl package ?

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

      Thank You vishwajeet patil! Follow this link: pub.dev/packages/intl
      I hope you will get your answer 🙂

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

    Hi, How do i apply the same to ios?

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

      because xcode is just giving me like 6 languages

    • @HeyFlutter
      @HeyFlutter  Год назад +1

      Thank You Ali Dahud! Follow this link: medium.com/@lumeilin301/multi-language-in-flutter-ee393b298ec5
      I hope you will get your answer 🙂

  • @nasseralyahya1138
    @nasseralyahya1138 9 месяцев назад

    set playback speed to 0.75 for better catching

    • @HeyFlutter
      @HeyFlutter  9 месяцев назад

      Thanks for your feedback, @nasseralyahya1138! 🙂

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

    Just for you information not all people india knows hindi. And there are crores of people india who doesn't know hindi. And hindi is not an indian national language and it will never become one.
    hi sir, i follow your videos alot and they are very infomative.

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

      Thank you, for pointing it out yashwanth babu! 🙂 let's only focus on idea behind video and not on social concerns

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

      @@HeyFlutter yeah sure as usually this is also very informative video,Sir. These hindi speakers shows the racial discrimination not all of them but there are people. It's all about politics.
      Thank you for your response keep going with your great explanatory skills.

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

    share code....

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

      Thank You Elsevar!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware

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

    yeah the spelling of hindi is incorrect by the way...

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

      Sorry to hear that, EdenIsLive! 🙂

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

      @@HeyFlutter no worries great content though.

  • @user-lv3vo9ew2j
    @user-lv3vo9ew2j Год назад

    previuosly, you provided a free source code, and we share your videos but now you wasting out time to got the code!

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

      Thank you, زيزو الانطاكي! 🙂

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

    why do you have to add unnecessary stages in getting the source?? omg these ytbers tsk

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

      Thank You ʲᵒᵉ!. I showed the main functionality, which is important for this package. Learn more about it here: github.com/JohannesMilke/sponsorware

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

    Its hindi not hanidi

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

      Thanks for your feedback, RAHUL PRAJAPATI! 🙂

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

      @@HeyFlutter welcome brother

  • @zakariaelaaliji7747
    @zakariaelaaliji7747 9 дней назад +1

    no israel, free palestine !

    • @HeyFlutter
      @HeyFlutter  7 дней назад

      Thank you, @zakariaelaaliji7747! 🙂

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

    bro nice video, but I just can't stand your voice man. Please add captions

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

    Hi Johannes,
    danke, dass du dieses Video hochgeladen hast.
    leider funktioniert es bei mir nicht weil ich folgende Fehlermeldung habe:
    AppLocalizations lookupAppLocalizations(Locale locale) {
    // Lookup logic when only language code is specified.
    switch (locale.languageCode) {
    case 'en': return AppLocalizationsEn();
    case 'es': return AppLocalizationsEs();
    }
    throw FlutterError(
    'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
    'an issue with the localizations generation tool. Please file an issue '
    'on GitHub with a reproducible sample app and the gen-l10n configuration '
    'that was used.'
    );
    }
    habe im Internet bereits geschaut aber leider ist die Lösung für mich leider nicht ersichtlich.
    Ist dir dieses Problem bekannt?
    Hast du nen Tipp um das Problem zu lösen ?
    mit besten grüßen und mach weiter so !!!
    Brian