All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and adheres to Semantic Versioning.
- Added tests for code compiler
- Added more examples
- Added type parsing corrections based on variable names and translate types from other languages like int, or float
- Split
lex,parse, andcompileinto different files - Moved compile function out of compile-arb-script
- Limit exports in index file
- Updated README.md
- Prevent code injections through typing variables
- add tests for typing and combining translations
- Fix typing to be compatible with strict typescript
- Updated the values parameter type of TranslationEntries to be more specific as a
Record<string, unkown>rather than aobject
- Added error logging and catching
- Fix an error when having a locales directory with more than 2 subfolders
- Add argument to change the generated translation name
-n | --name - Add types
TranslationExtensionandPartialTranslationExtensionto simplify extending translations
- Updated README.md example
- Fixed the proper escaping of , ` and $
- ICU lexer, parser and compiler
- a script for compiling
.arbto a typesafe translation - types for translations
combineTranslationfunction for combining translations