Chore: Load translations dynamically #828
gmaclennan
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Current behavior:
Mapeo Mobile loads all language translations into memory on app start. As the number of translations increases this has a cost for app load time and has an impact on app memory usage. This is particularly important on low-end phones with limited memory: we want to keep Mapeo Mobile memory usage to an absolute minimum.
Desired behavior:
Load languages dynamically when the user changes language. Current use of
require()
bundles everything into a single JS bundle that is loaded at startup. I see two solutions:react-native-fs
when the user changes languageBeta Was this translation helpful? Give feedback.
All reactions