Skip to content

Commit

Permalink
l10n 添加中文
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaohuohumax committed Mar 28, 2024
1 parent b06fafb commit 9329643
Show file tree
Hide file tree
Showing 13 changed files with 100 additions and 1,377 deletions.
5 changes: 5 additions & 0 deletions .changeset/perfect-needles-knock.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"format-files-by-ignores": minor
---

l10n 添加中文
12 changes: 6 additions & 6 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@

VSCode插件:依据 ignore 文件筛选文件,然后批量格式化文件(Format Files By Ignores)

**注意:** 格式文件时是调用 VSCode 的默认格式化(alt + shift + f),用户默认配置是啥就是啥。
**注意:** 格式文档时是调用 VSCode 的默认功能(alt + shift + f),用户默认配置是啥就是啥。

## 安装

VSCode 插件搜索 `Format Files By Ignores`

## 使用

+ **格式文件夹(folder)**
+ **格式化选定文件夹(folder)**
+ 文件夹上 `右键`
+ 选择 `Start Format Folder By Ignores 📂`
+ **格式工作空间(workspace)**
+ 选择 `Start Format Folder By Ignores 📂` 或者 `通过 Ignore 配置格式化选定文件夹 📂`
+ **格式化工作区(workspace)**
+ 调用命令面板 `ctrl + shift + p`
+ 搜索 `Start Format Workspace By Ignores 📂`
+ 选择需要批量格式的 `工作空间(workspace)`
+ 搜索 `Start Format Workspace By Ignores 📂` 或者 `通过 Ignore 配置格式化工作区 📂`
+ 选择需要格式化的 `工作区(workspace)`
+ **自定义ignore文件**
+ 文件夹下创建名叫 `.formatignore` 的文件, 接着写入过滤规则(规则和 `.gitignore` 相同)

Expand Down
16 changes: 16 additions & 0 deletions l10n/bundle.l10n.zh-cn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"Select the workspace that needs to be formatted": "请选择需要格式化的工作区文件夹",
"Select workspace folder": "选择工作区文件夹",
"Select workspace folder cancelled": "取消-选择工作区文件夹",
"Workspace not open": "工作区未打开",
"Format cancelled": "取消-格式化",
"Filter files by ignores": "通过 Ignore 配置搜索文档中",
"Formatting documents": "格式化文档中",
"Start Format": "开始格式化",
"Cancel": "取消",
"Start format workspace ({0}) files?": "是否开始格式化工作区({0})文件夹下的文档?",
"Format files (please check):": "待格式化文档列表(请检查)",
"Please check file list": "请检查待格式化的文档列表",
"No match files: nothing to do": "未匹配到文档:没啥可做的",
"Format files completed": "格式化文档完成"
}
Loading

0 comments on commit 9329643

Please sign in to comment.