Lines Matching refs:y18n
1 # y18n chapter
16 const __ = require('y18n')().__;
28 const __ = require('y18n')().__;
42 const __n = require('y18n')().__n;
53 As of `v5` `y18n` supports [Deno](https://github.com/denoland/deno):
56 import y18n from "https://deno.land/x/y18n/deno.ts";
58 const __ = y18n({
78 ### require('y18n')(config)
80 Create an instance of y18n with the config provided, options include:
89 ### y18n.\_\_(str, arg, arg, arg)
97 ### y18n.\_\_n(singularString, pluralString, count, arg, arg, arg)
102 ### y18n.setLocale(str)
106 ### y18n.getLocale()
110 ### y18n.updateLocale(obj)
124 [npm-url]: https://npmjs.org/package/y18n
125 [npm-image]: https://img.shields.io/npm/v/y18n.svg