Socket
Book a DemoInstallSign in
Socket

icu-pseudo-translate

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

icu-pseudo-translate

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

latest
Source
npmnpm
Version
4.0.0
Version published
Maintainers
1
Created
Source

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

  • translator and printer taken largely from yahoo/react-intl examples
  • character map from mr-White/gulp-pseudo-translate-angular-json

Keywords

translation

FAQs

Package last updated on 27 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts