本文提供支持網(wǎng)頁|Mac|Windows|安卓的漢化方式猜憎。
網(wǎng)頁端:
1娩怎、安裝油猴插件
不知道怎么使用油猴的可以參考這篇文章:https://zhuanlan.zhihu.com/p/128453110
2、安裝油猴腳本
打開鏈接:https://greasyfork.org/zh-CN/scripts/430116-notion-zh-cn-notion%E7%9A%84%E6%B1%89%E5%8C%96%E8%84%9A%E6%9C%AC 胰柑。然后點(diǎn)擊安裝截亦。
3、體驗(yàn)漢化后的效果:https://www.notion.so?
Windows & Mac通用:
提供了兩種模式柬讨,一種是自動更新崩瓤,一種手動更新。
手動模式:
先下載notion-zh_CN.js文件踩官,下載地址:https://github.com/Reamd7/notion-zh_CN/archive/refs/tags/2.4.20-handmade.zip
老版本可以參考下面的步驟:
1却桶、 進(jìn)入 renderer 目錄
2、 放入 notion-zh_CN.js
3、 修改 preload.js, 在該文件最后新建一行颖系,加入require('./notion-zh_CN');嗅剖,保存。
(是不是老版本看文件夾里有沒有renderer 這個目錄)嘁扼,新版本是一個app.asar文件信粮,需要特定的方法來打開。
?新版本app.asar的漢化修改辦法:
1偷拔、 下載7z(下載地址: https://github.com/Reamd7/notion-zh_CN/releases/download/2.4.20-handmade/7-Zip.zip)
2蒋院、 再安裝支持打開.asar文件的7z插件(下載地址:https://github.com/Reamd7/notion-zh_CN/releases/download/2.4.20-handmade/app.asar),解壓出來得到Asar.64.dll 和Asar.32.dll的文件莲绰,復(fù)制到7z的安裝目錄欺旧。
3、?使用7-Zip工具中的7zFM.exe蛤签,將Notion的安裝目錄復(fù)制到7z的地址欄中打開辞友,再打開resources/app.asar (無需解壓)。
4震肮、 打開renderer文件夾將notion-zh_CN.js拖入称龙。
5、 修改 preload.js, 在該文件最后新建一行??require('./notion-zh_CN');? ? ?戳晌。保存鲫尊。
6沦偎、 漢化完成疫向。
自動模式:
1、 先下載所需文件豪嚎,按需下載
env.toml:https://github.com/Reamd7/notion-zh_CN/releases/download/2.4.20-win-mac-asar/env.toml
update_asar.exe(window平臺):https://github.com/Reamd7/notion-zh_CN/releases/download/2.4.20-win-mac-asar/update_asar.exe
update_asar_intel_mac(Mac Intel芯片):https://github.com/Reamd7/notion-zh_CN/releases/download/2.4.20-win-mac-asar/update_asar_intel_mac
update_asar_m1_mac(Mac M1芯片):https://github.com/Reamd7/notion-zh_CN/releases/download/2.4.20-win-mac-asar/update_asar_m1_mac
2搔驼、 更新 env.toml 中 folder 字段為自己 notion 安裝目錄。
3侈询、 運(yùn)行 update_asar.exe舌涨。
如果有自動注入 notion enhancer 的需求請?zhí)嵯嚓P(guān) issues, 畢竟官方改成asar文件了。
H幼帧D壹巍!注意 window 下路徑一定不能用 \ 分割 革为,要用 /?哗伯。
4、 完成漢化篷角,打開notion看效果。