-
Notifications
You must be signed in to change notification settings - Fork 93
Add Yandex translator support #151
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
Conversation
@@ -182,7 +182,7 @@ private function addAutoTranslateNode(ArrayNodeDefinition $root) | |||
->arrayNode('fallback_translation') | |||
->canBeEnabled() | |||
->children() | |||
->enumNode('service')->values(['google', 'bing'])->defaultValue('google')->end() | |||
->enumNode('service')->values(['google', 'yandex', 'bing'])->defaultValue('google')->end() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we do not have bind
support if I'm not wrong, so maybe remove it from this list for now until php-translation/translator#1 will be implemented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct. I just wanted have more than one value when I first write this enum (maybe it was a requirement?).
Anyhow. We should remove bing
and use yandex
and google
only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
@@ -182,7 +182,7 @@ private function addAutoTranslateNode(ArrayNodeDefinition $root) | |||
->arrayNode('fallback_translation') | |||
->canBeEnabled() | |||
->children() | |||
->enumNode('service')->values(['google', 'bing'])->defaultValue('google')->end() | |||
->enumNode('service')->values(['google', 'yandex', 'bing'])->defaultValue('google')->end() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct. I just wanted have more than one value when I first write this enum (maybe it was a requirement?).
Anyhow. We should remove bing
and use yandex
and google
only.
You have done a great job on this org! Really appreciated! |
Glad to help ;) |
I see Translator already supports Yandex: php-translation/translator#7