Giter VIP home page Giter VIP logo

edgechinese's Introduction

EdgeChinese

新版edge汉化工具

主要工具

pak_tools.exe 可以解包打包pak的语言包,我写的

python3

原理

生成词典,翻译英文到中文。

使用方法

准备生成词典。

首先关注chrome目录。我是用的chrome的资源。

首先使用unpack.bat解包en-us.pak,zh-CN.pak为en-US.json,zh-CN.json

然后运行dict.py就会生成en_cn_dict.json这个词典文件

注意对比的pak文件一定要是相同版本的。

然后回到根目录。

放入最新版edge的en-us.pak并使用unpack.bat解包为en-US.json。

运行translate.py会根据词典en_cn_dict.json自动的把en-US.json翻译成zh-CN.json。

因为词典不会100%全,所以我还准备了一个手动的词典manual.json,手动添加不全的部分。

经过多次迭代以后,词典就会越来越全,manual.json变得不那么重要。

运行build.bat可以把zh-CN.json打包成zh-CN.pak,这个放回edge文件夹就支持中文了。

汉化成品

我会把汉化好的打个包发布,另外集成了Edge++增强软件,在这里下载

https://tools.shuax.com/edge/

如果要生成一个特定版本的资源

特别注意,不同版本pak不通用!

1、放入这个版本的en-us.pak

2、运行unpack.bat解包en-us.pak为en-us.json

3、运行translate.py把en-us.json汉化为zh-CN.json

4、运行build.bat把zh-CN.json打包成zh-CN.pak

放回zh-CN.pak即可得到汉化版。

edgechinese's People

Contributors

shuax avatar

Watchers

James Cloos 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.