poe-i18n
TypeScript icon, indicating that this package has built-in type declarations

0.12.0 • Public • Published

poe-18n

Build Status Coverage Status npm version dependencies Status devDependencies Status Greenkeeper badge

i18n utility for Path of Exile@3.3.0 with minimal dependencies.

Install

$ npm install --save poe-i18n

Usage

The package provides translations that are currently support by the game client. Additional languages can be used but I'm not planning on maintaining languages that I can't parse from the game data.

import { formatStats } from 'poe-i18n';
import stat_descriptions from 'poe-i18n/locale-data/en/stat_descriptions.json'
 
const merciless_translation: string[] = formatStats(
  [{ id: 'physical_damage_+%', value: 150 }],
  { datas: { stat_descriptions } }
);
 
console.log(merciless_translation); // ['+150% increased Physical Damage']

Documentation

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i poe-i18n

Weekly Downloads

29

Version

0.12.0

License

MIT

Unpacked Size

60.3 MB

Total Files

650

Last publish

Collaborators

  • eps1lon