Solution to #48, alternative approach to the one in #49.
Solution in mentioned PR requires to add usei18n(translator, ns) in each module to allow using update_lang. Proposed one allows to add usei18n only once in the app. If update_lang is called in a module session argument is of class session_proxy. To make sendInputMessage work (not to use namespace) a root session has to be used which can be accesses using session$rootScope()
Solution to #48, alternative approach to the one in #49.
Solution in mentioned PR requires to add
usei18n(translator, ns)
in each module to allow usingupdate_lang
. Proposed one allows to addusei18n
only once in the app. Ifupdate_lang
is called in a modulesession
argument is of classsession_proxy
. To makesendInputMessage
work (not to use namespace) a root session has to be used which can be accesses usingsession$rootScope()