Prohibit i18n functions outside of Composable layer
From !240 (merged):
-
@ialokim started a discussion: (+7 comments) The problem with using those
i18n
calls outside of the Compose-world is that they probably won't be re-created when the language is changed (this triggers a recomposition of the whole window, but ViewModels and thus Items will be re-used). Now that I'm seeing this, it should probably be a rule not to usei18n
methods outside of Composables.
Perhaps we could force the usage of
i18n
functions only inside composables by actually marking those as@Composable
as well?🤔