xyz_config 0.20.0
xyz_config: ^0.20.0 copied to clipboard
This package allows you to add configurations and language support to your apps.
π½πΎπΏ Config #
This package allows you to add configurations and language support to your apps.
Quickstart #
- Create a translations file at
your_flutter_project/assets/translations/en_US.yaml:
greetings:
HelloWorld: Hello World!
- Access the translations in your app:
final translationFileReader = TranslationFileReader(
translationsDirPath: ["translations"],
fileType: ConfigFileType.YAML,
fileReader: (filePath) => rootBundle.loadString(filePath),
);
await translationFileReader.read("en_US");
print("greetings.HelloWorld".tr());
Documentation #
π Documentation and video tutorials are coming soon. Feel free to contact me for more information.
Installation #
Add this to your pubspec.yaml file:
dependencies:
xyz_config: any # or the latest version
Contributing #
Contributions are welcome. Here are a few ways you can help:
- Report bugs and make feature requests.
- Add new features.
- Improve the existing code.
- Help with documentation and tutorials.
License #
This project is released under the MIT License. See LICENSE for more information.
Contact #
Author: Robert Mollentze
Email: robmllze@gmail.com