Files
knowledge_base/src/lang/en/messages.php
T
Yutaka Kurosaki 1ce1fa23a4 Add documents.delete_translation lang key for editor button
The editor's delete-translation button used `__('messages.documents.delete_translation') ?? __('messages.documents.delete')`, but `__()` returns the key string (not null) on miss so the `??` fallback never fires — the button rendered the literal key. Adds the missing key to all 16 locales (en+ja human-translated, others mirror en) and simplifies the blade to a single `__()` call.

Plan doc also reflects the SQLite dropIndex requirement found during Task 2.
2026-05-10 12:50:57 +09:00

176 lines
6.5 KiB
PHP

<?php
return [
// Navigation
'nav' => [
'dashboard' => 'Dashboard',
'knowledge_base' => 'Knowledge Base',
'profile' => 'Profile',
'user_management' => 'User Management',
'logout' => 'Log Out',
'login' => 'Login',
'register' => 'Register',
],
// Documents
'documents' => [
'title' => 'Documents',
'new_document' => 'New Document',
'edit_document' => 'Edit Document',
'edit' => 'Edit',
'delete' => 'Delete',
'save' => 'Save',
'cancel' => 'Cancel',
'created_by' => 'Created by',
'modified_by' => 'by',
'updated' => 'Updated',
'path' => 'Path',
'last_modified' => 'Last modified',
'no_documents' => 'No documents found',
'search_placeholder' => 'Search documents...',
'create_success' => 'Document created successfully!',
'update_success' => 'Document updated successfully!',
'delete_success' => 'Document deleted successfully!',
'delete_confirm' => 'Are you sure you want to delete this document?',
'linked_references' => 'Linked References',
'title_label' => 'Title',
'title_placeholder' => 'Document Title (use / for folders, e.g. Laravel/Livewire/Components)',
'title_hint' => 'Tip: Use slashes (/) in the title to organize documents into folders automatically',
'content_label' => 'Content',
'content_placeholder' => 'Write your markdown here...',
'saving' => 'Saving...',
'translation_added' => 'Translation added.',
'translation_deleted' => 'Translation deleted.',
'fallback_notice' => 'A translation in your selected language is not available. Showing the :locale version.',
'add_translation' => 'Add translation',
'set_as_default' => 'Set as default',
'delete_translation' => 'Delete translation',
'delete_translation_blocked' => 'The default-language translation cannot be deleted.',
'translation_tabs_label' => 'Languages',
],
// Quick Switcher
'quick_switcher' => [
'title' => 'Quick Switch',
'placeholder' => 'Search documents...',
'no_results' => 'No documents found',
'navigate' => 'to navigate',
'select' => 'to select',
'close' => 'to close',
],
// Admin
'admin' => [
'user_management' => 'User Management',
'new_user' => 'New User',
'edit_user' => 'Edit User',
'create_user' => 'Create User',
'users' => 'Users',
'name' => 'Name',
'email' => 'Email',
'password' => 'Password',
'password_confirmation' => 'Confirm Password',
'password_hint' => 'Leave blank to keep current password.',
'role' => 'Role',
'admin' => 'Administrator',
'user' => 'User',
'grant_admin' => 'Grant administrator privileges',
'created_at' => 'Created',
'actions' => 'Actions',
'edit' => 'Edit',
'delete' => 'Delete',
'no_users' => 'No users found.',
'create_success' => 'User created successfully.',
'update_success' => 'User updated successfully.',
'delete_success' => 'User deleted successfully.',
'cannot_delete_self' => 'You cannot delete yourself.',
'self_admin_warning' => 'Removing your own admin privileges will lock you out of the admin panel.',
],
// Settings
'settings' => [
'language' => 'Language',
'select_language' => 'Select Language',
'language_updated' => 'Language updated successfully.',
],
// Common
'common' => [
'save' => 'Save',
'cancel' => 'Cancel',
'delete' => 'Delete',
'edit' => 'Edit',
'create' => 'Create',
'update' => 'Update',
'back' => 'Back',
'confirm' => 'Confirm',
'yes' => 'Yes',
'no' => 'No',
'loading' => 'Loading...',
'error' => 'Error',
'success' => 'Success',
],
// Auth
'auth' => [
'login' => 'Login',
'register' => 'Register',
'email' => 'Email',
'password' => 'Password',
'remember_me' => 'Remember me',
'forgot_password' => 'Forgot your password?',
'confirm_password' => 'Confirm Password',
'already_registered' => 'Already registered?',
],
// Errors
'errors' => [
'404_title' => 'Page Not Found',
'page_not_found' => 'Page Not Found',
'page_not_found_description' => 'The page you are looking for could not be found.',
'back_to_home' => 'Back to Home',
],
'locale_names' => [
'en' => 'English',
'ja' => 'Japanese',
'zh-CN' => 'Simplified Chinese',
'zh-TW' => 'Traditional Chinese',
'ko' => 'Korean',
'hi' => 'Hindi',
'vi' => 'Vietnamese',
'tr' => 'Turkish',
'de' => 'German',
'fr' => 'French',
'es' => 'Spanish',
'pt-BR' => 'Portuguese (Brazil)',
'ru' => 'Russian',
'uk' => 'Ukrainian',
'it' => 'Italian',
'pl' => 'Polish',
],
// Profile
'profile' => [
'title' => 'Profile',
'information' => 'Profile Information',
'information_description' => "Update your account's profile information and email address.",
'name' => 'Name',
'email' => 'Email',
'email_unverified' => 'Your email address is unverified.',
'resend_verification' => 'Click here to re-send the verification email.',
'verification_sent' => 'A new verification link has been sent to your email address.',
'saved' => 'Saved.',
'update_password' => 'Update Password',
'update_password_description' => 'Ensure your account is using a long, random password to stay secure.',
'current_password' => 'Current Password',
'new_password' => 'New Password',
'confirm_password' => 'Confirm Password',
'delete_account' => 'Delete Account',
'delete_account_description' => 'Once your account is deleted, all of its resources and data will be permanently deleted. Before deleting your account, please download any data or information that you wish to retain.',
'delete_account_confirm' => 'Are you sure you want to delete your account?',
'delete_account_confirm_description' => 'Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.',
],
];