-
Notifications
You must be signed in to change notification settings - Fork 21
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
targetLang="en" is deprecated, please use "en-GB" or "en-US" instead #44
Comments
Hi, what is the bug here exactly? The information is in the readme:
and this is not a recent change, we haven't accepted You can use
|
@JanEbbing that's weird. Our plugin was working fine when using just en as a target language code and it just broke in the last few weeks with that deprecation notice. The documentation states that you have to pass a locale code in order for the glossary to work and unless we change our Moodle install to use regional variants we'll have to hardcode locales into the plugin to make it work with DeepL now. On the readme it shows |
Hi @kalebheitzman - not sure why it broke, but we did not change anything in this regard. DeepL differentiates between a In the example
we call
would throw an error, you would need to write something like
|
@JanEbbing I stumbled on that issue too in an app that basically provide a source and target langauge selectors the user can select from. The list of those selectors are hydrated from DeepL One way to solve this would be to introduce a What do you think? |
Hi @nlemoine , please note that the E: I guess the issue is that it is not mentioned on the dedicated docs page about languages, but only in the OpenAPI spec here |
This isn't technically a bug but it broke our entire app. The Readme might need updated to notify users of this. We have a custom plugin on Moodle that's based entirely on 2 letter locale codes and I haven't gotten into the internals yet to see if it will give us the en-US format. There might be other software out there that suffers from the same problem.
The text was updated successfully, but these errors were encountered: