Skip to content

Translation not working #12

@jonteohr

Description

@jonteohr

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions