Skip to content

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

Merged
anthonywittig merged 2 commits into
mainfrom
microservice-ignore-case
Oct 22, 2026
Merged

anthonywittig merged 2 commits into
mainfrom
microservice-ignore-case

Conversation

@anthonywittig

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

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>
@CLAassistant

CLAassistant commented Oct 21, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@anthonywittig
anthonywittig marked this pull request as ready for review October 21, 2026 21:55
@anthonywittig
anthonywittig requested a review from a team as a code owner October 21, 2026 21:55
@anthonywittig

Copy link
Copy Markdown
Contributor Author

...we ask that you sign our Contributor License Agreement before we can accept your contribution.

There doesn't seem to be anything to sign:

image

@WadeWaldron

Copy link
Copy Markdown

...we ask that you sign our Contributor License Agreement before we can accept your contribution.

There doesn't seem to be anything to sign:

image

@anthonywittig I see this screen for several seconds when I load the page. Then, it eventually populates.

I'd suggest loading the CLA, and wait a bit to see if it populates. If it doesn't, we can look into whether there is a deeper problem.

@anthonywittig

Copy link
Copy Markdown
Contributor Author

I'd suggest loading the CLA, and wait a bit to see if it populates

That worked, I signed it, thanks!

@anthonywittig
anthonywittig merged commit 0e58e48 into main Oct 22, 2026
5 checks passed
@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.

3 participants