nav tabs on admin dashboard

This commit is contained in:
2019-03-07 00:20:34 -06:00
parent f73d6ae228
commit e4f473f376
11661 changed files with 216240 additions and 1544253 deletions
Generated Vendored
+6 -5
View File
@@ -1,9 +1,10 @@
'use strict';
var invertKv = require('invert-kv');
var all = require('./lcid.json');
var inverted = invertKv(all);
const invertKv = require('invert-kv');
const all = require('./lcid.json');
exports.from = function (lcidCode) {
const inverted = invertKv(all);
exports.from = lcidCode => {
if (typeof lcidCode !== 'number') {
throw new TypeError('Expected a number');
}
@@ -11,7 +12,7 @@ exports.from = function (lcidCode) {
return inverted[lcidCode];
};
exports.to = function (localeId) {
exports.to = localeId => {
if (typeof localeId !== 'string') {
throw new TypeError('Expected a string');
}