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

Provide a parameter that can support multi-arb folder. #95

Open
dodatw opened this issue Dec 1, 2022 · 0 comments
Open

Provide a parameter that can support multi-arb folder. #95

dodatw opened this issue Dec 1, 2022 · 0 comments

Comments

@dodatw
Copy link

dodatw commented Dec 1, 2022

I'm facing a classic problem that packages don't support international translations.
Please refer to: localizely/flutter-intl-intellij#22

I moved some common functionality into some packages, but it can't have its own translations.
Only app projects have translations because
"The application cannot load multiple delegate files because a CompositeMessageLookup has already been instantiated"

I found that if I copy the translation strings from the package to the main project it works. (because these translations are added when the application CompositeMessageLookup is initialized)

But I don't want copy manually everytime, I have an idea, is it possible to support multiple arb folders so that the main app can have all translation?

Something like:

flutter_intl:
  enabled: true
  other_arb_dirs: package/moduleA/l10n, package/moduleB/l10n
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

No branches or pull requests

1 participant