Skip to content

Conversation

@Zerryth
Copy link
Contributor

@Zerryth Zerryth commented Aug 1, 2019

fixes #269


Changes

  • NumberPrompt.on_recognize() now uses default locale if it is set
  • NumberPrompt uses constant from recognizer-text repo now for English culture instead of hard-coding "English" (uses en-us now)
  • Uses Babel to parse string to number value from the ModelResult returned from calling recognize_number() from recognizers-text

@Zerryth Zerryth requested a review from axelsrz August 7, 2019 06:00
@Zerryth
Copy link
Contributor Author

Zerryth commented Aug 7, 2019

@axelsrz this fixes the locale/culture issue not working in NumberPrompt for parity with C#

Separate from the culture issue, found a different bug regarding the validator in NumberPrompt, which can be taken care of in a separate PR. Filed #281

@Zerryth Zerryth marked this pull request as ready for review August 7, 2019 06:02
Copy link
Member

@axelsrz axelsrz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@Zerryth Zerryth merged commit 3f78ff3 into master Aug 7, 2019
@Zerryth Zerryth deleted the Zerryth/NumberPromptLocale branch August 7, 2019 17:48
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.

NumberPrompt Locale Not Fully Implemented

3 participants