// MARK: - Onboarding
"onboarding.language.title" = "Choose Your Language";
"onboarding.language.subtitle" = "You can change this later in Settings.";
"onboarding.welcome.title" = "Welcome to BookStax";
"onboarding.welcome.subtitle" = "Your self-hosted knowledge base,\nnow in your pocket.";
"onboarding.welcome.cta" = "Get Started";
"onboarding.server.title" = "Where is your BookStack?";
"onboarding.server.subtitle" = "Enter the web address of your BookStack installation. This is the same URL you use in your browser.";
"onboarding.server.placeholder" = "https://wiki.mycompany.com";
"onboarding.server.next" = "Next";
"onboarding.server.error.empty" = "Please enter your BookStack server address.";
"onboarding.server.error.invalid" = "That doesn't look like a valid web address. Try something like https://bookstack.example.com";
"onboarding.server.warning.http" = "Non-encrypted connection detected. Your data may be visible on the network.";
"onboarding.server.warning.remote" = "This looks like a public internet address. Exposing BookStack to the internet is a security risk — consider using a VPN or keeping it on your local network.";
"onboarding.token.title" = "Connect with an API Token";
"onboarding.token.subtitle" = "BookStack uses API tokens for secure access. You'll need to create one in your BookStack profile.";
"onboarding.token.help" = "How do I get a token?";
"onboarding.token.help.steps" = "1. Open your BookStack instance in a browser\n2. Click your avatar → Edit Profile\n3. Scroll to \"API Tokens\" → tap \"Create Token\"\n4. Set a name (e.g. \"My iPhone\") and expiry date\n5. Copy the Token ID and Secret — they won't be shown again\n\nNote: Your account needs the \"Access System API\" permission. Contact your admin if you don't see the API Tokens section.";
"onboarding.token.id.label" = "Token ID";
"onboarding.token.secret.label" = "Token Secret";
"onboarding.token.paste" = "Paste from clipboard";
"onboarding.token.verify" = "Verify Connection";
"onboarding.verify.ready" = "Ready to verify";
"onboarding.verify.reaching" = "Reaching server…";
"onboarding.verify.found" = "Found %@";
"onboarding.verify.checking" = "Checking credentials…";
"onboarding.verify.connected" = "Connected to %@";
"onboarding.verify.server.failed" = "Server unreachable";
"onboarding.verify.token.failed" = "Authentication failed";
"onboarding.verify.phase.server" = "Reaching server";
"onboarding.verify.phase.token" = "Verifying token";
"onboarding.verify.goback" = "Go Back";
"onboarding.verify.retry" = "Try Again";
"onboarding.ready.title" = "You're all set!";
"onboarding.ready.subtitle" = "BookStax is connected to your knowledge base.";
"onboarding.ready.cta" = "Open My Library";
"onboarding.ready.feature.library" = "Browse Library";
"onboarding.ready.feature.library.desc" = "Navigate shelves, books, chapters and pages";
"onboarding.ready.feature.search" = "Search Everything";
"onboarding.ready.feature.search.desc" = "Find any content instantly";
"onboarding.ready.feature.create" = "Create & Edit";
"onboarding.ready.feature.create.desc" = "Write new pages in Markdown";

// MARK: - Tabs
"tab.quicknote" = "Quick Note";
"tab.library" = "Library";
"tab.search" = "Search";
"tab.create" = "Create";
"tab.settings" = "Settings";

// MARK: - Quick Note
"quicknote.title" = "Quick Note";
"quicknote.field.title" = "Title";
"quicknote.field.title.placeholder" = "Note title";
"quicknote.field.content" = "Content";
"quicknote.section.location" = "Location";
"quicknote.section.tags" = "Tags";
"quicknote.shelf.label" = "Shelf";
"quicknote.shelf.none" = "Any Shelf";
"quicknote.shelf.loading" = "Loading shelves…";
"quicknote.book.label" = "Book";
"quicknote.book.none" = "Select a book";
"quicknote.book.loading" = "Loading books…";
"quicknote.tags.loading" = "Loading tags…";
"quicknote.tags.add" = "Add Tags";
"quicknote.tags.edit" = "Edit Tags";
"quicknote.tags.empty" = "No tags available on this server.";
"quicknote.tags.picker.title" = "Select Tags";
"quicknote.save" = "Save";
"quicknote.error.nobook" = "Please select a book first.";
"quicknote.saved.online" = "Note saved as a new page.";
"quicknote.saved.offline" = "Saved locally — will upload when online.";
"quicknote.pending.title" = "Offline Notes";
"quicknote.pending.upload" = "Upload Now";
"quicknote.pending.uploading" = "Uploading…";

