incubator-answer
incubator-answer copied to clipboard
The context language should be available in the plug-in
Describe the bug
I originally wanted to set the user default when initializing, but I found that I could not get it, and I did not pass it on when executing the plug-in
Then I modified the source code to get the language when it was initialized.
- Modifying the
wecom_user_center.gofile of project user-center-wecom. The plugin gets the language and sets it. - Modifying the
user_center.goandplugin.gofile of project answer. The language of the current environment is exposed to all plug-ins.
To Reproduce
Steps to reproduce the behavior:
- The global language is zh_CN;
- Log in to wecom by scanning codes.
- Set personal Settings to enable message subscription, including mail and wecom;
- Create questions;
- Others comment or answer;
- The default subscription message received should be global language zh_CN;
Expected behavior
The language in the context should be available in the plugin, and modifications to the wecom plugin are supported.
Screenshots

Platform
- Device: [e.g. Desktop, Mobile]
- OS: [e.g. macOS]
- Browser and version: [e.g. Chrome, Safari]
- Version: [e.g. v1.2.5]
As I replied here, I'll deal with the ReceiverLang language in the notification. Thanks again for the feedback.