[BUG] scriptcat does not prefer `@name:lang` over `@name` even if `lang` matches the user's locale
Problem Description
If both @name and @name:lang are present, sciptcat should prefer @name:lang if lang is same as the user's locale. Currently it only displays @name
Reproduction Steps
Create the following script and observe the name
// ==UserScript== // @name This is @name // @name:en This is @name:en // @name:ko This is @name:ko // @namespace https://docs.scriptcat.org/ // @version 0.1.0 // @description try to take over the world! // @author You // @match https://*/* // @grant none // @noframes // ==/UserScript== (function() { 'use strict'; // Your code here... })();
ScriptCat Version
1.3.0.1200
Operating System and Browser Information
Linux Microsoft Edge Version 142.0.3595.53 (Official build) (64-bit)

