Skip to content
New issue

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

Enable multiple values #1

Open
leodido opened this issue Jul 22, 2015 · 0 comments
Open

Enable multiple values #1

leodido opened this issue Jul 22, 2015 · 0 comments

Comments

@leodido
Copy link
Owner

leodido commented Jul 22, 2015

The name and native fields can contains multiple values.
See here, and here for example.

Ensure that this works.

$adapter = new LanguageCode();
$options = new LanguageCodeOptions();
$converter = new Conversion(['adapter' => $adapter, 'options' => $options]);
$options->setOutput('iso639-1');
// NATIVE => ISO 639-1
$converter->filter('valencian'); // ca

End user should not be forced to do.

// ...
$converter->filter('catalan, valencian'); // ca

Handle comma separated values (or convert the array).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant