Package Exports
- icu-pseudo-translate
- icu-pseudo-translate/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (icu-pseudo-translate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
icu-pseudo-translate
Třáñƨℓáƭè ÌÇÛ ₥èƨƨáϱè ƨƭřïñϱƨ ïñƭô ƥƨèδúô-ƭřáñƨℓáƭèδ ÌÇÛ ₥èƨƨáϱè ƨƭřïñϱƨ.
install
yarn add icu-pseudo-translate
# or, probably..
yarn add icu-pseudo-translate --devuse
const { pseudoTranslate } = require('icu-pseudo-translate');
pseudoTranslate(`On {takenDate, date, short} {name} took {numPhotos, plural,
=0 {no photos.}
=1 {one photo.}
other {# photos.}}`);
/**
outputs
`Óñ {takenDate, date, short} {name} ƭôôƙ {numPhotos, plural,
=0 {ñô ƥhôƭôƨ.}
=1 {ôñè ƥhôƭô.}
other {# ƥhôƭôƨ.}}`
*/credits
- translator and printer taken largely from yahoo/react-intl examples
- character map from mr-White/gulp-pseudo-translate-angular-json