1.0.12 • Published 1 month ago
rift-translations v1.0.12
library init
The translation initialisation file src\index.ts
translation namespaces
You can set up as many namespaces as required to swicth between different translations amtrak.json default.json dgauge.json tfl.json
conversion namespaces
for conversions I have set up unit namespaces A mix of imperial and metric combo.json imperial imperial.json metric metric.json
date/time
For dates/time I have set up company namespaces tuv tuv.json
extending moment js for timezones and date format here
formatting
You can configure the translations to format data, dependant on the keys passed Cant_unit -> format_rule
configuration
We can also switch between configurations (dynamics) amtrak.json default.json