What is the best way to get current locale for android and iOS?

1,040 views
Skip to first unread message

Niyazi Toros

unread,
May 25, 2018, 4:56:36 AM5/25/18
to Flutter Dev
Hi,

I have a Flutter Project and need to get user locale so, my first question is.

           1) What is the best way to get current locale for android and iOS?

I have a Flutter Project and with user locale it loads the supported internationalisation using json language file. So my second question is:
Examples:
      My project supports en, tr and ru. Default project locale is en. If the user locale tr or ru all the menus and the text will be converted to 
      user language using language json file.

           2) How to support internationalisation using json format for languages?

Any good demo, example will be appreciated.

Thanks

Eric Seidel

unread,
Aug 1, 2018, 2:03:00 PM8/1/18
to Niyazi Toros, Flutter Dev
This should all be covered in https://flutter.io/tutorials/internationalization/ including a very small demo:

Let us know if that doesn't answer your questions!

--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages