wintersmith-l10n
A Wintersmith plugin to localize dates and times
Installation
Install globally or locally using npm:
npm install [-g] wintersmith-l10n
Add wintersmith-l10n
to your config.json
:
Define the locale
property:
Usage
Get the current locale:
envhelpersl10n;
Set a new locale:
envhelpersl10n;
Localize a date:
envhelpersl10n;
Localize a time:
envhelpersl10n;
Please note that wintersmith-l10n
relies on moment
to format dates and times. So, any format supported by moment
is also supported by wintersmith-l10n
.
License
wintersmith-l10n
is released under the MIT license.