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

Uncaught Attempt to change language to "th" but no language pack for that language is loaded! #139

Open
gulaykulekci opened this issue Feb 3, 2022 · 3 comments

Comments

@gulaykulekci
Copy link

Hi,

I'm getting error: Uncaught Attempt to change language to "th" but no language pack for that language is loaded!

My html codes like this :

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
    <meta http-equiv="cache-control" content="no-cache, must-revalidate, post-check=0, pre-check=0">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="pragma" content="no-cache">
  
 	<script src="/node_modules/jquery-lang-js/js/js.cookie.js" charset="utf-8" type="text/javascript"></script>
	<script src="/node_modules/jquery-lang-js/js/jquery-lang.js" charset="utf-8" type="text/javascript"></script>
	<!--<script src="js/langpack/nonDynamic.js" charset="utf-8" type="text/javascript"></script>-->
    

</head>

<body style="height: 100%;overflow-y: scroll;max-height: 100%;">
                                        <td class="thdr">
                                            <table class="tblFuels" style="width:100%;">
                                                <thead>
                                                    <tr>
                                                        <th lang="en" data-lang-token="tarih">tarih</th>
                                                        <th lang="en" data-lang-token="ilkseviye">ilkseviye</th>
                                                        <th lang="en" data-lang-token="sonseviye">sonseviye</th>
                                                        <th lang="en" data-lang-token="fark">fark</th>
                                                        <th lang="en" data-lang-token="kilometre">kilometre</th>
                                                        <th lang="en" data-lang-token="adres">adres</th>
                                                    </tr>
                                                </thead>
                                                <tbody id="aTbl"></tbody>
                                            </table>
                                        </td>         
                     
    <script type="text/javascript" src="/spassets/journey-analize-report/js/mainscript.js"></script>
    <script type="text/javascript">
		var lang = new Lang();
        
		lang.dynamic('en', '/spassets/common/_langs/journey-analize-report-en.json');
		lang.dynamic('tr', '/spassets/common/_langs/journey-analize-report-tr.json');

		lang.init({
			defaultLang: 'en'
		});
	</script>
</body>

</html>

My language file:

{
	"token": {
		"yaziciyagonder": "Send to Printer",
		"hareketraporu": "Motion Report",
		"yoltarifi": "Way Direction",
		"seferanalizraporu": "Voyage Analysis Report",
		"plaka": "Plate",
		"marka": "Trademark / Mark ",
		"surucu": "Driver",
		"tarih": "Date",
		"kilometre": "Kilometer",
         }
}
@Irrelon
Copy link
Owner

Irrelon commented Feb 4, 2022

Hey ya! Are you able to put up a minimum proof of error online so I can take a look and debug?

@JayDew
Copy link

JayDew commented Feb 19, 2023

I also get the same error

@Irrelon
Copy link
Owner

Irrelon commented Feb 22, 2023

I also get the same error

Same request, are you able to put up a minimum proof of error online so I can take a look and debug?

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