incubator-answer icon indicating copy to clipboard operation
incubator-answer copied to clipboard

The context language should be available in the plug-in

Open colinyyj opened this issue 1 year ago • 1 comments

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.

  1. Modifying the wecom_user_center.go file of project user-center-wecom. The plugin gets the language and sets it.
  2. Modifying the user_center.go and plugin.go file of project answer. The language of the current environment is exposed to all plug-ins.

To Reproduce

Steps to reproduce the behavior:

  1. The global language is zh_CN;
  2. Log in to wecom by scanning codes.
  3. Set personal Settings to enable message subscription, including mail and wecom;
  4. Create questions;
  5. Others comment or answer;
  6. 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

企业微信截图_20240308015917.png image.png

Platform

  • Device: [e.g. Desktop, Mobile]
  • OS: [e.g. macOS]
  • Browser and version: [e.g. Chrome, Safari]
  • Version: [e.g. v1.2.5]

colinyyj avatar Mar 08 '24 04:03 colinyyj

As I replied here, I'll deal with the ReceiverLang language in the notification. Thanks again for the feedback.

LinkinStars avatar Mar 08 '24 06:03 LinkinStars