You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have found kind of a solution if someone has the same issue. It works well but i have a feeling that this can be done a lot easier. So in the script tag the code is:
So i thought making separate translation files for each .js file that i have cause they are very big. So in my html page my code looks like this:
<script > $.i18n().locale = 'en'; $.i18n().load( ["i18n/access.json", "i18n/example.json", "i18n/index.json"] ).done( () => $('[data-i18n]').i18n() ); </script>Obviously this array import method does not work, so how can i do this?
Also while im here, is there a more effective way of getting the html tags translate tan the method in the .done block?
Thanks
The text was updated successfully, but these errors were encountered: