UNPKG

trainingproject

Version:

A module to teach you how to module.

16 lines (15 loc) 307 B
"use strict"; module.exports = function i18nExtend(i18n, lookup) { if (lookup) { return { get: function (key) { return i18n.has(key) ? i18n.__(key) : lookup.get(key); } }; } return { get: function (key) { return i18n.has(key) ? i18n.__(key) : null; } }; };