-
Notifications
You must be signed in to change notification settings - Fork 29
/
test.js
49 lines (33 loc) · 1.58 KB
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
var lib = require('./index.js');
console.log('~~~~~~~~~~~~~ getCountries');
console.log(lib.getCountries());
console.log('~~~~~~~~~~~~~ getLanguages');
console.log(lib.getLanguages());
console.log('~~~~~~~~~~~~~ getLanguageFamilies');
console.log(lib.getLanguageFamilies());
console.log('~~~~~~~~~~~~~ getCountry');
console.log(lib.getCountry('IN'));
console.log('~~~~~~~~~~~~~ getLanguage');
console.log(lib.getLanguage('en'));
console.log('~~~~~~~~~~~~~ getCountryLanguages');
console.log(lib.getCountryLanguages('IN'));
console.log('~~~~~~~~~~~~~ getLanguageCountries');
console.log(lib.getLanguageCountries('en'));
console.log('~~~~~~~~~~~~~ getCountryMsLocales');
console.log(lib.getCountryMsLocales('in'));
console.log('~~~~~~~~~~~~~ getLanguageMsLocales');
console.log(lib.getLanguageMsLocales('en'));
console.log('~~~~~~~~~~~~~ getLanguageFamilyMembers');
console.log(JSON.stringify(lib.getLanguageFamilyMembers('Austronesian'), null, 2));
console.log('~~~~~~~~~~~~~ getLanguageCodes');
console.log(JSON.stringify(lib.getLanguageCodes(3), null, 2));
console.log('~~~~~~~~~~~~~ getCountryCodes');
console.log(JSON.stringify(lib.getCountryCodes(), null, 2));
console.log('~~~~~~~~~~~~~ languageCodeExists');
console.log(JSON.stringify(lib.languageCodeExists('en'), null, 2));
console.log('~~~~~~~~~~~~~ countryCodeExists');
console.log(JSON.stringify(lib.countryCodeExists('gr'), null, 2));
console.log('~~~~~~~~~~~~~ getLocales()');
console.log(JSON.stringify(lib.getLocales(), null, 2));
console.log('~~~~~~~~~~~~~ getLocales(true)');
console.log(JSON.stringify(lib.getLocales(true), null, 2));