crimx/ext-saladict

强烈建议支持驼峰的转换

オープン

#997 opened on 2020/09/07

 (6 件のコメント) (1 件のリアクション) (0 人の担当者)TypeScript (841 件のフォーク)batch import
feature requesthelp wanted

Repository metrics

Stars
 (13,288 個のスター)
PR merge metrics
 (PR metrics pending)

説明

请描述目前使用沙拉查词遇到什么不便

这是我用过最完善的翻译插件, 但是作为开发者,时常会读到生词的变量名。(google翻译仅支持短词转换) 所以希望能够支持手动开启驼峰词组转换。

理想情况下,沙拉查词应该怎么做

在“沙拉查词”的启动界面添加“开启驼峰转换功能”的按钮。

当功能开启时,若粘贴板的内容匹配以下若干情况,都将自动转换为:salad translation tool

  • SALAD_TRANSLATION_TOOL
  • salad_translation_tool
  • SaladTranslationTool
  • saladTranslationTool

特殊情况的转换:

  • HEYSaladTranslationTool -> HEY salad translation tool
  • saladTranslationTOOL -> salad translation TOOL | saladTranslationToolDO -> salad translation tool DO

特殊情况有待完善......

コントリビューターガイド