// MARK: - Library
"library.title" = "Library";
"library.loading" = "Loading library…";
"library.empty.title" = "No Shelves";
"library.empty.message" = "Your library is empty. Create a shelf in BookStack to get started.";
"library.refresh" = "Refresh";
"library.shelves" = "Shelves";
"library.updated" = "Updated %@";
"library.newshelf" = "New Shelf";

// MARK: - Shelf
"shelf.loading" = "Loading books…";
"shelf.empty.title" = "No Books";
"shelf.empty.message" = "This shelf has no books yet.";
"shelf.newbook" = "New Book";

// MARK: - Book
"book.loading" = "Loading content…";
"book.empty.title" = "No Content";
"book.empty.message" = "This book has no chapters or pages yet.";
"book.addpage" = "Add Page";
"book.newpage" = "New Page";
"book.newchapter" = "New Chapter";
"book.pages" = "Pages";
"book.delete" = "Delete";
"book.open" = "Open";
"book.sharelink" = "Share Link";
"book.addcontent" = "Add content";

// MARK: - Chapter
"chapter.new.title" = "New Chapter";
"chapter.new.name" = "Chapter name";
"chapter.new.description" = "Description (optional)";
"chapter.details" = "Chapter Details";
"chapter.cancel" = "Cancel";
"chapter.create" = "Create";

// MARK: - Page Reader
"reader.comments" = "Comments (%d)";
"reader.comments.empty" = "No comments yet. Be the first!";
"reader.comment.placeholder" = "Add a comment…";
"reader.comment.post" = "Post comment";
"reader.edit" = "Edit page";
"reader.share" = "Share page";
"reader.nocontent" = "No content";

// MARK: - Editor
"editor.new.title" = "New Page";
"editor.edit.title" = "Edit Page";
"editor.title.placeholder" = "Page title";
"editor.tab.write" = "Write";
"editor.tab.preview" = "Preview";
"editor.save" = "Save";
"editor.close" = "Close";
"editor.discard.keepediting" = "Keep Editing";
"editor.close.unsaved.title" = "Close without saving?";
"editor.close.unsaved.confirm" = "Close";
"editor.image.uploading" = "Uploading image…";
"editor.html.notice" = "This page uses HTML formatting. Editing here will convert it to Markdown.";

// MARK: - Search
"search.title" = "Search";
"search.prompt" = "Search books, pages, chapters…";
"search.loading" = "Searching…";
"search.empty.title" = "Search BookStack";
"search.empty.message" = "Search for pages, books, chapters, and shelves across your entire knowledge base.";
"search.recent" = "Recent Searches";
"search.recent.clear" = "Clear";
"search.filter" = "Filter search results";
"search.filter.all" = "All";
"search.opening" = "Opening…";
"search.error.title" = "Could not open result";
"search.type.page" = "Pages";
"search.type.book" = "Books";
"search.type.chapter" = "Chapters";
"search.type.shelf" = "Shelves";

// MARK: - New Content
"create.title" = "Create";
"create.section" = "What would you like to create?";
"create.page.title" = "New Page";
"create.page.desc" = "Write a new page in Markdown";
"create.book.title" = "New Book";
"create.book.desc" = "Organise pages into a book";
"create.shelf.title" = "New Shelf";
"create.shelf.desc" = "Group books into a shelf";
"create.book.name" = "Book name";
"create.book.details" = "Book Details";
"create.book.shelf.header" = "Shelf (optional)";
"create.book.shelf.footer" = "Assign this book to a shelf to keep your library organised.";
"create.book.shelf.none" = "None";
"create.book.shelf.loading" = "Loading shelves…";
"create.shelf.name" = "Shelf name";
"create.shelf.details" = "Shelf Details";
"create.page.filter.shelf" = "Filter by Shelf (optional)";
"create.page.book.header" = "Book";
"create.page.book.footer" = "The page will be created inside this book.";
"create.page.book.select" = "Select a book…";
"create.page.nobooks" = "No books available";
"create.page.nobooks.shelf" = "No books in this shelf";
"create.page.loading" = "Loading…";
"create.page.next" = "Next";
"create.description" = "Description (optional)";
"create.cancel" = "Cancel";
"create.create" = "Create";
"create.loading.books" = "Loading books…";
"create.any.shelf" = "Any shelf";

