JSPM

icu-pseudo-translate

4.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 67
  • Score
    100M100P100Q79947F
  • License MIT

Translate ICU message strings into pseduo-translated ICU message strings.

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 --dev

use

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