We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://twitter.com/codebyjeff/status/456032522950803456
if you get a moment, can you tell me what I'm doing wrong with Aura.Intl? https://gist.github.com/jrmadsen67/10724759 … Appreciate it!
Problem is fix the documentation with the changes. Eg from gist.
<?php require 'vendor/autoload.php'; use Aura\Intl\PackageLocator; use Aura\Intl\FormatterLocator; use Aura\Intl\TranslatorFactory; use Aura\Intl\TranslatorLocator; use Aura\Intl\Package; $translators = new TranslatorLocator( new PackageLocator, new FormatterLocator([ 'basic' => function() { return new Aura\Intl\Formatter\BasicFormatter; }, 'intl' => function() { return new Aura\Intl\Formatter\IntlFormatter; }, ]), new TranslatorFactory, 'en_US' ); //var_dump($translators); $packages = $translators->getPackages(); $package = new Package; $package->setMessages([ 'FOO' => 'The text for "foo."', 'BAR' => 'The text for "bar."', ]); // var_dump($package);die; $packages->set('Vendor.Package', 'en_US', $package); $translator = $translators->get('Vendor.Package', 'en_US'); echo $translator->translate('FOO'); // 'The text for "foo."'
The text was updated successfully, but these errors were encountered:
f70c45e
Merge pull request #10 from harikt/fixdoc
f4f6158
Fixes #9, add a test for failure. The expected exception need to be fixed
No branches or pull requests
https://twitter.com/codebyjeff/status/456032522950803456
Problem is fix the documentation with the changes. Eg from gist.
The text was updated successfully, but these errors were encountered: