Sha256: 8030e0c1df1087dc48a8a436f1c2568ddec4bdb0222b584efa8dced5efeb80d0

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

define(["dojo/_base/kernel", "dojo/i18n!./nls/amdBundle"], function(dojo, amdBundle){
	var result = [];

	if(amdBundle.rootValueOnly!="rootValueOnly"){
		result.push('amdBundle.rootValueOnly!="rootValueOnly"');
	}
	switch(dojo.locale){
		case "ab":
		case "ab-cd":
			if(amdBundle.amdBundle!="amdBundle-ab"){
				result.push('amdBundle.amdBundle!="amdBundle-ab"');
			}
			if(amdBundle.abValueOnly!="abValueOnly"){
				result.push('amdBundle.abValueOnly!="abValueOnly"');
			}
			break;
		case "ab-cd-ef":
			if(amdBundle.amdBundle!="amdBundle-ab-cd-ef"){
				result.push('amdBundle.amdBundle!="amdBundle-ab-cd-ef"');
			}
			if(amdBundle.abValueOnly!="abValueOnly"){
				result.push('amdBundle.abValueOnly!="abValueOnly"');
			}
			if(amdBundle.abCdEfValueOnly!="abCdEfValueOnly"){
				result.push('amdBundle.abCdEfValueOnly!="abCdEfValueOnly"');
			}
			break;
		default:
			if(amdBundle.amdBundle!="amdBundle"){
				result.push('amdBundle.amdBundle!="amdBundle"');
			}
	}


	var i18n= require("dojo/i18n");
	for(var p in i18n._cache) console.log(p);

	return {
		result:result.length==0 ? true : result.join(";")
	};
});

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dojo_rails-0.0.2 vendor/assets/javascripts/dojo/tests/_base/loader/i18n-exhaustive/i18n-test/amdModule.js
dojo_rails-0.0.1 vendor/assets/javascripts/dojo/tests/_base/loader/i18n-exhaustive/i18n-test/amdModule.js