All notable changes to this project will be documented in this file.
- Resolved an issue where
tlk
was missingtemplate.ts
in thedist
library.
- npm package
object-path-generator
pathgen
is used to achieve proxy-based behavior which also support caching mechanism.
- Reworked the way to generate file to rely on typed recursive proxy.
- How it was: result file had a function which had a generated JS object which mirrored structure of locale keys. Thus locale keys hang in memory in runtime duplicating keys loaded as s JSON file
- Hot it is now: result file has compact recursuve function with a proxy which is casted to generated type which mirrors the locale keys structure. Thus there is no duplication of locale keys in runtime as they are stripped out from source code on build step.
icu
- add support for nested icu parameters. key format example:Hello, {numPersons, plural, =0 {No one.} =1 {Mr. {personName}} other {# persons}}
icu
- add support for icu format. key format example:{numPersons, plural, =0 {no persons} =1 {one person} other {# persons}}