command
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Dec 31, 2020
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
vartrans
1. 介绍
vartrans为golang实现的生成可用代码变量的Alfred插件
1.1 优点
- 无须安装其他依赖,安装即用(再也不用安装node了)。
- 多翻译平台的支持,可自定义配置选择对应的翻译API。
1.2 支持的翻译平台
2. 效果
小驼峰命名法

大驼峰命名法

下滑线命名法

常量命名法

中划线命名法

3. 安装
点此下载
3.1 配置
| 对应翻译API平台的认证信息是需要自己去申请的,然后通过环境变量的方式注入进去,互联网的共享我个人认为
不适用密钥的分享。
3.1.1 有道
前往有道智云注册翻译应用,最终拿到应用ID和应用密钥。在Alfred workflow页面上进行配置
环境变量配置:
| 变量名称 |
变量值 |
| fetcher |
youdao |
| appKey |
有道注册的应用ID |
| appSecret |
有道注册的应用密钥 |

4. 参考
CodeVar
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.