Skip to content

[BUG] scriptcat does not prefer @name:lang over @name even if lang matches the user's locale #1123

@MmyGgithubAaccount

Description

@MmyGgithubAaccount

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)

Additional Information (Optional)

Name for above script in scriptcat:
Image

Name for above script in tampermonkey:
Image

Metadata

Metadata

Assignees

Labels

P1🔥 重要但是不紧急的内容

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions