You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have both a library project/package which has some translations and an application (using this library) that also has translations.
The directory structure looks roughly like this
Library/
lib/
assets/locales/*.po
App/
lib/main.dart
assets/locales/*.po
Both the library project and the app project have a
but when calling the loadTranslations of the Library, it seems to read the *.po files from the assets/locales directory of the App.
How can I indicate hat it should read from the "assets/locales" directory of the library project?
Do you have a fix for my setup or suggestions on how to improve my setup?
For example, is it somehow possible to indicate the package when loading assets? Similar to Image.asset() which has a package property.
Also loading GettextImporter().fromAssetDirectory("packages/<library package name>/assets/locales"); seems to have no effect
The text was updated successfully, but these errors were encountered:
Sorry, using GettextImporter().fromAssetDirectory("packages/<library package name>/assets/locales") does work.
If you happen to have suggestions to improve my setup/structure, please let me know. Otherwise, feel free to close this issue.
I have both a library project/package which has some translations and an application (using this library) that also has translations.
The directory structure looks roughly like this
Both the library project and the app project have a
but when calling the loadTranslations of the Library, it seems to read the *.po files from the assets/locales directory of the App.
How can I indicate hat it should read from the "assets/locales" directory of the library project?
Do you have a fix for my setup or suggestions on how to improve my setup?
For example, is it somehow possible to indicate the package when loading assets? Similar to Image.asset() which has a package property.
Also loading
GettextImporter().fromAssetDirectory("packages/<library package name>/assets/locales");
seems to have no effectThe text was updated successfully, but these errors were encountered: