TranscanTranscan 是一款中文扫描工具,是 Translation Scanner 的缩写。适用于对旧项目做国际化时,扫描文件中未使用i18n工具包装中文文案的场景,以及其他需要提取中文文案的场景。 Transcan is a Chinese scanning tool, which is the abbreviation of Translation Scanner. It is suitable for scenarios where you need to internationalize old projects by scanning files for Chinese text that has not been wrapped using i18n tools, as well as other scenarios where Chinese text needs to be extracted. Features你可以在任意目录或文件右键点击,选择 "Scan for Hardcoded Strings" 来扫描该目录下的 js/jsx/vue2 文件。 扫描出的中文字符串将会在资源管理器的 Translation Scanner 面板中展示,你可以点击字符串去定位到对应的文件。 You can right-click on any directory or file and select "Scan for Hardcoded Strings" to scan js/jsx/vue2 files in that directory. The scanned Chinese strings will be displayed in the Translation Scanner panel of the resource manager, and you can click on the strings to locate the corresponding file. 注意:本插件目前只支持 js/jsx/vue2 文件,后续或考虑更多文件格式的支持。 Note: This plugin currently only supports js/jsx/vue2 files, and may consider support for more file formats in the future. Support |