Translations update from Hosted Weblate - #134
Conversation
Currently translated at 100.0% (862 of 862 strings) Translation: Ferrite/Ferrite UI Translate-URL: https://hosted.weblate.org/projects/ferrite/ferrite-ui/ja/
📝 WalkthroughWalkthroughJapanese UI localization file updated with 144 new translation strings across file operations, code execution controls, export settings, appearance customization, document utilities, and Mermaid diagram support. ChangesJapanese UI Localization
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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 current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@locales/ja.yaml`:
- Around line 752-757: The interpolation placeholders in the run_finished and
run_failed entries use {output} and {error} which are inconsistent with the rest
of this locale (which uses %{...}); update the placeholders in run_finished and
run_failed to use %{output} and %{error} respectively so they match the i18n
interpolation format used elsewhere (preserve existing line breaks/pipe literal
style for YAML).
- Around line 902-904: The YAML key print_preview is currently placed before the
welcome: block so it becomes ribbon.print_preview; to fix, move or re-indent the
print_preview entry so it is nested under the welcome: mapping (i.e., as
welcome.print_preview) if the string is for the Welcome screen, or alternatively
move it under ribbon: if it truly belongs to the ribbon; adjust indentation
accordingly to ensure the correct parent key (reference keys: print_preview,
welcome, ribbon).
- Around line 852-853: The key warning_line is currently defined outside the
workspace mapping, so code expecting workspace.warning_line will miss it; move
the warning_line entry to be a child of the workspace section (indent it under
workspace) so it becomes workspace.warning_line and retains the value '行 %{line}
:'.
- Around line 563-565: The two entries currently live under shortcuts.commands
(shortcuts.commands.export_pdf and shortcuts.commands.print_preview) due to
wrong indentation; move those keys so they are children of shortcuts.file (i.e.,
change their indentation/nesting so they become shortcuts.file.export_pdf and
shortcuts.file.print_preview) so the help panel which looks up shortcuts.file.*
can find them.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
| export_pdf: PDF へエクスポート | ||
| print_preview: 印刷プレビュー | ||
| file: |
There was a problem hiding this comment.
shortcuts.file の新規項目が shortcuts.commands 側に入っています
Line 563-564 は現在のインデントだと shortcuts.commands.export_pdf / shortcuts.commands.print_preview になり、shortcuts.file.* には入りません。ヘルプパネル側で shortcuts.file を参照している場合、表示されません。
💡 Suggested fix
- # File shortcuts (for help panel)
- export_pdf: PDF へエクスポート
- print_preview: 印刷プレビュー
- file:
+ # File shortcuts (for help panel)
+ file:
+ export_pdf: PDF へエクスポート
+ print_preview: 印刷プレビュー
new: "新しいファイル"
open: "ファイルを開く"📝 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.
| export_pdf: PDF へエクスポート | |
| print_preview: 印刷プレビュー | |
| file: | |
| # File shortcuts (for help panel) | |
| file: | |
| export_pdf: PDF へエクスポート | |
| print_preview: 印刷プレビュー |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@locales/ja.yaml` around lines 563 - 565, The two entries currently live under
shortcuts.commands (shortcuts.commands.export_pdf and
shortcuts.commands.print_preview) due to wrong indentation; move those keys so
they are children of shortcuts.file (i.e., change their indentation/nesting so
they become shortcuts.file.export_pdf and shortcuts.file.print_preview) so the
help panel which looks up shortcuts.file.* can find them.
| run_finished: |- | ||
| 実行完了 : | ||
| {output} | ||
| run_failed: |- | ||
| 実行失敗 : | ||
| {error} |
There was a problem hiding this comment.
補間プレースホルダー形式が他キーと不一致です
Line 754 と Line 757 は {output} / {error} ですが、このファイル内の他キーは %{...} 形式です。i18n 補間方式が %{} 前提なら値が展開されず生文字列になります。
💡 Suggested fix
run_finished: |-
実行完了 :
- {output}
+ %{output}
run_failed: |-
実行失敗 :
- {error}
+ %{error}🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@locales/ja.yaml` around lines 752 - 757, The interpolation placeholders in
the run_finished and run_failed entries use {output} and {error} which are
inconsistent with the rest of this locale (which uses %{...}); update the
placeholders in run_finished and run_failed to use %{output} and %{error}
respectively so they match the i18n interpolation format used elsewhere
(preserve existing line breaks/pipe literal style for YAML).
| warning_line: '行 %{line} :' | ||
| workspace: |
There was a problem hiding this comment.
warning_line が workspace ではなく直前セクション配下になっています
Line 852 は Line 853 より前にあり、現在は workspace.warning_line ではなく前段セクションの子キーになります。workspace.warning_line を参照する実装だと未翻訳扱いになります。
💡 Suggested fix
- warning_line: '行 %{line} :'
workspace:
+ warning_line: '行 %{line} :'
close_folder: "フォルダーを閉じる"📝 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.
| warning_line: '行 %{line} :' | |
| workspace: | |
| workspace: | |
| warning_line: '行 %{line} :' | |
| close_folder: "フォルダーを閉じる" |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@locales/ja.yaml` around lines 852 - 853, The key warning_line is currently
defined outside the workspace mapping, so code expecting workspace.warning_line
will miss it; move the warning_line entry to be a child of the workspace section
(indent it under workspace) so it becomes workspace.warning_line and retains the
value '行 %{line} :'.
| print_preview: 🖨 印刷プレビュー... | ||
| welcome: | ||
| subtitle: "エディタを設定して利用を開始しましょう。" |
There was a problem hiding this comment.
print_preview が welcome 配下ではなく ribbon 配下に入っています
Line 902 は Line 903 の welcome: より前にあるため、welcome.print_preview ではなく ribbon.print_preview として解釈されます。Welcome 画面向けの文言ならキー位置を移動してください。
💡 Suggested fix
- print_preview: 🖨 印刷プレビュー...
welcome:
+ print_preview: 🖨 印刷プレビュー...
subtitle: "エディタを設定して利用を開始しましょう。"📝 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.
| print_preview: 🖨 印刷プレビュー... | |
| welcome: | |
| subtitle: "エディタを設定して利用を開始しましょう。" | |
| welcome: | |
| print_preview: 🖨 印刷プレビュー... | |
| subtitle: "エディタを設定して利用を開始しましょう。" |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@locales/ja.yaml` around lines 902 - 904, The YAML key print_preview is
currently placed before the welcome: block so it becomes ribbon.print_preview;
to fix, move or re-indent the print_preview entry so it is nested under the
welcome: mapping (i.e., as welcome.print_preview) if the string is for the
Welcome screen, or alternatively move it under ribbon: if it truly belongs to
the ribbon; adjust indentation accordingly to ensure the correct parent key
(reference keys: print_preview, welcome, ribbon).
Translations update from Hosted Weblate for Ferrite/Ferrite UI.
Current translation status:
Summary by CodeRabbit
Release Notes