angular-gettext
                                
                                 angular-gettext copied to clipboard
                                
                                    angular-gettext copied to clipboard
                            
                            
                            
                        Broadcast fired twice
I am listening on language changes. I do a setLanguage and then a loadRemote to load up a new language. However, both fire a broadcast by calling broadcastUpdated().
- setCurrentLanguage https://github.com/rubenv/angular-gettext/blob/8959f4457033f49884a65038b91da2cfe21a5a9b/src/catalog.js#L139
- setString https://github.com/rubenv/angular-gettext/blob/8959f4457033f49884a65038b91da2cfe21a5a9b/src/catalog.js#L163
My follow-up action includes communication with backend, which is happening twice then.
I see 2 options, either we skip the broadcast in setStrings or we apply a setCurrentLanguage in setStrings.