Skip to content
This repository has been archived by the owner on Apr 5, 2023. It is now read-only.

AtamyratBabayev/turkmen_localization_flutter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Localization for turkmen language

Unfortunately, I didn't find any support for turkmen language, so I decided to add my own support, most of information you could find by going to: https://docs.flutter.dev/development/accessibility-and-localization/internationalization

Support for this repository is discontinued, see https://github.com/Mickey-A-Mouse/turkmen_localization_support

How to use it

return const MaterialApp(
  title: 'Localizations Sample App',
  localizationsDelegates: [
    TmMaterialLocalization.delegate, //add this one to add localization
    GlobalMaterialLocalizations.delegate,
    GlobalWidgetsLocalizations.delegate,
    GlobalCupertinoLocalizations.delegate,
  ],
  supportedLocales: [
     const Locale('tk', 'TM'), //Turkmenistan - turkmen language
     const Locale('ru', 'RU'), 
     const Locale('en', 'GB')  
  ],
  home: MyHomePage(),
);

A little note

Actually there are no any 'tm' language code here: https://www.iana.org/assignments/language-subtag-registry/language-subtag-registry. Support for Turkmen language is possible only by using 'tk' tag, magic :D.

Requirements

Flutter 2.0 Means that works with nullsafety.

LICENSE

MIT

About

Support for turkmen localization in flutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages