From 1d1a1009ba795d70c0c06a2ffcc607c5704bf675 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 8 Dec 2025 21:20:19 +0800 Subject: Add i18n support for jvii editor messages - Add error, message, and status translations for English and Chinese - Replace hardcoded strings with t!() macro calls - Update file precheck to return errors instead of creating files --- locales/help_docs/en.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'locales/help_docs/en.yml') diff --git a/locales/help_docs/en.yml b/locales/help_docs/en.yml index ab175ef..80facb0 100644 --- a/locales/help_docs/en.yml +++ b/locales/help_docs/en.yml @@ -943,6 +943,26 @@ jv: jvii: hints: | [^S WRITE] [ESC EXIT] + + errors: + no_file_path: "Error: No file path provided" + editor_error: "Editor error: %{error}" + file_error: "File error: %{error}" + file_not_found: "File does not exist: %{path}" + not_a_file: "Path is not a file: %{path}" + init_error: "Failed to initialize editor: %{error}" + raw_mode_error: "Failed to enable raw mode: %{error}" + alternate_screen_error: "Failed to enter alternate screen: %{error}" + save_error: "Failed to save file: %{error}" + render_error: "Render error: %{error}" + + messages: + file_saved: "File saved successfully" + unsaved_changes: "Unsaved changes! Press Ctrl+S to save or Esc again to exit" + modified: " *" + + status: + lines: " lines" editor: update_editor: | -- cgit