Package that provides unofficial support for Turkmen (Turkmenistan) language for Flutter.
Solves the problem with the lack of support for Turkmen (Turkmenistan) localization in an application written in Flutter.
- Import library;
- Add the required delegates.
Simple example of usage:
return MaterialApp(
// This should be mutable
locale: Locale('tk'),
supportedLocales: [Locale('tk')],
// Delegates should be placed here
localizationsDelegates: [
// Some other delegates here
// Add this line
...TkDelegates.delegates,
],
theme: ThemeData.light(),
home: const Scaffold(),
);
You still could use one of delegates directly, if there is no need in one of them (example: if built only for Android, consider to use TkMaterialLocalization directly).
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.
- Fork it (https://github.com/AtamyratBabayev/turkmen_localization_support/fork)
- Create your feature branch (git checkout -b feature/fooBar)
- Commit your changes (git commit -am 'Add some fooBar')
- Push to the branch (git push origin feature/fooBar)
- Create a new Pull Request