Giter Club home page Giter Club logo

fy's Introduction

程序员翻译工具

取名是个繁琐的问题, 大多数编辑器都有对应的插件, 但都是限定在对应的编辑器里.

功能

  • 翻译中文为驼峰英文
  • 翻译英文为中文

安装

> npm i -g @wll8/fy

示例

假设要为销售额 贸易差额这些中文进入变量命名, 通常都得经过以下步骤:

  • 找到并打开翻译工具, 可能是网页或桌面程序
  • 等待翻译工具启动
  • 粘贴文本并搜索
  • 寻找比较适合的翻译结果, 看起来比较简单和简短, 易于理解的词语
  • 复制找到的结果
  • 转换为程序所需的命名格式, 如果有插件还方便一些, 如果没有则得手动删空格, 转换大小写...

如果使用本工具, 步骤如下:

> fy 销售额 贸易差额
salesVolume
tradeGap

另外, 支持变量名翻译为中文:

> fy author bookName
作者
书名

配置

如果想使用自己的 api, 可以通过环境变量配置.

  • baidu.key
  • baidu.appid

fy's People

Contributors

wll8 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.