2019-08-25 02:39:20 -04:00
|
|
|
'use strict';
|
|
|
|
import fs from "fs";
|
|
|
|
import { resolve } from "path";
|
|
|
|
import { saveTests } from "..";
|
|
|
|
const testcases = [];
|
2020-01-06 19:00:55 -05:00
|
|
|
["cz", "en", "es", "fr", "it", "ja", "ko", "zh_cn", "zh_tw"].forEach((locale) => {
|
|
|
|
let content = fs.readFileSync(resolve(__dirname, "../../input/wordlists", "lang-" + locale + ".txt")).toString();
|
2019-08-25 02:39:20 -04:00
|
|
|
testcases.push({
|
|
|
|
content: content,
|
|
|
|
locale: locale
|
|
|
|
});
|
|
|
|
});
|
|
|
|
saveTests("wordlists", testcases);
|