Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/translation #206

Merged
merged 17 commits into from
Jun 28, 2024
Merged

Feat/translation #206

merged 17 commits into from
Jun 28, 2024

Conversation

jhomlala
Copy link
Owner

@jhomlala jhomlala commented Jun 28, 2024

Changelog:

  • Added AliceTranslations class which acts as translation registry. We can't use localization delegate because we're not using MaterialApp widget.
  • Added context.i18n extension to access translations
  • Added tests

@jhomlala jhomlala marked this pull request as ready for review June 28, 2024 16:19
@jhomlala
Copy link
Owner Author

@techouse Could you check it please?

@techouse
Copy link
Collaborator

Looks good at first glance, I just wonder why you didn't opt for something like https://pub.dev/packages/easy_localization and JSON files.

@jhomlala
Copy link
Owner Author

jhomlala commented Jun 28, 2024

I'm trying to not using deps for problems which I can easily handle. Less deps = more maintainable code. Also easy_localization requires using assets which could be hard in package.

@techouse
Copy link
Collaborator

LGTM then :)

…translation

# Conflicts:
#	packages/alice/lib/core/alice_core.dart
#	packages/alice/lib/helper/alice_save_helper.dart
@jhomlala jhomlala merged commit ce2f771 into master Jun 28, 2024
2 checks passed
@jhomlala jhomlala deleted the feat/translation branch June 28, 2024 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants