Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions locales/ja.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ settings:
use_spaces: "インデントにスペースを使用"
use_spaces_tooltip: "インデントにタブの代わりにスペースを使用する"
vim_mode: "Vim モード"
vim_mode_tooltip: "Vimスタイルのモーダル編集を、通常モード、挿入モード、ビジュアルモードで有効にします。ナビゲーションには hjkl、挿入には i、通常モードには Escを使用します。"
vim_mode_tooltip: "Vimスタイルのモーダル編集を、通常モード、挿入モード、ビジュアルモードで有効にします。ナビゲーションには hjkl、挿入には
i、通常モードには Escを使用します。"
Comment on lines +151 to +152
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
python - <<'PY'
import sys, subprocess, pkgutil

if pkgutil.find_loader("yaml") is None:
    subprocess.check_call([sys.executable, "-m", "pip", "install", "-q", "PyYAML"])

import yaml

with open("locales/ja.yaml", encoding="utf-8") as f:
    data = yaml.safe_load(f)

value = data["settings"]["editor"]["vim_mode_tooltip"]
print(repr(value))
print("contains_newline =", "\n" in value)
PY

Repository: OlaProeis/Ferrite

Length of output: 172


Replace the wrapped quoted scalar with a literal block scalar to preserve newlines.

The YAML parser folds the double-quoted scalar into a single line, removing the intended line break. Use |- (literal block scalar, stripped final newline) to ensure the tooltip renders correctly with the line break intact.

Suggested fix
-    vim_mode_tooltip: "Vimスタイルのモーダル編集を、通常モード、挿入モード、ビジュアルモードで有効にします。ナビゲーションには hjkl、挿入には
-      i、通常モードには Escを使用します。"
+    vim_mode_tooltip: |-
+      Vimスタイルのモーダル編集を、通常モード、挿入モード、ビジュアルモードで有効にします。ナビゲーションには hjkl、挿入には
+      i、通常モードには Esc を使用します。
📝 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.

Suggested change
vim_mode_tooltip: "Vimスタイルのモーダル編集を、通常モード、挿入モード、ビジュアルモードで有効にします。ナビゲーションには hjkl、挿入には
i、通常モードには Escを使用します。"
vim_mode_tooltip: |-
Vimスタイルのモーダル編集を、通常モード、挿入モード、ビジュアルモードで有効にします。ナビゲーションには hjkl、挿入には
i、通常モードには Esc を使用します。
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@locales/ja.yaml` around lines 151 - 152, Replace the quoted, folded scalar
value for the vim_mode_tooltip key with a literal block scalar (use "|-"
followed by the tooltip lines) so the newline is preserved; update the value for
vim_mode_tooltip to a |- literal block, keep the same indentation level as the
key, place the two lines inside the block exactly as intended, and ensure
spacing/indentation matches the surrounding YAML to avoid parsing errors.

max_line_width: "最大行幅"
custom_width: "カスタム - ピクセル幅を指定"
code_folding: "コードの折りたたみ"
Expand Down Expand Up @@ -177,6 +178,15 @@ settings:
paragraph_indent_hint: "CJK タイポグラフィ規約に基づく行頭インデント"
paragraph_indent_custom: "カスタム"
paragraph_indent_custom_desc: "カスタム em 値"
complex_scripts: 追加スクリプト
complex_scripts_hint:
アラビア語、ベンガル語、デーバナーガリー語、タイ語、ヘブライ語、タミル語、グルジア語、アルメニア語、エチオピア語などの文字体系のフォントを事前に選択できます。これらの文字体系を含むファイルを開くと、フォントがオンデマンドで読み込まれます。
Comment on lines +181 to +183
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

complex_scripts is mistranslated here.

追加スクリプト reads like add-on scripts, but this section is about script/font categories such as Arabic, Bengali, and Devanagari. A label closer to 複雑な文字体系 or 複雑なスクリプト would match the UI intent better.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@locales/ja.yaml` around lines 181 - 183, The translation for the key
complex_scripts is misleadingly "追加スクリプト"; update the value for complex_scripts
in locales/ja.yaml to a phrase that conveys script/font categories (e.g.,
"複雑な文字体系" or "複雑なスクリプト") so it correctly reflects the UI intent listing script
families like Arabic, Bengali, Devanagari, etc.; leave complex_scripts_hint
unchanged.

complex_script_default: 既定 (システム)
default_language: 既定の言語
default_language_hint: ファイルパスから言語が検出されない場合に、保存されていない/新しいドキュメントで構文を強調表示する言語
default_language_auto: 自動 (なし)
header_spacing: ヘッダの間隔
header_spacing_hint: レンダリング表示でのヘッダ (H1-H6) 間の縦方向の間隔
preview:
sync_scroll: "スクロールの同期"
default_view: "既定の表示モード"
Expand Down Expand Up @@ -569,7 +579,7 @@ notification:
renamed_to: "名前の変更 : %{name}"
deleted: "削除済み : %{name}"
opened_background: "バックグラウンドで開く : %{name}"
settings_reset: "設定をデフォルトにリセット"
settings_reset: "設定を既定値にリセット"
encoding_changed: "エンコーディングが %{encoding} に変更されました"
reloaded_single: "再読み込み済み : %{name}"
reloaded_multiple: "%{count} 個のファイルがディスクから再読み込みされました"
Expand Down Expand Up @@ -692,7 +702,9 @@ pipeline:
run_tooltip: "コマンドを実行 (Enter)"
stdout: "stdout"
stderr: "stderr"
hint: "上の欄にコマンドを入力して、ドキュメントをパイプ処理します。\n例 :\n• jq '.' - JSON を整形\n• jq '.items[]' - 配列項目を抽出\n• yq '.data' - YAML フィールドを抽出\n• grep 'pattern' - パターンを検索"
hint: "上の欄にコマンドを入力して、ドキュメントをパイプ処理します。\n例 :\n• jq '.' - JSON を整形\n• jq
'.items[]' - 配列項目を抽出\n• yq '.data' - YAML フィールドを抽出\n• grep 'pattern'\
\ - パターンを検索"
no_output_success: "(コマンドは出力を生成しませんでした)"

# Encoding
Expand Down