poe-i18n
v0.12.0
Published
i18n utility for Path of Exile
Downloads
890
Readme
poe-18n
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