Closed SankethBK closed 1 year ago
I can work on this
Hey @bibekpanda55 , @micedreams is working on this. we have some more open issues, see if you can pick any. You can raise new issues if you find any bug, or have ideas for enhancement or new features
@bibekpanda55 you can take it....
Sure, assigning this to you @bibekpanda55
Thanks for assigning the issue . Will work on it and create a PR asap. If you just elaborate on the steps to follow that would help.
@bibekpanda55 you can find the detailed guide here: https://docs.flutter.dev/ui/accessibility-and-localization/internationalization.
For changing language from within the app, i will add more details. (I will create separate issue for this as it could be too much code)
For this issue, we can just add support for english, we can add more languages later.
Adding the steps for reference.
flutter_localizations
and intl
packages.localizationsDelegates
and add Locale('en')
to supportedLocales
array/lib/l10n
folder at the root of the project. Create app_en.arb
and extract out all hardcoded strings throughout the code into this file. arb
fileFeel free to join our discord server if you need help with anything
Thanks for the description. Will work on it and get back to you.Also will I have to create a separate branch for this or work on the master branch itself. Also there are already a few bugs on the main branch right?
you can fork the repo, make changes to your master branch and raise PR against this repo's master branch.
Also there are already a few bugs on the main branch right?
you mean bugs related to setup?
@bibekpanda55 please confirm if you're working on this
Yes have been busy lately. Will work on it and give you an update by tomorrow
No worries, thanks for confirming
you mean bugs related to setup?
Yes some packages are missing from the flutter_quill folder like the html,image_picker etc. Should I all that to pubspec.yaml file or what?
you mean bugs related to setup?
Yes some packages are missing from the flutter_quill folder like the html,image_picker etc. Should I all that to pubspec.yaml file or what?
Hi, this feels unrelated to this issue. Please raise a new issue.
Could be because of Flutter version, can you please share the output of flutter doctor
command
Those packages are added in flutter_quill
's pubspec.yaml,
we don't need to add them to root folder's pubspec.yaml
. Let us know If you are facing any issues on running flutter pub get
and flutter run
Flutter doctor doesn't shows any issues . You can check the packages/flutter_quill/flutter_quill_extensions/lib/embeds/toolbar/image_button.dart file for example
Try running flutter pub get
, it should install those packages. I don't see any errors in the file you mentioned
Flutter doctor doesn't shows any issues
Can you share the output of flutter --version
, some packages depend on the Flutter version
I was running pub get on the outside folder , so there were package issues.The issue got resolved after running pub get in the required folder. Thanks for helping out
Thanks for sharing, we'll add it in setup instructions
Also if you could specify few files or overall folder to extract the raw strings from that would help.As there are too may folders that's creating a bit confusion
@bibekpanda55 you can do a global search with this regex Text\(['|"].*
and exclude the packages/ folder.
Got it thanks will do
Use
flutter_localizations
/l10n
for adding multi-language support. Currently hardcoded strings are scattered throughout the app, need to find them and translations.By default it should use language as device's language. If the device's language is not supported, English should be used.