Ignore:
Timestamp:
11/25/21 22:08:24 (3 years ago)
Author:
Ema <ema_spirova@…>
Branches:
master
Children:
8d391a1
Parents:
59329aa
Message:

primeNG components

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trip-planner-front/node_modules/y18n/README.md

    r59329aa re29cc2e  
    11# y18n
    22
     3[![Build Status][travis-image]][travis-url]
     4[![Coverage Status][coveralls-image]][coveralls-url]
    35[![NPM version][npm-image]][npm-url]
    46[![js-standard-style][standard-image]][standard-url]
     
    1416
    1517```js
    16 const __ = require('y18n')().__;
     18var __ = require('y18n').__
    1719
    18 console.log(__('my awesome string %s', 'foo'));
     20console.log(__('my awesome string %s', 'foo'))
    1921```
    2022
     
    2628
    2729```js
    28 const __ = require('y18n')().__;
     30var __ = require('y18n').__
     31var str = 'foo'
    2932
    30 const str = 'foo';
    31 
    32 console.log(__`my awesome string ${str}`);
     33console.log(__`my awesome string ${str}`)
    3334```
    3435
     
    4041
    4142```js
    42 const __n = require('y18n')().__n;
     43var __n = require('y18n').__n
    4344
    44 console.log(__n('one fish %s', '%d fishes %s', 2, 'foo'));
     45console.log(__n('one fish %s', '%d fishes %s', 2, 'foo'))
    4546```
    4647
     
    4849
    4950`2 fishes foo`
    50 
    51 ## Deno Example
    52 
    53 As of `v5` `y18n` supports [Deno](https://github.com/denoland/deno):
    54 
    55 ```typescript
    56 import y18n from "https://deno.land/x/y18n/deno.ts";
    57 
    58 const __ = y18n({
    59   locale: 'pirate',
    60   directory: './test/locales'
    61 }).__
    62 
    63 console.info(__`Hi, ${'Ben'} ${'Coe'}!`)
    64 ```
    65 
    66 You will need to run with `--allow-read` to load alternative locales.
    6751
    6852## JSON Language Files
     
    11296Update the current locale with the key value pairs in `obj`.
    11397
    114 ## Supported Node.js Versions
    115 
    116 Libraries in this ecosystem make a best effort to track
    117 [Node.js' release schedule](https://nodejs.org/en/about/releases/). Here's [a
    118 post on why we think this is important](https://medium.com/the-node-js-collection/maintainers-should-consider-following-node-js-release-schedule-ab08ed4de71a).
    119 
    12098## License
    12199
    122100ISC
    123101
     102[travis-url]: https://travis-ci.org/yargs/y18n
     103[travis-image]: https://img.shields.io/travis/yargs/y18n.svg
     104[coveralls-url]: https://coveralls.io/github/yargs/y18n
     105[coveralls-image]: https://img.shields.io/coveralls/yargs/y18n.svg
    124106[npm-url]: https://npmjs.org/package/y18n
    125107[npm-image]: https://img.shields.io/npm/v/y18n.svg
Note: See TracChangeset for help on using the changeset viewer.