Draft for twing Intl support seeIntl.php
- what about timezone support? - skip // inclue other lib?
- implement localizednumber
- implement localizedcurrency
Twig:
{{ datefield|localizeddate('full', 'short', app.request.locale ) }}
import { TwingLoaderFilesystem, TwingEnvironment } from "twing";
import { TwingExtensionIntl } from "twing-intl";
const loader = new TwingLoaderFilesystem('/path/to/templates');
const twing = new TwingEnvironment(loader);
twing.addExtension(new TwingExtensionIntl());
twing.addGlobal('app', {request: {locale: 'en'}});
Read the Twing Documentation for more information.
- Fork this repository
- Code
- Implement tests using tape
- Issue a pull request keeping in mind that all pull requests must reference an issue in the issue queue
- Eric MORAND for his effort to create Twing
- Nathan Kelly for twing-markdown my skeleton for this extension
- Andy VanWagoner for format-message
Copyright © 2019 Cornelius Weiss. Released under the 2-Clause BSD License.