From 703badf57c4ed9f7b4574371796e5c52a7f3f4ad Mon Sep 17 00:00:00 2001 From: chouchouji <70570907+chouchouji@users.noreply.github.com> Date: Wed, 15 Jan 2025 21:15:45 +0800 Subject: [PATCH] feat: add support for vscode l10n (#331) * feat: add support for vscode l10n * test: update snapshot --- index.js | 1 + tests/snapshots/main.js.md | 2 ++ tests/snapshots/main.js.snap | Bin 1408 -> 1420 bytes 3 files changed, 3 insertions(+) diff --git a/index.js b/index.js index 10a5ff3..5f77b81 100755 --- a/index.js +++ b/index.js @@ -343,6 +343,7 @@ const fields = [ }, { key: 'scripts', over: sortScripts }, { key: 'betterScripts', over: sortScripts }, + /* vscode */ { key: 'l10n' }, /* vscode */ { key: 'contributes', over: sortObject }, /* vscode */ { key: 'activationEvents', over: uniq }, { key: 'husky', over: overProperty('hooks', sortGitHooks) }, diff --git a/tests/snapshots/main.js.md b/tests/snapshots/main.js.md index 5174023..a00bc2b 100644 --- a/tests/snapshots/main.js.md +++ b/tests/snapshots/main.js.md @@ -62,6 +62,7 @@ Generated by [AVA](https://avajs.dev). "jsdelivr": "jsdelivr",␊ "jsnext:main": "jsnext:main",␊ "keywords": "keywords",␊ + "l10n": "l10n",␊ "languageName": "languageName",␊ "license": "license",␊ "lint-staged": "lint-staged",␊ @@ -166,6 +167,7 @@ Generated by [AVA](https://avajs.dev). "binary": "binary",␊ "scripts": "scripts",␊ "betterScripts": "betterScripts",␊ + "l10n": "l10n",␊ "contributes": "contributes",␊ "activationEvents": "activationEvents",␊ "husky": "husky",␊ diff --git a/tests/snapshots/main.js.snap b/tests/snapshots/main.js.snap index 6d8165db0c83995b3ed793379f1a128f1df5200a..35cce14b01f5860a42e25563a8bf680591268a01 100644 GIT binary patch literal 1420 zcmV;71#|jARzVWa0yZ4+k$NqTs&AsF_@qg*Z>G6vsNxn^zH(vvrkGu1sfA-wV+4F#ygIt?%QG`g^(2WyI%*Wg&+3%THF@zo2h$f<=v z-}RqlpCUhDAal)wi($}hDcSy4RsiWOL>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