Code Monkey home page Code Monkey logo

translate-tw's Introduction

将文件内的中文简体转换成繁体。

安装

Shell (Mac):

curl -fsSL https://raw.githubusercontent.com/xjh22222228/translate-tw/main/install.sh | bash

# or
curl -fsSL https://cdn.jsdelivr.net/gh/xjh22222228/translate-tw@main/install.sh | bash

Windows:

Download

使用

默认会跳过 .jpg / .png 等非文本文件。

参数 描述
--path 指定文件或目录
--ext 过滤文件后缀,默认不过滤
--exclude 跳过指定目录
--start 匹配開始行數和位置
--end 匹配結束行數和位置
--version 打印版本号
$ tw --path="./src"

# 指定文件后缀
$ tw --path="./src" --ext=".js|.jsx|go"

# 跳过指定目录
$ tw --path="./src" --exclude="node_modules|dist"

# 匹配位置, 必須傳入 --start 和 --end 參數
$ tw --path="./src" --start='{"line":4066,"character":0}' --end='{"line":4066,"character":0}'

LICENSE

MIT

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.