Improve Indonesian locale translations (id.yaml)#1329
Improve Indonesian locale translations (id.yaml)#1329imraflip wants to merge 1 commit intoOWASP:masterfrom
Conversation
Summary by CodeRabbit
WalkthroughIndonesian translation file updated with new API, graph, and logging-related keys while removing obsolete entries. User-facing text strings replaced with updated phrasing across multiple semantic categories. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 4
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@nettacker/locale/id.yaml`:
- Line 140: The translation for the YAML key database_error has a typo
("databasse"); update the value for database_error in nettacker/locale/id.yaml
to the correct spelling "Error pada database!" by editing the string associated
with the database_error key.
- Line 119: The key wrong_hardware_usage in nettacker/locale/id.yaml contains an
English message; replace its value with an Indonesian translation such as "Anda
harus memilih salah satu profil penggunaan perangkat keras ini. (low, normal,
high, maximum)" so the locale file is fully localized while preserving the
profile tokens in parentheses.
- Around line 24-25: Keys choose_scan_method and cannot_run_api_server in the
Indonesian locale are still in English; update their values with proper
Indonesian translations (replace the English phrases after choose_scan_method:
and cannot_run_api_server: with fluent Indonesian strings) so the id.yaml locale
is fully translated and consistent with other entries.
- Around line 103-105: The YAML value for the key start_parallel_module_scan is
an invalid multi-line string; fix it by replacing the current lines with a
proper literal block scalar or a single-line/quoted string: for example, use
start_parallel_module_scan: | followed on the next indented line by the message
"proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3} dari {4}" (preserving
placeholders and indentation), or alternatively put the whole message on one
line or wrap it in quotes; update the entry for start_parallel_module_scan
accordingly.
| choose_scan_method: choose modules {0} to see full list use --show-all-modules | ||
| cannot_run_api_server: You can't run API Server through itself! |
There was a problem hiding this comment.
Untranslated strings in Indonesian locale file.
These entries are still in English and should be translated to Indonesian for consistency:
- Line 24:
choose_scan_method - Line 25:
cannot_run_api_server
Suggested Indonesian translations
-choose_scan_method: choose modules {0} to see full list use --show-all-modules
-cannot_run_api_server: You can't run API Server through itself!
+choose_scan_method: pilih modul {0} untuk melihat daftar lengkap gunakan --show-all-modules
+cannot_run_api_server: Anda tidak dapat menjalankan Server API melalui dirinya sendiri!📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| choose_scan_method: choose modules {0} to see full list use --show-all-modules | |
| cannot_run_api_server: You can't run API Server through itself! | |
| choose_scan_method: pilih modul {0} untuk melihat daftar lengkap gunakan --show-all-modules | |
| cannot_run_api_server: Anda tidak dapat menjalankan Server API melalui dirinya sendiri! |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@nettacker/locale/id.yaml` around lines 24 - 25, Keys choose_scan_method and
cannot_run_api_server in the Indonesian locale are still in English; update
their values with proper Indonesian translations (replace the English phrases
after choose_scan_method: and cannot_run_api_server: with fluent Indonesian
strings) so the id.yaml locale is fully translated and consistent with other
entries.
| start_parallel_module_scan: | ||
| proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3} | ||
| dari {4} |
There was a problem hiding this comment.
YAML syntax error: invalid multi-line string format.
Static analysis (YAMLlint) reports a syntax error in this region. The multi-line string for start_parallel_module_scan is not properly formatted. YAML requires explicit multi-line indicators (| for literal or > for folded) or the content should be on a single line or properly quoted.
Proposed fix using literal block scalar
-start_parallel_module_scan:
- proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3}
- dari {4}
+start_parallel_module_scan: "proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3} dari {4}"Or using a literal block scalar:
-start_parallel_module_scan:
- proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3}
- dari {4}
+start_parallel_module_scan: |
+ proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3}
+ dari {4}📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| start_parallel_module_scan: | |
| proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3} | |
| dari {4} | |
| start_parallel_module_scan: "proses-{0}|{1}|{2}| memulai modul dengan nomor thread {3} dari {4}" |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@nettacker/locale/id.yaml` around lines 103 - 105, The YAML value for the key
start_parallel_module_scan is an invalid multi-line string; fix it by replacing
the current lines with a proper literal block scalar or a single-line/quoted
string: for example, use start_parallel_module_scan: | followed on the next
indented line by the message "proses-{0}|{1}|{2}| memulai modul dengan nomor
thread {3} dari {4}" (preserving placeholders and indentation), or alternatively
put the whole message on one line or wrap it in quotes; update the entry for
start_parallel_module_scan accordingly.
| username_from_file: baca username dari file | ||
| username_list: list username, pisahkan dengan "," | ||
| verbose_mode: mode verbose level (0-5) (default 0) | ||
| wrong_hardware_usage: "You must choose one of these profiles for hardware usage. (low, normal, high, maximum)" |
There was a problem hiding this comment.
Untranslated string in Indonesian locale file.
This entry is still in English and should be translated to Indonesian for consistency with the rest of the file.
Suggested Indonesian translation
-wrong_hardware_usage: "You must choose one of these profiles for hardware usage. (low, normal, high, maximum)"
+wrong_hardware_usage: "Anda harus memilih salah satu dari profil ini untuk penggunaan perangkat keras. (low, normal, high, maximum)"📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| wrong_hardware_usage: "You must choose one of these profiles for hardware usage. (low, normal, high, maximum)" | |
| wrong_hardware_usage: "Anda harus memilih salah satu dari profil ini untuk penggunaan perangkat keras. (low, normal, high, maximum)" |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@nettacker/locale/id.yaml` at line 119, The key wrong_hardware_usage in
nettacker/locale/id.yaml contains an English message; replace its value with an
Indonesian translation such as "Anda harus memilih salah satu profil penggunaan
perangkat keras ini. (low, normal, high, maximum)" so the locale file is fully
localized while preserving the profile tokens in parentheses.
| report_retrieval_fail: Tidak dapat mengambil laporan | ||
| read_report_fail: Gagal untuk membaca file laporan {0} | ||
| search_results_end: Tidak ada hasil pencarian lagi | ||
| database_error: Error pada databasse! |
There was a problem hiding this comment.
Typo in translation.
"databasse" should be "database".
Proposed fix
-database_error: Error pada databasse!
+database_error: Error pada database!📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| database_error: Error pada databasse! | |
| database_error: Error pada database! |
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@nettacker/locale/id.yaml` at line 140, The translation for the YAML key
database_error has a typo ("databasse"); update the value for database_error in
nettacker/locale/id.yaml to the correct spelling "Error pada database!" by
editing the string associated with the database_error key.
There was a problem hiding this comment.
Pull request overview
This PR updates the Indonesian (id) message catalog to better match the current English (en.yaml) key set and to improve the wording of various user-facing CLI/API messages.
Changes:
- Replaced the existing
id.yamlcontent with a key set aligned toen.yaml(with runtime fallback for any missing keys). - Refined/added Indonesian translations for API, reporting, graph, database, and scanning-related messages.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| choose_scan_method: choose modules {0} to see full list use --show-all-modules | ||
| cannot_run_api_server: You can't run API Server through itself! |
There was a problem hiding this comment.
Nilai untuk choose_scan_method dan cannot_run_api_server masih berbahasa Inggris, sehingga output UI/CLI untuk locale id akan campur bahasa. Sebaiknya terjemahkan kedua string ini ke Bahasa Indonesia (tetap pertahankan placeholder {0} jika ada).
| choose_scan_method: choose modules {0} to see full list use --show-all-modules | |
| cannot_run_api_server: You can't run API Server through itself! | |
| choose_scan_method: pilih modul {0}; untuk melihat daftar lengkap gunakan --show-all-modules | |
| cannot_run_api_server: Anda tidak dapat menjalankan Server API melalui dirinya sendiri! |
| username_from_file: baca username dari file | ||
| username_list: list username, pisahkan dengan "," | ||
| verbose_mode: mode verbose level (0-5) (default 0) | ||
| wrong_hardware_usage: "You must choose one of these profiles for hardware usage. (low, normal, high, maximum)" |
There was a problem hiding this comment.
Nilai wrong_hardware_usage masih berbahasa Inggris, jadi pesan kesalahan untuk pengguna locale id tidak konsisten. Mohon terjemahkan string ini ke Bahasa Indonesia (tanpa mengubah daftar opsi di dalam tanda kurung).
| wrong_hardware_usage: "You must choose one of these profiles for hardware usage. (low, normal, high, maximum)" | |
| wrong_hardware_usage: "Anda harus memilih salah satu profil ini untuk penggunaan perangkat keras. (low, normal, high, maximum)" |
| report_retrieval_fail: Tidak dapat mengambil laporan | ||
| read_report_fail: Gagal untuk membaca file laporan {0} | ||
| search_results_end: Tidak ada hasil pencarian lagi | ||
| database_error: Error pada databasse! |
There was a problem hiding this comment.
Ada typo pada pesan database_error: kata "databasse" salah eja.
| database_error: Error pada databasse! | |
| database_error: Error pada database! |
This PR improves the Indonesian locale file (id.yaml):