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

Translation not working #12

Open
jonteohr opened this issue Mar 30, 2018 · 2 comments
Open

Translation not working #12

jonteohr opened this issue Mar 30, 2018 · 2 comments

Comments

@jonteohr
Copy link

I have been trying to get this to work for hours now and I just cannot seem to get it working.

Is translate.js outdated?

Code:

<html>
<head>
	<title>Translation test</title>
</head>
<body>
	
	<h1 class="trn">test</h1>

	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
	<script src="jquery.translate.js"/>
	<script type="text/javascript">
		var dict = {
			"test": {
				en: "This is the translation"
			}
		}

		$('body').translate({lang: "en", t: dict}); //use English

	</script>
</body>
</html>
@Cedric-M
Copy link

Cedric-M commented Apr 13, 2018

Hello !

It still works I used it recently, please take a look to the Source code of the Live demo for more details, don't hesitate to ask me if you square up to any problem,

Have a nice day !

@utamilah
Copy link

utamilah commented Jan 4, 2019

I wonder if you were having the same issue as me: Issue 14

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

3 participants