-
Notifications
You must be signed in to change notification settings - Fork 2
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
[FEATURE] I18n now uses a formatter if specified by overriding output… #10
base: develop
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,5 @@ | |||
class AdhearsionI18n::Formatter < Adhearsion::CallController::Output::Formatter |
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.
This is worth submitting as a PR to Adhearsion
@benlangfeld can I get a review from you here? |
I'd second that this needs to go in Ahn 3. @polysics Please prep a PR. Other than that, no major complaints. |
if prompt.empty? | ||
output_formatter.ssml_for_text(text, language: this_locale) | ||
else | ||
RubySpeech::SSML.draw language: this_locale do | ||
if Adhearsion.config.i18n.fallback | ||
audio(src: prompt) { string text } |
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.
So we can't pass this fallback text through the formatter too?
Did this make it into Adhearsion 3 yet? |
I don't remember anything further than what's here. |
97e06d8
to
5b4d009
Compare
…_formatter