import { __, sprintf } from '@wordpress/i18n';

export const settingsI18n = {
    pluginDev: (link) => sprintf(
        __('Plugin developed by %s!', 'xhtheme-ai-toolbox'),
        `<a href="https://www.xhtheme.com/" target="_blank" class="xht-text-blue-500 xht-underline">${link}</a>`
    ),
    version: (version) => sprintf(__('v%s', 'xhtheme-ai-toolbox'), version),
    pluginVersion: (version) => sprintf(__('Plugin version: %s', 'xhtheme-ai-toolbox'), version),
    basicConfig: __('Basic Configuration', 'xhtheme-ai-toolbox'),
    aiParagraph: __('AI Paragraph', 'xhtheme-ai-toolbox'),
    aiSummary: __('AI Summary', 'xhtheme-ai-toolbox'),
    aiTags: __('AI Tags', 'xhtheme-ai-toolbox'),
    appId: __('Please enter APPID', 'xhtheme-ai-toolbox'),
    appIdDesc: __('Please ensure the APPID is correctly filled! If you need %s information!', 'xhtheme-ai-toolbox'),
    getAppId: __('Get APPID', 'xhtheme-ai-toolbox'),
    defaultModel: __('Default Model', 'xhtheme-ai-toolbox'),
    modelDesc: __('Set the default AI model, you can manually switch to other models when using!', 'xhtheme-ai-toolbox'),
    apiNote: __('Note: Due to resource management for AI inference in the cloud, all current AI services require binding an API key to use!', 'xhtheme-ai-toolbox'),
    paragraphTitle: __('AI Paragraph Generation/Optimization', 'xhtheme-ai-toolbox'),
    paragraphFeature: __('AI Paragraph Feature', 'xhtheme-ai-toolbox'),
    paragraphDesc: __('Use AI models to generate or optimize paragraph content when using paragraph blocks, with support for undo and model switching.', 'xhtheme-ai-toolbox'),
    coreFeature: __('Core feature, cannot be disabled', 'xhtheme-ai-toolbox'),
    summaryTitle: __('AI Article Summary', 'xhtheme-ai-toolbox'),
    summaryFeature: __('AI Summary Feature', 'xhtheme-ai-toolbox'),
    summaryDesc: __('Use AI models to intelligently analyze article content and automatically generate summaries.', 'xhtheme-ai-toolbox'),
    maxSummaryLength: __('Maximum Summary Length', 'xhtheme-ai-toolbox'),
    summaryLengthDesc: __('Set the maximum word count for AI-generated summaries. Adjust the length by dragging the slider.', 'xhtheme-ai-toolbox'),
    wordCount: __('Word Count', 'xhtheme-ai-toolbox'),
    tagsTitle: __('AI Tag Extraction', 'xhtheme-ai-toolbox'),
    tagsFeature: __('AI Tag Feature', 'xhtheme-ai-toolbox'),
    tagsDesc: __('Enable AI models to intelligently analyze article content, automatically extract TAGs, and improve tag information.', 'xhtheme-ai-toolbox'),
    tagsRange: __('Tag Quantity Range', 'xhtheme-ai-toolbox'),
    tagsRangeDesc: __('Set the range of AI-generated tag quantities. Drag both ends of the slider to control the minimum and maximum number of tags.', 'xhtheme-ai-toolbox'),
    minimum: __('Minimum', 'xhtheme-ai-toolbox'),
    maximum: __('Maximum', 'xhtheme-ai-toolbox'),
    newTagStatus: __('New Tag Status', 'xhtheme-ai-toolbox'),
    newTagDesc: __('When adding new TAGs not recorded in the database, choose whether to expand tag SEO titles, tag descriptions, etc., for easy viewing and verification.', 'xhtheme-ai-toolbox'),
    defaultExpand: __('Default Expand', 'xhtheme-ai-toolbox'),
    defaultCollapse: __('Default Collapse', 'xhtheme-ai-toolbox'),    
    saveSuccess: __('Save Successful!', 'xhtheme-ai-toolbox'),
    pluginDevTow: __('Plugin developed by %s!', 'xhtheme-ai-toolbox'),
    settingsChanged: __('Settings changed, please remember to save', 'xhtheme-ai-toolbox'),
    saveAll: __('Save All Settings', 'xhtheme-ai-toolbox'),
    saveError: __('Error saving settings: %s', 'xhtheme-ai-toolbox'),    
    editorWarning: __('The plugin only supports use in the block editor (Gutenberg), not the classic editor', 'xhtheme-ai-toolbox'),    
    helpResources: __('Help Resources', 'xhtheme-ai-toolbox'),
    toBeSupplemented: __('To be supplemented', 'xhtheme-ai-toolbox'),
    domError: __('Cannot find DOM element with ID xhtheme-ai-toolbox-wrapper', 'xhtheme-ai-toolbox'),
    toolbox: __('Toolbox', 'xhtheme-ai-toolbox'),
    version: (version) => sprintf(__('v%s', 'xhtheme-ai-toolbox'), version),
    viewQuota: __('View Quota', 'xhtheme-ai-toolbox'),
    quota: __('Quota', 'xhtheme-ai-toolbox'),
    refreshing: __('Refreshing...', 'xhtheme-ai-toolbox'),
    refreshed: __('Refreshed', 'xhtheme-ai-toolbox'),
    refreshFailed: __('Refresh failed, please try again later', 'xhtheme-ai-toolbox'),
    refreshStatus: __('Refresh Status', 'xhtheme-ai-toolbox'),
    refresh: __('Refresh', 'xhtheme-ai-toolbox'),
    modelConfig: __('Model Configuration', 'xhtheme-ai-toolbox'),
    aiContent: __('AI Content', 'xhtheme-ai-toolbox'),
    aiSummary: __('AI Summary', 'xhtheme-ai-toolbox'),
    aiComments: __('AI Comments', 'xhtheme-ai-toolbox'),
    aiTags: __('AI Tags', 'xhtheme-ai-toolbox'),
    metadataCompletion: __('Metadata Completion', 'xhtheme-ai-toolbox'),
    error: __('Error', 'xhtheme-ai-toolbox'),
    appIdEmpty: __('App ID cannot be empty!', 'xhtheme-ai-toolbox'),
    appIdLength: __('App ID length must be between 15-30 characters!', 'xhtheme-ai-toolbox'),
    saveError: (error) => sprintf(__('Error saving settings: %s', 'xhtheme-ai-toolbox'), error),
    saveFailed: __('Save failed, please check your network connection and try again', 'xhtheme-ai-toolbox'),
    editorSupport: __('This plugin only supports the block editor (Gutenberg) and does not support the classic editor!', 'xhtheme-ai-toolbox'),
    helpResources: __('Help Resources', 'xhtheme-ai-toolbox'),
    pluginDetails: __('Plugin Details', 'xhtheme-ai-toolbox'),
    technicalSupport: __('Technical Support', 'xhtheme-ai-toolbox'),
    domError: __('Cannot find DOM element with ID xhtheme-ai-toolbox-wrapper', 'xhtheme-ai-toolbox'),
    aiSmartSummary: __('AI Smart Summary', 'xhtheme-ai-toolbox'),
    summaryDescription: __('This summary is generated by AI analysis of the article content, for reference only.', 'xhtheme-ai-toolbox'),
    appIdDescription: (link) => sprintf(
        __('Please ensure APPID is correctly filled in! If you need %s information!', 'xhtheme-ai-toolbox'),
        link
    ),
    getAppId: __('Get APPID', 'xhtheme-ai-toolbox'),
    enterAppId: __('Please enter APPID', 'xhtheme-ai-toolbox'),
    defaultModel: __('Default Model', 'xhtheme-ai-toolbox'),
    defaultModelDesc: __('Set the default AI model to use. You can manually switch to other models when using!', 'xhtheme-ai-toolbox'),
    listVersion: (version) => sprintf(__('List Version: %s', 'xhtheme-ai-toolbox'), version),
    updateTime: (time) => sprintf(__('Update Time: %s', 'xhtheme-ai-toolbox'), time),
    forceUpdateModelList: __('Force Update Model List', 'xhtheme-ai-toolbox'),
    updated: __('Updated', 'xhtheme-ai-toolbox'),
    update: __('Update', 'xhtheme-ai-toolbox'),
    concurrentMode: __('Concurrent Mode', 'xhtheme-ai-toolbox'),
    concurrentModeDesc: __('Enable concurrent requests in some scenarios to improve AI data loading speed.', 'xhtheme-ai-toolbox'),
    cloudAiNote: __('Note: Cloud-based AI inference requires API key binding for all AI services!', 'xhtheme-ai-toolbox'),
    autoSelect: __('Auto Select', 'xhtheme-ai-toolbox'),
    savedSuccessfully: __('Saved successfully!', 'xhtheme-ai-toolbox'),
    saveFailed: __('Save failed, please try again later!', 'xhtheme-ai-toolbox'),
    pluginDevelopedBy: (link) => sprintf(
        __('Plugin developed by %s!', 'xhtheme-ai-toolbox'),
        link
    ),
    settingsChanged: __('Settings have been changed, remember to save', 'xhtheme-ai-toolbox'),
    saving: __('Saving...', 'xhtheme-ai-toolbox'),
    saveAllSettings: __('Save All Settings', 'xhtheme-ai-toolbox'),
    metadataCompletionFeature: __('Metadata Completion Feature', 'xhtheme-ai-toolbox'),
    videoGuides: __('Video Guides', 'xhtheme-ai-toolbox'),
    postAlias: __('Post Alias', 'xhtheme-ai-toolbox'),
    postAliasDesc: __('Use AI to automatically set post slugs in English. Recommended to enable, especially for sites with slugs in URLs.', 'xhtheme-ai-toolbox'),
    smartCategory: __('Smart Category', 'xhtheme-ai-toolbox'),
    smartCategoryDesc: __('Automatically select appropriate categories for posts from existing categories.', 'xhtheme-ai-toolbox'),
    smartTopics: __('Smart Topics', 'xhtheme-ai-toolbox'),
    smartTopicsDesc: __('Automatically expand 2-3 topics for articles and generate content (content generated in background, topics not 100% generated).', 'xhtheme-ai-toolbox'),
    comingSoon: __('Coming Soon', 'xhtheme-ai-toolbox'),
    aiTagExtraction: __('AI Tag Extraction', 'xhtheme-ai-toolbox'),
    aiTagFeature: __('AI Tag Feature', 'xhtheme-ai-toolbox'),
    aiTagFeatureDesc: __('When enabled, you can use AI models to intelligently analyze article content, automatically extract tags, and enhance tag information.', 'xhtheme-ai-toolbox'),
    tagQuantityRange: __('Tag Quantity Range', 'xhtheme-ai-toolbox'),
    tagQuantityRangeDesc: __('Set the range of AI-generated tags. Drag both sliders to control the minimum and maximum number of tags.', 'xhtheme-ai-toolbox'),
    newTagStatus: __('New Tag Status', 'xhtheme-ai-toolbox'),
    newTagStatusDesc: __('When adding new tags not yet in the database, choose whether to expand the tag SEO title, tag description, and other information for easier review.', 'xhtheme-ai-toolbox'),
    expandedByDefault: __('Expanded by Default', 'xhtheme-ai-toolbox'),
    collapsedByDefault: __('Collapsed by Default', 'xhtheme-ai-toolbox'),
    aiContentGeneration: __('AI Content Generation/Optimization', 'xhtheme-ai-toolbox'),
    aiParagraphFeature: __('AI Paragraph Feature', 'xhtheme-ai-toolbox'),
    aiParagraphFeatureDesc: __('When using paragraph blocks, you can use AI models to generate paragraph content or optimize existing paragraphs, with support for undo and model switching.', 'xhtheme-ai-toolbox'),
    coreFeatureMessage: __('Core feature, currently cannot be disabled', 'xhtheme-ai-toolbox'),
    aiCommentGeneration: __('AI Comment Generation', 'xhtheme-ai-toolbox'),
    aiCommentsDesc: __('When enabled, you can use AI models to intelligently analyze article content and automatically generate comments.', 'xhtheme-ai-toolbox'),
    outputRange: __('Output Range', 'xhtheme-ai-toolbox'),
    outputRangeDesc: (count) => sprintf(
        __('Set the range of AI-generated comments; %d comments can be previewed when publishing, and the remaining will be processed in the background!', 'xhtheme-ai-toolbox'),
        count
    ),
    maxPublishTime: __('Max Publish Time', 'xhtheme-ai-toolbox'),
    maxPublishTimeDesc: __('If set to 5 days, the generated comments will be published randomly throughout the 5-day period.', 'xhtheme-ai-toolbox'),
    days: __('days', 'xhtheme-ai-toolbox'),
    daysLabel: __('Days', 'xhtheme-ai-toolbox'),
    previewCount: __('Preview Count', 'xhtheme-ai-toolbox'),
    previewCountDesc: __('It is recommended to generate a small number (3-5) initially to check the quality and prevent timeout. The remaining comments will be automatically processed in the background queue!', 'xhtheme-ai-toolbox'),
    items: __('items', 'xhtheme-ai-toolbox'),
    itemsLabel: __('Items', 'xhtheme-ai-toolbox'),
    commentNote: __('Note: Generating >15 comments may trigger replies for authenticity.', 'xhtheme-ai-toolbox'),
    aiArticleSummary: __('AI Article Summary', 'xhtheme-ai-toolbox'),
    aiSummaryFeature: __('AI Summary Feature', 'xhtheme-ai-toolbox'),
    aiSummaryFeatureDesc: __('Use AI models to intelligently analyze article content and automatically generate summaries.', 'xhtheme-ai-toolbox'),
    maximumSummaryLength: __('Maximum Summary Length', 'xhtheme-ai-toolbox'),
    maximumSummaryLengthDesc: __('Set maximum word count for AI-generated summaries, adjust length with slider.', 'xhtheme-ai-toolbox'),
    characters: __('characters', 'xhtheme-ai-toolbox'),
    characterCount: __('Character Count', 'xhtheme-ai-toolbox'),
    frontendSummaryDisplayStyle: __('Frontend Summary Display Style', 'xhtheme-ai-toolbox'),
    frontendSummaryDisplayStyleDesc: __('Select display style for AI summaries on article pages!', 'xhtheme-ai-toolbox'),
    doNotDisplay: __('Do Not Display', 'xhtheme-ai-toolbox'),
    minimalist: __('Minimalist', 'xhtheme-ai-toolbox'),
    gradientBackground: __('Gradient Background', 'xhtheme-ai-toolbox'),
    customPersonalization: __('Custom Personalization', 'xhtheme-ai-toolbox'),
    aiSupport: __('AI Support', 'xhtheme-ai-toolbox'),
    customStyle: __('Custom Style', 'xhtheme-ai-toolbox'),
    customCssCode: __('Custom CSS code', 'xhtheme-ai-toolbox'),
    dontForgetToSave: __("Don't forget to save after modification!", 'xhtheme-ai-toolbox'),
    aiGenerationRequiresAppid: __('AI generation requires APPID configuration first!', 'xhtheme-ai-toolbox'),
    enterCustomCssCodeHere: __('Enter custom CSS code here', 'xhtheme-ai-toolbox'),
    yourStyles: __('Your styles', 'xhtheme-ai-toolbox'),
    clearCode: __('Clear Code', 'xhtheme-ai-toolbox'),
    cancel: __('Cancel', 'xhtheme-ai-toolbox'),
    saveCode: __('Save Code', 'xhtheme-ai-toolbox'),
    saving: __('Saving...', 'xhtheme-ai-toolbox'),
    cssCodeSaveError: __('CSS code save error!', 'xhtheme-ai-toolbox'),
    customStyleFailedToSave: __('Your custom style failed to save!', 'xhtheme-ai-toolbox'),
    cssCodeSaved: __('CSS code saved', 'xhtheme-ai-toolbox'),
    customStyleSavedSuccessfully: __('Your custom style has been successfully saved', 'xhtheme-ai-toolbox'),
    confirm: __('Confirm', 'xhtheme-ai-toolbox'),
    summaryModuleCustomization: __('Summary Module Information Customization', 'xhtheme-ai-toolbox'),
    summaryModuleCustomizationDesc: __('Customize summary module title and description!', 'xhtheme-ai-toolbox'),
    enterSummaryModuleTitle: __('Please enter summary module title', 'xhtheme-ai-toolbox'),
    enterSummaryModuleDesc: __('Please enter summary module description', 'xhtheme-ai-toolbox'),
    aiSmartSummary: __('AI Smart Summary', 'xhtheme-ai-toolbox'),
    summaryGeneratedByAi: __('This summary is generated by AI analysis, for reference only.', 'xhtheme-ai-toolbox'),
    pleaseEnterStyleDescription: __('Please enter style description', 'xhtheme-ai-toolbox'),
    serverResponseError: __('Server response error', 'xhtheme-ai-toolbox'),
    requestErrorTryAgain: __('[error:20001]Request error, please try again later!', 'xhtheme-ai-toolbox'),
    generationTerminated: __('Generation terminated', 'xhtheme-ai-toolbox'),
    failedToGenerateCss: __('Failed to generate CSS, please retry', 'xhtheme-ai-toolbox'),
    changeBackgroundToLightBlue: __('Example: Change background to light blue...', 'xhtheme-ai-toolbox'),
    minimalistModernStyle: __('Example: Minimalist modern style, blue theme...', 'xhtheme-ai-toolbox'),
    modifyExistingStyle: __('Modify existing style, clear to regenerate!', 'xhtheme-ai-toolbox'),
    generateNewStyle: __('Generate new style, please describe your desired style!', 'xhtheme-ai-toolbox'),
    autoSelect: __('Auto Select', 'xhtheme-ai-toolbox'),
    generating: __('Generating', 'xhtheme-ai-toolbox'),
    aiQuickEdit: __('AI Quick Edit', 'xhtheme-ai-toolbox'),
    aiGenerateCss: __('AI Generate CSS', 'xhtheme-ai-toolbox'),
    enabledLabel: __('Enabled', 'xhtheme-ai-toolbox'),
    disabledLabel: __('Disabled', 'xhtheme-ai-toolbox'),
    minimumLabel: __("Minimum", "xhtheme-ai-toolbox"),
    maximumLabel: __("Maximum", "xhtheme-ai-toolbox"),
    valueLabel: __("Value", "xhtheme-ai-toolbox"),
    settingsLabel: __("Settings", "xhtheme-ai-toolbox")
};