'use strict' const path = require('path') const yargs = require('yargs') const y18n = require('y18n')({ directory: path.join(__dirname, 'locales'), locale: yargs.locale(), updateFiles: process.env.NPX_UPDATE_LOCALE_FILES === 'true' }) module.exports = yTag function yTag (parts) { let str = '' parts.forEach((part, i) => { str += part if (arguments.length > i + 1) { str += '%s' } }) return y18n.__.apply(null, [str].concat([].slice.call(arguments, 1))) }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
locales | Folder | 0755 |
|
|
CHANGELOG.md | File | 27.48 KB | 0644 |
|
LICENSE.md | File | 755 B | 0644 |
|
README.md | File | 6.31 KB | 0644 |
|
auto-fallback.js | File | 1.51 KB | 0644 |
|
child.js | File | 2.2 KB | 0644 |
|
get-prefix.js | File | 1.23 KB | 0644 |
|
index.js | File | 12.62 KB | 0644 |
|
libnpx.1 | File | 6.7 KB | 0644 |
|
package.json | File | 9.18 KB | 0644 |
|
parse-args.js | File | 7.1 KB | 0644 |
|
util.js | File | 390 B | 0644 |
|
y.js | File | 490 B | 0644 |
|