fluent-transpiler
Advanced tools
Comparing version
@@ -397,6 +397,4 @@ import { parse } from '@fluent/syntax' | ||
const [duration, unit] = relativeTimeDiff(value) | ||
return relativeTimeFormat.format(duration, unit) | ||
} catch (e) { | ||
return dateTimeFormat.format(value) | ||
} | ||
return new Intl.RelativeTimeFormat(lang, options).format(duration, unit) | ||
} catch (e) {} | ||
return new Intl.DateTimeFormat(__locales, options).format(value) | ||
@@ -403,0 +401,0 @@ } |
{ | ||
"name": "fluent-transpiler", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Transpile Fluent (ftl) files into optimized, tree-shakable, JavaScript EcmaScript Modules (esm).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
21673
-0.08%481
-0.41%