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

reload componentn when language changed #513

Open
bluelemonade opened this issue Jan 10, 2023 · 0 comments
Open

reload componentn when language changed #513

bluelemonade opened this issue Jan 10, 2023 · 0 comments

Comments

@bluelemonade
Copy link

bluelemonade commented Jan 10, 2023

how can i force a reload of the componente when i change the language on the page in a floater.
Is there a function to do this?

<vue-plyr :options="optionsAudio" ref="vplyraudio2" @play="vPlayCheck('audio2')" >
        <audio controls crossorigin playsinline>
              <source
                   :src="'/mp3/' + audiobasename' + '_' + store.state.language + '.mp3'"
                   type="audio/mp3"
              />  
        </audio>
</vue-plyr>  

I tried to use :key="store.state.language", but with each language change, the old language remains, but without the global css style for plyr

image

image

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

No branches or pull requests

1 participant