v0.13.2。
ActivityWatch 这个版本没有内置语言包机制,所以补丁通过在本地 Web UI 静态目录中加入 aw-zh-cn.user.js 并修改 index.html 来生效。安装脚本会自动备份原始 index.html。
文件
-
aw-zh-cn.user.js:汉化脚本 -
install-activitywatch-zh-cn.ps1:安装脚本 -
uninstall-activitywatch-zh-cn.ps1:卸载/还原脚本
安装
-
解压本目录。
-
右键 PowerShell,选择“以管理员身份运行”。
-
进入本目录,例如:
cd C:\Users\你的用户名\Downloads\activitywatch-zh-cn
-
执行:
powershell -NoProfile -ExecutionPolicy Bypass -File .\install-activitywatch-zh-cn.ps1
-
打开或刷新:
http://localhost:5600/
如果仍然看到旧页面,请按 Ctrl+F5 强制刷新。
自定义安装目录
如果脚本没有自动找到 ActivityWatch 安装目录,手动指定静态目录:
powershell -NoProfile -ExecutionPolicy Bypass -File .\install-activitywatch-zh-cn.ps1 -StaticDir "D:\Apps\ActivityWatch\aw-server\aw_server\static"
目录中应包含 index.html、js、css 等文件。
卸载
powershell -NoProfile -ExecutionPolicy Bypass -File .\uninstall-activitywatch-zh-cn.ps1
卸载脚本会优先使用安装时生成的最新 index.html.aw-zh-cn.bak-* 备份还原。
说明
-
专有名词、应用名、网站名、主机名、数据桶 ID、正则规则通常不会翻译。
-
ActivityWatch 升级后可能覆盖静态文件,需要重新运行安装脚本。
-
如果 ActivityWatch 版本不是
v0.13.2






