0.2.8 • Published 5 months ago

cn-poe-translator v0.2.8

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

cn-poe-translator

Translate CN POE data to English.

Json data(include items and passive skills) and text data are supported. Only equipments are supported.

Usage

npm i cn-poe-translator

Use JsonTranslator to translate json data and use TextTranslator to translate text data.

A demo show how to translate text item:

import { BasicTranslatorFactory } from "cn-poe-translator";
import Assets from "cn-poe-export-db";

const text = `物品类别: 腰带
稀 有 度: 稀有
劲风 束灵
忆境 饰布腰带
--------
品质(属性词缀): +20% (augmented)
--------
需求:
等级: 66
--------
物品等级: 100
--------
击中被你恐惧的敌人时,该次击中的法术暴击率提高 50% (enchant)
--------
力量提高 18% (implicit)
--------
+99 最大生命
+68 最大魔力
药剂充能使用降低 20%
药剂效果的持续时间延长 33%
冷却回复速度加快 16%
伤害提高 17% (crafted)
--------
忆境物品`;

const factory = new BasicTranslatorFactory(Assets);
const textTranslator = factory.getTextTranslator();
console.log(textTranslator.translate(text));

output should be:

Item Class: Belts
Rarity: Rare
Item
Synthesised Cloth Belt
--------
Quality (Attribute Modifiers): +20% (augmented)
--------
Requirements:
Level: 66
--------
Item Level: 100
--------
Hits against Enemies Unnerved by you have 50% increased Spell Critical Strike Chance (enchant)
--------
18% increased Strength (implicit)
--------
+99 to maximum Life
+68 to maximum Mana
20% reduced Flask Charges used
33% increased Flask Effect Duration
16% increased Cooldown Recovery Rate
17% increased Damage (crafted)
--------
Synthesised Item
0.2.8

5 months ago

0.2.7

5 months ago

0.2.6

5 months ago

0.2.3

8 months ago

0.2.5

8 months ago

0.2.4

8 months ago

0.2.2

11 months ago

0.2.1

12 months ago

0.2.0

12 months ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.15

1 year ago

0.1.27

1 year ago

0.1.28

1 year ago

0.1.20

1 year ago

0.1.21

1 year ago

0.1.22

1 year ago

0.1.23

1 year ago

0.1.24

1 year ago

0.1.25

1 year ago

0.1.26

1 year ago

0.1.16

1 year ago

0.1.17

1 year ago

0.1.18

1 year ago

0.1.19

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago