opencode-translate 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-translate",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "OpenCode plugin that lets the user chat in a configured language while the main chat loop only sees English.",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
package/src/auth/store.ts CHANGED
@@ -8,8 +8,6 @@ import type { AuthDependencies } from "./types"
8
8
  function dataHome(): string {
9
9
  const xdgDataHome = process.env.XDG_DATA_HOME
10
10
  if (xdgDataHome) return xdgDataHome
11
- if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support")
12
- if (process.platform === "win32") return process.env.LOCALAPPDATA || path.join(os.homedir(), "AppData", "Local")
13
11
  return path.join(os.homedir(), ".local", "share")
14
12
  }
15
13