// MARK: - Settings
"settings.title" = "Settings";
"settings.account" = "Account";
"settings.account.connected" = "Connected";
"settings.account.copyurl" = "Copy Server URL";
"settings.account.signout" = "Sign Out";
"settings.signout.alert.title" = "Sign Out";
"settings.signout.alert.message" = "This will remove your saved credentials and require you to sign in again.";
"settings.signout.alert.confirm" = "Sign Out";
"settings.signout.alert.cancel" = "Cancel";
"settings.sync" = "Sync";
"settings.sync.wifionly" = "Sync on Wi-Fi only";
"settings.sync.now" = "Sync Now";
"settings.sync.lastsynced" = "Last synced";
"settings.about" = "About";
"settings.about.version" = "Version";
"settings.about.docs" = "BookStack Documentation";
"settings.about.issue" = "Report an Issue";
"settings.about.credit" = "BookStack is open-source software by Dan Brown.";
"settings.language" = "Language";
"settings.language.header" = "Language";

// MARK: - Offline
"offline.banner" = "You're offline — showing cached content";

// MARK: - Appearance
"settings.appearance" = "Appearance";
"settings.appearance.theme" = "Theme";
"settings.appearance.theme.system" = "System";
"settings.appearance.theme.light" = "Light";
"settings.appearance.theme.dark" = "Dark";
"settings.appearance.accent" = "Accent Colour";

// MARK: - Reader Settings
"settings.reader" = "Reader";
"settings.reader.showcomments" = "Show Comments";

// MARK: - Data
"settings.data" = "Data";
"settings.data.clearcache" = "Clear Cache";
"settings.data.clearcache.footer" = "Clears cached server responses. Useful if titles or content appear outdated after an update.";
"settings.data.clearcache.done" = "Cache Cleared";

// MARK: - Logging
"settings.log" = "Logging";
"settings.log.enabled" = "Enable Logging";
"settings.log.share" = "Share Log";
"settings.log.clear" = "Clear Log";
"settings.log.viewer.title" = "App Log";
"settings.log.entries" = "%d entries";

// MARK: - Tags
"editor.tags.title" = "Tags";
"editor.tags.add" = "Add Tag";
"editor.tags.create" = "Create New Tag";
"editor.tags.name" = "Tag name";
"editor.tags.value" = "Value (optional)";
"editor.tags.current" = "Assigned Tags";
"editor.tags.available" = "Available Tags";
"editor.tags.loading" = "Loading tags…";
"editor.tags.new" = "Create Tag";
"editor.tags.search" = "Search tags…";
"editor.tags.suggestions" = "Suggestions";
"search.filter.type" = "Content Type";
"search.filter.tag" = "Tag";
"search.filter.tag.clear" = "Clear Tag Filter";

// MARK: - Servers
"settings.servers" = "Servers";
"settings.servers.add" = "Add Server…";
"settings.servers.active" = "Active";
"settings.servers.switch.title" = "Switch Server";
"settings.servers.switch.message" = "Switch to \"%@\"? The app will reload.";
"settings.servers.switch.confirm" = "Switch";
"settings.servers.delete.title" = "Remove Server";
"settings.servers.delete.message" = "Remove \"%@\"? Its cached content will be cleared. This cannot be undone.";
"settings.servers.delete.confirm" = "Remove";
"settings.servers.delete.active.title" = "Remove Active Server?";
"settings.servers.delete.active.message" = "\"%@\" is your current server. Removing it will clear all cached content and sign you out of this server.";
"settings.servers.edit" = "Edit";
"settings.servers.edit.title" = "Edit Server";
"settings.servers.edit.changecreds" = "Update API Token";
"settings.servers.edit.changecreds.footer" = "Enable to replace the stored Token ID and Secret for this server.";
"onboarding.server.name.label" = "Server Name";
"onboarding.server.name.placeholder" = "e.g. Work Wiki";

// MARK: - Donations
"settings.donate" = "Support BookStax";
"settings.donate.page" = "Page";
"settings.donate.book" = "Book";
"settings.donate.encyclopedia" = "Encyclopedia";
"settings.donate.footer" = "Enjoying BookStax? Your support helps keep the app free and in active development. Thank you!";
"settings.donate.loading" = "Loading…";
"settings.donate.error" = "Could not load donation options.";
"settings.donate.empty" = "No donation options available.";
"settings.donate.donated.on" = "Donated on %@";
"settings.donate.pending" = "Pending confirmation…";

// MARK: - Support Nudge
"nudge.title" = "Help keep BookStax going";
"nudge.subtitle" = "BookStax is a passion project — free, open, and ad-free. Your support helps keep it maintained, modern, and growing.";
"nudge.dismiss" = "Maybe later";

// MARK: - Supporter Badge
"supporter.badge.title" = "BookStax Supporter";
"supporter.badge.subtitle" = "Thank you for supporting the development!";

// MARK: - Common
"common.ok" = "OK";
"common.cancel" = "Cancel";
"common.retry" = "Retry";
"common.error" = "Unknown error";
"common.done" = "Done";
