diff options
Diffstat (limited to 'deps/npm/node_modules/cacache/node_modules/y18n/README.md')
-rw-r--r-- | deps/npm/node_modules/cacache/node_modules/y18n/README.md | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/deps/npm/node_modules/cacache/node_modules/y18n/README.md b/deps/npm/node_modules/cacache/node_modules/y18n/README.md index 826474f209..9859458f20 100644 --- a/deps/npm/node_modules/cacache/node_modules/y18n/README.md +++ b/deps/npm/node_modules/cacache/node_modules/y18n/README.md @@ -4,7 +4,6 @@ [![Coverage Status][coveralls-image]][coveralls-url] [![NPM version][npm-image]][npm-url] [![js-standard-style][standard-image]][standard-url] -[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) The bare-bones internationalization library used by yargs. @@ -24,19 +23,6 @@ output: `my awesome string foo` -_using tagged template literals_ - -```js -var __ = require('y18n').__ -var str = 'foo' - -console.log(__`my awesome string ${str}`) -``` - -output: - -`my awesome string foo` - _pluralization support:_ ```js @@ -74,10 +60,6 @@ Create an instance of y18n with the config provided, options include: Print a localized string, `%s` will be replaced with `arg`s. -This function can also be used as a tag for a template literal. You can use it -like this: <code>__`hello ${'world'}`</code>. This will be equivalent to -`__('hello %s', 'world')`. - ### y18n.\_\_n(singularString, pluralString, count, arg, arg, arg) Print a localized string with appropriate pluralization. If `%d` is provided |