You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`-f, --from <lang>`: Source language code (default: "auto")
48
-
-`-t, --to <lang>`: Target language code (default: "en")
91
+
-`-f, --from <lang>`: Source language code (default: "en")
92
+
-`-t, --to <lang>`: Target language code (default: "vi")
93
+
94
+
Examples:
49
95
50
-
Example:
51
96
```bash
97
+
# From French to English
52
98
dummie translate "Bonjour le monde" --from fr --to en
99
+
# Output: Hello world
100
+
101
+
# From English to French
102
+
dummie translate "Hello, how are you today?" --from en --to fr
103
+
# Output: Bonjour, comment vas-tu aujourd'hui?
104
+
105
+
# From Vietnamese to English
106
+
dummie translate "Vô lý" --from vi --to en
107
+
# Output: Unreasonable
53
108
```
54
109
110
+
The translation feature uses a reliable HTTP API first and falls back to a browser-based method if the API fails, ensuring robust translations even during API limitations.
111
+
55
112
### info
56
113
57
114
Display information about your system and environment.
@@ -85,6 +142,17 @@ dummie browser-detect
85
142
86
143
This command helps you configure the Chrome browser path for the translation feature's fallback mechanism. It will scan common installation locations and provide instructions for setting the `CHROME_PATH` environment variable.
87
144
145
+
Example output:
146
+
147
+
```
148
+
Detecting browsers for translation feature...
149
+
✅ Found Chrome at: C:/Program Files/Google/Chrome/Application/chrome.exe
150
+
151
+
To use this browser for translations, set the CHROME_PATH environment variable:
0 commit comments