* Fix issue with creating initial folder.
+ Added README files that help understand how the translation files work.
* Builtin original translations are now stored inside the builtin
dir. The language files in the base dir are considered override files.
* Languages are now loaded by this logic:
- If the override file exists and the builtin one doesn't -> use the override
- If the override file doesn't exist and the builtin one does -> use the builtin
- If the override file exists and the builtin one does -> use the override and fall back to the builtin
* Fixed URLs in docs.
* Fixed deploying to maven of MessagesTranslator-UnitTestHelper.
+ Added subproject MessagesTranslator-UnitTestHelper to still allow translations in unit tests without copying files.
* Completely restructured internal structure:
- Turned
MessagesTranslator
into an interface. - Added
BaseMessagesTranslator
with built in replacement functionalities. - Added
HoconMessagesTranslator
to allow HOCON objects to be translation bases. - Renamed
MessagesTranslator
toPluginMessagesTranslator
. - Added
UnitTestMessagesTranslator
in subproject MessagesTranslator-UnitTestHelper. - Project now is way more extensible.
* Changed language file dir from /lang
to /assets/<ID>/lang
(Fixes #1).
+ Implemented placeholder replacement.
* Prevented infinite loops while loading inherited languages.
* Changed license to MIT.
* Using the plugin object to get the lang
dir.
+ Implemented translation class MessagesTranslator
.
+ Implemented language inheritance.
+ Implemented default fallback.
+ Added Message
interface, which is best applied to an enum
, as translation keys.
* Initial commit