Skip to content

Make translation microservice case-insensitive; fix Zulu hello/goodbye - #39

Closed
anthonywittig wants to merge 2 commits into
mainfrom
microservice-ignore-case
Closed

anthonywittig wants to merge 2 commits into
mainfrom
microservice-ignore-case

Conversation

@anthonywittig

@anthonywittig anthonywittig commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • The testing-code exercise asks learners to change Hello to Goodbye, but the microservice only matched lowercase terms, so both were rejected as invalid. Terms and language codes are now lowercased before lookup. Error messages still echo the original input.
  • The Zulu hello/goodbye translations were swapped ("sawubona" is hello, "hamba kahle" is goodbye).
  • The testing-code README now tells learners to change hello to goodbye, lowercase, to match the term used in the test code.

Testing

Checked with Flask's test client:

  • Goodbye/fr → Au revoir; HELLO/FR → Bonjour
  • goodbye/xq and nope/fr still return errors

🤖 Generated with Claude Code

@CLAassistant

CLAassistant commented Oct 21, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

anthonywittig and others added 2 commits October 21, 2026 15:50
The testing-code exercise has learners change "Hello" to "Goodbye",
but the microservice only accepted lowercase terms. Lowercase the term
and language code before lookup. Also swap the Zulu hello/goodbye
translations, which were reversed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@anthonywittig
anthonywittig force-pushed the microservice-ignore-case branch from ebb0160 to eca168e Compare October 21, 2026 21:50
@anthonywittig

Copy link
Copy Markdown
Contributor Author

Closing to reopen as a fresh PR so the CLA check picks up the corrected commit author.

@anthonywittig
anthonywittig deleted the microservice-ignore-case branch October 22, 2026 15:23
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.

2 participants