JSPM

i18next-pseudoloc

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q24275F
  • License MIT

Pseudo loc test plugin for i18next

Package Exports

  • i18next-pseudoloc
  • i18next-pseudoloc/es/index.js
  • i18next-pseudoloc/lib/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 (i18next-pseudoloc) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

i18next-pseudoloc

Pseudo Localization Test package that can test Latin Extended-A, limited Korean/Japanese/Thai character display

npm package

https://www.npmjs.com/package/i18next-pseudoloc

Install

$ npm i i18next-pseudoloc

Setting

import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import PseudoLoc from 'i18next-pseudoloc';
...
i18n
  .use(new PseudoLoc({
    lengther:1,
    enabled: true,
    enableCJK: true,
    sourceLocale: 'pt-BR', // pt-BR is only for PL Test
  }))
  .init({
    postProcess: ["pseudoloc"],
...

How to ready Pseudo Loc string

<긇<[Ŷṓṵ āŗė ėňḡĩňėėŗ, ŧĥėň ĉĥėĉķṓṵŧ ŧĥė ŗėṗṓ ṓϝ ŧĥĩş āṗṗḽĩĉāŧĩṓň。]>ヲ>
  • There are Latin character sentence opening and closing markers - <[ and ]>

  • There are Korean/Japanese/Thai opening and closing markers with random characters - <긇 and ヲ>

  • If the sentence has the .(period - fullstop), then it will be replaced with Japanese period -

  • If the sentence has the ?, then it will be replaced with Spanish inverted mark of interrogation - ¿

  • If the sentence has the ,(opening quotation), then it will be replaced with the German opening quotation -