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

Change language of reply. #38

Open
ghost opened this issue Jan 27, 2017 · 3 comments
Open

Change language of reply. #38

ghost opened this issue Jan 27, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 27, 2017

ChatterBotFactory factory = new ChatterBotFactory();
ChatterBot bot1 = factory.create(ChatterBotType.CLEVERBOT);
ChatterBotSession bot1session = bot1.createSession(new Locale.Builder().setLanguage("en").setRegion("US").build());

I'm using it, but the answers are not coming out in English and in other languages.

It is possible to change the language of the answers?

@pierredavidbelanger
Copy link
Owner

I confirm this.
Indeed, the Accept-Language header seems not to control Cleverbot language anymore.

@ghost
Copy link
Author

ghost commented Jan 28, 2017

@pierredavidbelanger There's another API that can do this?

@pierredavidbelanger
Copy link
Owner

@Kurimatzu I guess that if Cleverbot stop supporting languages, I doubt that you will find an other Cleverbot API that supports it (at least based on Accept-Language header).

If you have some time, you can go on the Cleverbot web site, chat with the bot, and inspect request/response to know how they handle language now.

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

No branches or pull requests

1 participant