Fix DeepL Response parsing, mock DeepL tests so they can always run without API keys
Fix an error I introduced recently in @ditto/translators
while refactoring it, where DeepL's language codes are returned in uppercase and must be lowercased to pass languageSchema
.
I also added tests for languageSchema
, and mocked the tests for both DeepL and LibreTranslate so they can always run without needing API keys in the test environment.