Skip to content

Commit

Permalink
Change data.json to data.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Visya committed Dec 1, 2016
1 parent 525a16c commit 99f9f6c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions data.json → data.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[
module.exports = [
{"name":"Abkhaz", "local":"аҧсуа бызшәа", "1":"ab", "2":"abk", "2T":"abk", "2B":"abk", "3":"abk"},
{"name":"Afar", "local":"Afaraf", "1":"aa", "2":"aar", "2T":"aar", "2B":"aar", "3":"aar"},
{"name":"Afrikaans", "local":"Afrikaans", "1":"af", "2":"afr", "2T":"afr", "2B":"afr", "3":"afr"},
Expand Down Expand Up @@ -183,4 +183,5 @@
{"name":"Yoruba", "local":"Yorùbá", "1":"yo", "2":"yor", "2T":"yor", "2B":"yor", "3":"yor"},
{"name":"Zhuang", "local":"Saɯ cueŋƅ", "1":"za", "2":"zha", "2T":"zha", "2B":"zha", "3":"zha"},
{"name":"Zulu", "local":"isiZulu", "1":"zu", "2":"zul", "2T":"zul", "2B":"zul", "3":"zul"}
]
];

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var data = require('./data.json');
var data = require('./data');

var langs = {
all: allLanguages,
Expand Down
2 changes: 1 addition & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ suite('langs:', function () {
var kor = {};

setup(function () {
data = require('./data.json');
data = require('./data');
eng = data[40];
kor = data[85];
});
Expand Down

0 comments on commit 99f9f6c

Please sign in to comment.