poe-i18n

i18n utility for Path of Exile

Usage no npm install needed!

<script type="module">
  import poeI18n from 'https://cdn.skypack.dev/poe-i18n';
</script>

README

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