-
Notifications
You must be signed in to change notification settings - Fork 29
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
Switching back to no language file on click #10
Comments
Hey, this is currently not possible since text is just replaced and hence, lost. It'd be a good idea to save that text as current language so you can achieve what you imply here. I might work on this as I'd like to update this plugin to use newer tools and techniques but I can't promise when that might happen. |
Alright, thanks for the info! |
No, I mean saving it in memory so if the button for German is pressed, the content can be restored. |
Can you explain that a bit further – I don’t know what you mean with saving it in memory. Thanks! |
May I ask if you could give me a hint on that? |
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!
The text was updated successfully, but these errors were encountered: