Sertion / vscode-gitblame

Visual Studio Code Extension - See Git Blame info in status bar.
https://marketplace.visualstudio.com/items/waderyan.gitblame
MIT License
72 stars 31 forks source link

Git-Blame shows Chinese instead of English #111

Closed AmosChenYQ closed 2 years ago

AmosChenYQ commented 2 years ago

Issue Type: Bug

Git-Blame shows Chinese instead of English I have set my VS-Code display language to English, and my system git-cli, cmd, powershell are all in English, why it shows Chinese git blame message like "23天前" instead of "23 days ago"?

image

Extension version: 8.0.0 VS Code version: Code 1.58.2 (c3f126316369cd610563c75b1b1725e0679adfb3, 2021-07-14T22:10:15.214Z) OS version: Windows_NT x64 10.0.19041 Restricted Mode: No

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz (4 x 2592)| |GPU Status|2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|7.90GB (1.83GB free)| |Process Argv|--crash-reporter-id e6caf0ac-512f-403c-bfea-b46f17e267ba --crash-reporter-id e6caf0ac-512f-403c-bfea-b46f17e267ba| |Screen Reader|no| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspyt653:30270858 pythonvspyt602:30300191 vspor879:30202332 vspor708:30202333 vspor363:30204092 pythonvspyt639:30300192 pythontb:30283811 pythonvspyt551:30311712 vspre833:30321513 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscus158:30321503 pythonvsuse255:30335481 vscod805:30301674 pythonvspyt200cf:30331938 vscextlangct:30333562 binariesv615:30325510 vsccppwtct:30329789 bridge0708:30335490 ```
AmosChenYQ commented 2 years ago

BTW, Git-Blame was showing English before I upgrading my VSCode

AmosChenYQ commented 2 years ago

I have read your recently CHANGELOG, seems to be caused by new feature...

AmosChenYQ commented 2 years ago

After I install 7.0.6, everything is OK. I think you should add a config to choose whether use

Breaking change: Using Intl.RelativeTimeFormat to get relative time messages. This will change some things in the output:
Sertion commented 2 years ago

Hey AmosChenYQ!

It should use your computers default locale. I will change it so that it uses the vscode locale instead.

wenfangdu commented 2 years ago

Confirmed, changed to Chinese after upgrading to v8.0.0.

Sertion commented 2 years ago

A new version has been uploaded to the marketplace. It sometimes can take a few minutes/hours for it to appear.

wenfangdu commented 2 years ago

@Sertion Tried it, back to English now, thanks.

AmosChenYQ commented 2 years ago

image Solved. Thanks for your quick response!