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: ngx translate pipe not refreshed when lang changed #3189

Merged
merged 1 commit into from
Apr 3, 2023

Conversation

gilsdav
Copy link
Contributor

@gilsdav gilsdav commented Apr 3, 2023

Get new value when lang change.

PS: Is there a way to know when a lang is newly fetched when we use devtools update ?

@stepan662
Copy link
Collaborator

Hey, yeah you can listen for cache changes:

tolgee.on('cache', (data) => {
  console.log(data);
})

@JanCizmar JanCizmar changed the title fix: ngx translate pipe not refreshed when lang changed. fix: ngx translate pipe not refreshed when lang changed Apr 3, 2023
@JanCizmar JanCizmar merged commit 5381741 into tolgee:main Apr 3, 2023
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.

4 participants