Releases: creolingo/translate-maker
Releases · creolingo/translate-maker
fixed async loading of namespaces
Big refactor
I refactored whole library.
It is based on async / await functions.
Object notation was removed because it caused a lot of problems and it was slow.
deps and small bug fix
CLDR 29 and added UMD build
added UMD build
updated documentation
@deps
CLDR 29
deps
Babel 6 + ordinal filter
Added Babel 6
Added ordinal filter
You can use:
import Translate from 'translate-maker';
const t = new Translate();
t.set({
takeRight: `Take the {$position, ordinal,
one {#st}
two {#nd}
few {#rd}
{#th}
} right`
});
const result = t.get('followers', {
position: 2
});
console.log(result); // => Take the 2nd right