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

[FEATURE] I18n now uses a formatter if specified by overriding output… #10

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

lpradovera
Copy link
Member

…_formatter

@@ -0,0 +1,5 @@
class AdhearsionI18n::Formatter < Adhearsion::CallController::Output::Formatter
Copy link
Member

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

@bklang
Copy link
Member

bklang commented Jun 25, 2015

@benlangfeld can I get a review from you here?

@benlangfeld
Copy link
Member

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 }
Copy link
Member

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?

@bklang
Copy link
Member

bklang commented Feb 14, 2016

Did this make it into Adhearsion 3 yet?

@benlangfeld
Copy link
Member

I don't remember anything further than what's here.

@bklang bklang force-pushed the feature/use_formatter branch from 97e06d8 to 5b4d009 Compare September 28, 2016 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants