I am using the plugin in a language switcher. My default language is German (the German strings are in my index.html like <h1 data-translate="title">Title in German</h1>) and I have a language file content-en.js for the English translation.
What I now like to achieve is that when I click on $buttonDE not the German language file should be loaded but the normal strings in my index.html. So is there a function to just stop the plugin from loading a language file?
$buttonDE.click(function( e ) {
/* The regular strings in my `index.html` should be loaded. */
});
Hi,
I am using the plugin in a language switcher. My default language is German (the German strings are in my
index.html
like<h1 data-translate="title">Title in German</h1>
) and I have a language filecontent-en.js
for the English translation.The language can be switched on click:
What I now like to achieve is that when I click on
$buttonDE
not the German language file should be loaded but the normal strings in myindex.html
. So is there a function to just stop the plugin from loading a language file?Thanks for your help!