All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
base_chance_to_freeze
now uses correct arg number. Older descriptions without the offset will not throw formatter not found. (#75)
- Path of Exile@3.5.0 locale data. (#75)
0.12.0 (2018-06-23)
- Custom range display with
formatValue
andformatMessage
which is used to parse the provided message. The range format can now be configured informatStats
as well. Check to api documentation for more infos. (#61)
0.11.0 (2018-06-16)
locale-data/*/api_messages
for de, es, fr, pt, ru and th. These messages contain translations relevant to item responses from the official GGG API. English translations are unnecessary because keys = values. The chinese translations are not available because there exists no chinese API. (#57)
- Update to
typescript@~2.9.2
. (#60)
0.10.0 (2018-05-31)
locale-data
for Path Of Exile@3.3.0
(#51)
0.9.1 (2018-05-30)
- Unexpected token when using CommonJS format.
0.9.0 (2018-05-30)
locale-data
for Path Of Exile@3.2.4c
(#48)locale-data
for Path Of Exile@3.2.0
(#28)groupMods()
to generate a fitting translation for a collection of mods (e.g. mods of acorrect_group
). (#30)textToStats
(also available inFormat
) which finds every combination of stats that could've produced a given text. Check the API docs for more info. (#24)
-
Browser build should be used via
unpkg
. Using thedist/
directly from github was a bad idea to begin with. (#49) -
Value ranges should now be displayed ordered. This caused #32 and was fixed with #37.
-
Stats with zero or equivalent (range 0 - 0) are now ignored by default. This matches ingame behavior. (#29 and #39)
- Some translations had standard printf syntax which is not understood by
formatStats
. This caused #34 and is fixed with #35. - False positive in
base_chance_to_freeze%
which threwno param given for formatter
. This fixed #33 with #36.
Format
singleton instance. We do not encourage this pattern. If you rely on this pattern can easily create an additional file which exports a singleton. (#45)
0.8.0 (2018-02-16)
- Upgraded
tslint-eslint-rules
to 5.0.0 (#20)
0.7.1 (2017-10-25)
- Fixed bundling error caused by require instead of import.
0.7.0 (2017-10-24)
- Plenty more locale data for *.dat files
- formatStats*#configure was removed. Global configuration can be achieved with `format
formatStats
doesn't immediately throws if no locale datas are provided. Instead it will implicitly fail because the provided stats won't be translated.
- replaced
loadLocaleDatas
withrequiredLocaleDatas
. The new method only lists and not automatically requires the locale data to prevent webpack from automatically bundling all locale datas.
0.6.1 (2017-10-20)
- build target is now ES5 to support UglifyJS
0.6.0 (2017-10-18)
- Gender and pluralization inflection rules for certain languages for Mods by using ICU message syntax.
inflectionIdentifier
helper for the added inflection rules
- wrong locale codes for simplified and traditional chinese
tw
andcn
never were correct locale codes but country codes. The correct locales arezh-tw
andzh-cn
.
0.5.0 (2017-10-17)
- BaseItemTypes and Mods for Simplified Chinese and Traditional Chinese
- renamed
zh-Hans
tocn
andzh-Hant
totw
for easier integration with other i18n packages.
0.4.0 (2017-10-16)
- locale data from Path of Exile version 3.0.2
0.3.1 (2017-10-11)
- Locale data for
BaseItemTypes
andMods
. They only include names. Currently only supports en, pt, ru and thai since those are the only ones supported by the steam client. If someone has access to the chinese client please open an issue.
Cannot find module skill_meta.json
. Typescript does not include build related tasks. May revert to json format when using webpack or rollup.
0.3.0 (2017-10-10)
formatGemStats
. Check the API docs for more info.loadLocaleDatas
andloadLocaleDatasFor
helpers. Check the API docs for more info.
- Ranges where min and max value are equal are now displayed as single values. (Closes #2)
0.2.1 (2017-20-04)
formatStats
now supports a range as a stat value. Check out the API documentation for further information.
0.2.0 (2017-20-03)
formatStats
now has afallback
option. Possible options can be found in the documentation.
formatStats
now defaults to0
for stats not provided instead of throwing. This was necessary to translate e.g.chance_to_freeze
on Wands which didn't includealways_freeze
. By defaulting to 0 we are able to translate it but allow translations like5 - 0 added Physical Damage
when omittinglocal_maximum_added_physical_damage
.formatStats
is now called with an options object instead of the whole locale data. At the same time you can permanently set it viaformatStats.configure
.configure
just takes the same option argument andformatStats
will use those as default for future calls.
0.1.3 (2017-20-03)
- Error when attempting to translate stats with reminder strings. Translation for those is currently not supported.
- An error when translating aliased stats. They were considered as required params.
0.1.2 (2017-20-03)
- Some missing translations in
locale-data
. They were missing because of some rogue whitespace in the descriptions.txt
- Hidden stats are now returned as
{stat_id} (hidden)
instead of throwing
0.1.1 (2017-10-02)
locale-data
to package parsed from the game client
- Docs with API documentation, detailed readme and usage examples
0.1.0 (2017-10-02)
- Test coverage for
formatStats
. Seems stable but needs more test cases in production
- locale-data for stat_descriptions
- unstable
formatStats