vue-plyr icon indicating copy to clipboard operation
vue-plyr copied to clipboard

reload componentn when language changed

Open bluelemonade opened this issue 2 years ago • 0 comments

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

bluelemonade avatar Jan 10 '23 15:01 bluelemonade