Core: i18n.js module with t(), setLocale(), initI18n() - Flat key→string JSON locale files (fr.json + en.json, 165 keys) - data-i18n / data-i18n-placeholder / data-i18n-attr DOM attributes - Live locale switch via setLocale() - no page reload - Language detection: localStorage > navigator.language > 'fr' - Fallback: missing key → French → raw key Wired into: - app.js: await initI18n() early in init() - config.js: profile save → await setLocale(), toasts + confirm via t() - auth.js: network error toast via t() - index.html: data-i18n on login form, profile section, search placeholder
272 lines
9.1 KiB
JSON
272 lines
9.1 KiB
JSON
{
|
|
"_meta": { "locale": "en", "name": "English" },
|
|
|
|
"header.logo": "ObsiGate",
|
|
"header.search_placeholder": "Search all vaults...",
|
|
"header.config": "Settings",
|
|
"header.help": "Help",
|
|
"header.profile": "Profile",
|
|
"header.logout": "Sign out",
|
|
"header.refresh": "Refresh",
|
|
"header.install_app": "Install app",
|
|
"header.admin_panel": "Administration",
|
|
|
|
"sidebar.filter_placeholder": "Filter files...",
|
|
"sidebar.tab_vaults": "Vaults",
|
|
"sidebar.tab_tags": "Tags",
|
|
"sidebar.tab_recent": "Recent",
|
|
"sidebar.tab_saved": "Searches",
|
|
"sidebar.loading": "Loading...",
|
|
"sidebar.no_results": "No results",
|
|
"sidebar.vault_context_all": "All vaults",
|
|
|
|
"search.operators_help": "Operators: tag:word, vault:name, title:word, path:word, ext:md",
|
|
"search.results_count": "{count} result(s)",
|
|
"search.no_results": "No results found",
|
|
"search.loading": "Searching...",
|
|
"search.error": "Search error",
|
|
"search.save_search": "Save search",
|
|
"search.sort_relevance": "Relevance",
|
|
"search.sort_date": "Date",
|
|
"search.sort_title": "Title",
|
|
"search.facet_tags": "Tags",
|
|
"search.facet_vaults": "Vaults",
|
|
"search.filters": "Filters",
|
|
"search.case_sensitive": "Case sensitive",
|
|
"search.whole_word": "Whole word",
|
|
"search.regex": "Regular expression",
|
|
|
|
"viewer.source": "Source",
|
|
"viewer.markdown": "Markdown",
|
|
"viewer.edit": "Edit",
|
|
"viewer.raw": "Raw",
|
|
"viewer.copy": "Copy",
|
|
"viewer.popout": "Open in popup",
|
|
"viewer.download": "Download",
|
|
"viewer.share": "Share",
|
|
"viewer.backlinks": "Backlinks",
|
|
"viewer.toc": "Table of contents",
|
|
"viewer.outline": "Outline",
|
|
"viewer.loading": "Loading file...",
|
|
"viewer.error": "Loading error",
|
|
"viewer.binary_unsupported": "Unsupported binary file",
|
|
"viewer.binary_download": "Download file",
|
|
"viewer.pdf_pages": "{count} pages",
|
|
|
|
"editor.save": "Save",
|
|
"editor.cancel": "Cancel",
|
|
"editor.saved": "Saved ✓",
|
|
"editor.unsaved": "Unsaved changes",
|
|
"editor.find": "Find in file...",
|
|
"editor.replace": "Replace",
|
|
"editor.find_regex": "Regex",
|
|
"editor.find_case": "Case sensitive",
|
|
"editor.find_whole": "Whole word",
|
|
"editor.no_results": "No results",
|
|
"editor.close": "Close",
|
|
|
|
"ai.toolbar_edit": "Edit",
|
|
"ai.toolbar_tone": "Tone",
|
|
"ai.toolbar_translate": "Translate",
|
|
"ai.toolbar_generate": "Generate",
|
|
"ai.toolbar_rewrite": "Rewrite",
|
|
"ai.toolbar_toolbox": "Toolbox",
|
|
"ai.improve": "Improve",
|
|
"ai.fix_spelling": "Fix spelling",
|
|
"ai.shorter": "Shorter",
|
|
"ai.longer": "Longer",
|
|
"ai.simplify": "Simplify",
|
|
"ai.professional": "Professional tone",
|
|
"ai.casual": "Casual tone",
|
|
"ai.translate_to": "Translate to {lang}",
|
|
"ai.explain": "Explain",
|
|
"ai.summarize": "Summarize",
|
|
"ai.continue": "Continue",
|
|
"ai.to_list": "Convert to list",
|
|
"ai.to_table": "Convert to table",
|
|
"ai.frontmatter": "Generate frontmatter",
|
|
"ai.to_canvas": "Convert to Canvas",
|
|
"ai.custom_rewrite": "Custom rewrite",
|
|
"ai.no_api_key": "No API key configured",
|
|
"ai.select_text": "Select text to process",
|
|
"ai.done": "AI: text processed",
|
|
|
|
"dashboard.welcome": "Welcome to ObsiGate",
|
|
"dashboard.stats": "Statistics",
|
|
"dashboard.bookmarks": "Bookmarks",
|
|
"dashboard.conflicts": "Conflicts",
|
|
"dashboard.recent": "Recent",
|
|
"dashboard.total_files": "Total files",
|
|
"dashboard.total_tags": "Unique tags",
|
|
"dashboard.total_size": "Total size",
|
|
"dashboard.vaults_count": "Vaults",
|
|
"dashboard.no_bookmarks": "No bookmarks",
|
|
"dashboard.no_conflicts": "No conflicts",
|
|
"dashboard.no_recent": "No recent files",
|
|
|
|
"config.title": "Settings",
|
|
"config.profile": "User profile",
|
|
"config.profile_desc": "Personal preferences to customize your ObsiGate experience.",
|
|
"config.lang_label": "Preferred language",
|
|
"config.lang_hint": "Used by autocomplete and ghost text.",
|
|
"config.display_name": "Display name",
|
|
"config.save": "Save",
|
|
"config.logout": "Sign out",
|
|
"config.saved": "✓ Saved",
|
|
"config.about": "About",
|
|
"config.about_loading": "Loading...",
|
|
"config.about_error": "Loading error",
|
|
"config.ai_keys": "AI API keys",
|
|
"config.ai_keys_desc": "Configure API keys for the AI editor.",
|
|
"config.hidden_files": "Hidden files",
|
|
"config.hidden_files_desc": "Manage display of hidden files and folders.",
|
|
"config.webhooks": "Webhooks",
|
|
"config.webhooks_desc": "HTTP notifications to external services on file changes.",
|
|
"config.shares": "Public shares",
|
|
"config.shares_desc": "Manage public share links for your documents.",
|
|
"config.backups": "Backups",
|
|
"config.backups_desc": "Manage automatic file backups.",
|
|
"config.diagnostics": "Diagnostics",
|
|
"config.diagnostics_desc": "Technical information about the server state.",
|
|
"config.reindex": "Reindex",
|
|
"config.reindex_desc": "Rebuild the search index for all vaults.",
|
|
"config.client_config": "Client configuration",
|
|
"config.server_config": "Server configuration",
|
|
|
|
"help.title": "ObsiGate Help",
|
|
"help.shortcuts": "Keyboard shortcuts",
|
|
"help.search_operators": "Search operators",
|
|
"help.markdown": "Markdown syntax",
|
|
"help.about": "About",
|
|
|
|
"auth.login_title": "Secure access to your vaults",
|
|
"auth.username": "Username",
|
|
"auth.password": "Password",
|
|
"auth.login_button": "Sign in",
|
|
"auth.remember_me": "Remember me",
|
|
"auth.login_error": "Invalid credentials",
|
|
"auth.network_error": "Network error — check your connection",
|
|
"auth.logged_out": "Signed out",
|
|
"auth.session_expired": "Session expired, please sign in again",
|
|
|
|
"share.title": "Public share",
|
|
"share.create": "Create share link",
|
|
"share.copy_link": "Copy link",
|
|
"share.revoke": "Revoke",
|
|
"share.expires": "Expires on",
|
|
"share.never": "Never",
|
|
"share.copied": "Link copied!",
|
|
|
|
"backup.title": "Backups",
|
|
"backup.restore": "Restore",
|
|
"backup.delete": "Delete",
|
|
"backup.diff": "Compare",
|
|
"backup.purge": "Purge",
|
|
"backup.no_backups": "No backups",
|
|
"backup.preview": "Preview",
|
|
"backup.version": "Version from {date}",
|
|
|
|
"graph.title": "Graph",
|
|
"graph.fullscreen": "Full screen",
|
|
"graph.export_png": "Export PNG",
|
|
"graph.depth": "Depth",
|
|
"graph.filter_tag": "Filter by tag",
|
|
"graph.filter_type": "Filter by type",
|
|
"graph.focus_mode": "Focus mode",
|
|
"graph.back": "Back",
|
|
"graph.forward": "Forward",
|
|
"graph.parent": "Parent",
|
|
"graph.loading": "Building graph...",
|
|
|
|
"mermaid.code": "Code",
|
|
"mermaid.preview": "Preview",
|
|
"mermaid.copy_svg": "Copy SVG",
|
|
"mermaid.download_png": "Download PNG",
|
|
"mermaid.zoom_in": "Zoom in",
|
|
"mermaid.zoom_out": "Zoom out",
|
|
|
|
"palette.search_files": "Search files...",
|
|
"palette.search_commands": "Type a command...",
|
|
|
|
"offline.status": "Offline",
|
|
"offline.pending": "{count} pending change(s)",
|
|
"offline.sync_now": "Sync now",
|
|
"offline.conflict_title": "Sync conflict",
|
|
"offline.keep_local": "Keep local version",
|
|
"offline.keep_server": "Keep server version",
|
|
|
|
"conflict.resolve_local": "Keep local version",
|
|
"conflict.resolve_conflict": "Keep conflict version",
|
|
"conflict.no_conflicts": "No conflicts detected",
|
|
"conflict.resolved": "Conflict resolved",
|
|
|
|
"common.loading": "Loading...",
|
|
"common.error": "Error",
|
|
"common.ok": "OK",
|
|
"common.cancel": "Cancel",
|
|
"common.close": "Close",
|
|
"common.save": "Save",
|
|
"common.delete": "Delete",
|
|
"common.confirm": "Confirm",
|
|
"common.yes": "Yes",
|
|
"common.no": "No",
|
|
"common.search": "Search",
|
|
"common.create": "Create",
|
|
"common.edit": "Edit",
|
|
"common.rename": "Rename",
|
|
"common.move": "Move",
|
|
"common.copy": "Copy",
|
|
"common.copied": "Copied!",
|
|
"common.download": "Download",
|
|
"common.refresh": "Refresh",
|
|
"common.back": "Back",
|
|
"common.next": "Next",
|
|
"common.previous": "Previous",
|
|
"common.all": "All",
|
|
"common.none": "None",
|
|
"common.actions": "Actions",
|
|
|
|
"toast.saved": "Saved",
|
|
"toast.deleted": "Deleted",
|
|
"toast.created": "Created",
|
|
"toast.renamed": "Renamed",
|
|
"toast.moved": "Moved",
|
|
"toast.copied": "Copied!",
|
|
"toast.error_rename": "Cannot rename this item",
|
|
"toast.error_delete": "Delete error",
|
|
"toast.error_load": "Loading error",
|
|
"toast.error_network": "Network error",
|
|
"toast.reindex_started": "Reindexing...",
|
|
"toast.reindex_done": "Reindexing complete",
|
|
"toast.index_reloaded": "Full index reloaded",
|
|
"toast.installed": "ObsiGate installed successfully!",
|
|
"toast.not_found_tree": "Item not found in tree",
|
|
"toast.config_saved": "Configuration saved",
|
|
"toast.config_client_saved": "Client settings saved",
|
|
"toast.config_reset": "Configuration reset",
|
|
|
|
"confirm.logout": "Are you sure you want to sign out?",
|
|
"confirm.delete_file": "Permanently delete this file?",
|
|
"confirm.delete_dir": "Delete this folder and all its contents?",
|
|
|
|
"pwa.install_title": "Install ObsiGate",
|
|
"pwa.install_desc": "Install this app on your device for quick access.",
|
|
"pwa.install_button": "Install",
|
|
"pwa.dismiss": "Later",
|
|
|
|
"file.new_file": "New file",
|
|
"file.new_folder": "New folder",
|
|
"file.rename": "Rename",
|
|
"file.delete": "Delete",
|
|
"file.copy_path": "Copy path",
|
|
"file.properties": "Properties",
|
|
"file.graph_view": "Graph view",
|
|
|
|
"vault.add_dynamic": "Add vault",
|
|
"vault.remove_dynamic": "Remove vault",
|
|
"vault.reindex": "Reindex vault",
|
|
|
|
"theme.light": "Light",
|
|
"theme.dark": "Dark"
|
|
}
|