diff options
Diffstat (limited to 'src/prettylang.js')
-rw-r--r-- | src/prettylang.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/prettylang.js b/src/prettylang.js new file mode 100644 index 0000000..5d782f4 --- /dev/null +++ b/src/prettylang.js @@ -0,0 +1,10 @@ +const langs = require('./languages.json');
+
+module.exports = (lang) => {
+ langs.forEach((l) => {
+ if (lang == l.code) {
+ ln = l.name;
+ }
+ })
+ return ln;
+}
\ No newline at end of file |