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

playSpeech cleanup: Rename languageCode to locale #38498

Merged
merged 6 commits into from
Jan 13, 2021

Conversation

maddiedierker
Copy link
Contributor

@maddiedierker maddiedierker commented Jan 11, 2021

Small rename for the structure of Azure TTS voices returned from the server. We were renaming Azure's "Locale" param to "languageCode," but "locale" is clearer.

Since we cache the list of voices from Azure (in Rails.cache, which is emptied/reset on every deploy), the client needs to support both keys ("languageCode" and "locale") to make sure we don't get a flurry of errors here. A day or so after this PR has deployed, I will merge #38499 to deploy the clean-up to totally remove "languageCode."

Links

Testing story

Updated unit tests.

Reviewer Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@maddiedierker maddiedierker merged commit 0cfe362 into staging Jan 13, 2021
@maddiedierker maddiedierker deleted the playspeech-cleanup branch January 13, 2021 00:29
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.

None yet

2 participants