UNPKG
trainingproject
Version:
latest (1.0.0)
1.0.0
A module to teach you how to module.
github.com/npm/how-to-npm
npm/how-to-npm
trainingproject
/
node_modules
/
workshopper-adventure
/
lib
/
modifiers
/
language.js
11 lines
(10 loc)
•
220 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
exports
.
aliases
= [
'l'
,
'lang'
]
exports
.
filter
=
require
(
'../langFilter'
)
exports
.
handler
=
function
(
shop, lang
) {
try
{ shop.
i18n
.
change
(lang) }
catch
(e) {
console
.
log
(e.
message
) process.
exit
(
1
) } }