Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(TranslateService): compile translations only once #956

Merged
merged 1 commit into from
Nov 14, 2018

Conversation

saithis
Copy link
Contributor

@saithis saithis commented Nov 5, 2018

fixes #955

@saithis
Copy link
Contributor Author

saithis commented Nov 9, 2018

@ocombe Can you please take a look at this? Because of this bug our app is unresponsive for ~5 seconds only compiling the messages over and over again when the initial page the user opens has many keys.

@artuska
Copy link

artuska commented Nov 14, 2018

@saithis This is an amazing pull request, thank you! This bug you've fixed ruined my Cordova web app — everything was fast in my browser on localhost but when i built my app and opened it on mobile phone I've been waiting ~15 seconds for my app to start :)

@ocombe ocombe merged commit 920b95d into ngx-translate:master Nov 14, 2018
@ocombe
Copy link
Member

ocombe commented Nov 14, 2018

that's a great PR, thanks!

@ocombe
Copy link
Member

ocombe commented Nov 14, 2018

Available in 11.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Messages are compiled multiple times on initial load
3 participants