Closed matthewlawson closed 9 years ago
Using this strategy to setup localisation the url will not be set correctly in the first _fetchLanguage call.
_fetchLanguage
<script> document.addEventListener('HTMLImportsLoaded', function() { I18nMsg.url = "/locales"; I18nMsg.lang = 'es'; }); </script>
This pull request sets language after the messagesUrl so that when the languages observer is triggered the messageUrl will be correct and load the correct translation file.
LGTM. Thanks.
Using this strategy to setup localisation the url will not be set correctly in the first
_fetchLanguage
call.This pull request sets language after the messagesUrl so that when the languages observer is triggered the messageUrl will be correct and load the correct translation file.