poe-i18n
Version:
i18n utility for Path of Exile
34 lines (33 loc) • 782 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
// TODO howto translate?
// used in 'mod_value_to_item_class' in Poorjoy's Asylum
exports.item_classes = [
'Amulets',
'Rings',
'Claws',
'Daggers',
'Wands',
'One Hand Swords',
'One Hand Axes',
'One Hand Maces',
'Bows',
'Staves',
'Two Hand Swords',
'Two Hand Maces',
'Quivers',
'Belts',
'Gloves',
'Boots',
'Body Armours',
'Helmets',
'Shields',
'Sceptres'
];
var formatter = {
format: function (n) { return exports.item_classes[n % exports.item_classes.length]; },
inverse: function (item_class) { return exports.item_classes.indexOf(item_class); },
regexp: '.+?',
negates: false
};
exports.default = formatter;