I have modified the display of the status bar to the corresponding language by performing the following steps:
1.Open the main.js file located in .obsidian\plugins\open-weather, and find the following code at around line 55:
let url = https://api.openweathermap.org/data/2.5/weather?q=${this.location}&lang=zh_cn&appid=${this.key}&units=${this.units};
2.Add &lang=zh_cn before&appid, and the status bar at the bottom will display in the corresponding language.
Suggestions:
You may want to consider adding a drop-down menu to the plugin's settings, giving users the option to display the weather information in their preferred language.
Currently, my modification only enables the status bar to appear in the selected language. I would like to suggest expanding this feature to also support the display of weather information in the chosen language.
Reference materials:
After reviewing the official documentation, it appears that the supported languages may include the following:"
I have modified the display of the status bar to the corresponding language by performing the following steps:
1.Open the main.js file located in .obsidian\plugins\open-weather, and find the following code at around line 55:
2.Add
&lang=zh_cn
before&appid
, and the status bar at the bottom will display in the corresponding language.Suggestions:
You may want to consider adding a drop-down menu to the plugin's settings, giving users the option to display the weather information in their preferred language.
Currently, my modification only enables the status bar to appear in the selected language. I would like to suggest expanding this feature to also support the display of weather information in the chosen language.
Reference materials:
After reviewing the official documentation, it appears that the supported languages may include the following:"