Commit 54a746f
committed
fix: correct filename generation for translated outputs
Fix language code replacement in translation phase to only replace
the language suffix, not all occurrences of the language code string.
This prevents incorrect filenames like "neetcode_gzh-TWeral_ai_zh-TW"
when translating from "general_en" to "general_zh-TW".
- Use rsplit("_", 1) to parse output_key format correctly
- Only replace language code at the end of the key
- Improve html_converter.py parsing logic for robustness1 parent 896b9d9 commit 54a746f
2 files changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
392 | 392 | | |
393 | 393 | | |
394 | 394 | | |
395 | | - | |
396 | | - | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
397 | 407 | | |
398 | 408 | | |
399 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
| 251 | + | |
| 252 | + | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
| |||
0 commit comments