-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Support 'deferred loading' #135
Comments
Flutter has this feature but it seems that we cannot check if the library is loaded yet. Only The logic would be |
We can just load the and together, (if target locale === base locale, then only need to load one locale file). If the user switches to another locale, just load that file. |
yes, but what should |
the < base locale > is always loaded, just use the < base locale >'s tranlation. after other tranlsation's is downloaded, reload the correct translations. Is that ok? |
Thinking about this again, I think that this is technically possible. But don't expect this feature soon as I don't have much time for this. |
Added in |
When using Flutter Web, all the translations go into
main.dart.js
, making this file very big. So the web app loads very slowly the first time user opens it. But most users will only use one (two at most) translations.Is Slang support
deferred loading
? making each translation into separate files, only loading them if neededThe text was updated successfully, but these errors were encountered: