cs-util-com / cscore

cscore is a minimal-footprint library providing commonly used helpers & patterns for your C# projects. It can be used in both pure C# and Unity projects.
https://cs-util-com.github.io/cscore/
Apache License 2.0
195 stars 32 forks source link

Improve localization to support #29

Open cs-util opened 4 years ago

cs-util commented 4 years ago

The problem:

Currently the json structure that has to be used is not conform with the I18n standard, see the https://github.com/cs-util-com/cscore/blob/master/CsCore/xUnitTests/src/Plugins/CsCoreXUnitTests/com/csutil/tests/system/I18nTests.cs examples.

Todos:

Use the following example I18n conform json files to create an implementation of the I18n class that would traverse the flexible json tree correctly and support e.g. the [1, 1, "Due Tomorrow"] notation specified in there: