โญAI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.๐ฏ ๅๅซไฟกๆฏ่ฟ่ฝฝ๏ผไฝ ็ AI ่ๆ ็ๆงๅฉๆไธ็ญ็น็ญ้ๅทฅๅ ท๏ผ่ๅๅคๅนณๅฐ็ญ็น + RSS ่ฎข้ ๏ผๆฏๆๅ ณ้ฎ่ฏ็ฒพๅ็ญ้ใAI ๆบ่ฝ็ญ้ๆฐ้ป + AI ็ฟป่ฏ + AI ๅๆ็ฎๆฅ็ดๆจๆๆบ๏ผไนๆฏๆๆฅๅ ฅ MCP ๆถๆ๏ผ่ต่ฝ AI ่ช็ถ่ฏญ่จๅฏน่ฏๅๆใๆ ๆๆดๅฏไธ่ถๅฟ้ขๆต็ญใๆฏๆ Docker ๏ผๆฐๆฎๆฌๅฐ/ไบ็ซฏ่ชๆใ้ๆๅพฎไฟก/้ฃไนฆ/้้/Telegram/้ฎไปถ/ntfy/bark/slack ็ญๆธ ้ๆบ่ฝๆจ้ใ
Python aibarkdata-analysisdockerhot-newsllmmailmcpmcp-servernewsntfypythonrsstrending-topicswechatwework
/**
* TrendRadar i18n - Internationalization Engine
*/
(function () {
'use strict';
const STORAGE_KEY_LANG = 'trendradar_lang';
let currentLang = 'zh';
const T = { zh: {}, en: {} };
function add(entries) {
entries.forEach(function (e) {
T.zh[e[0]] = e[1];
T.en[e[0]] = e[2];
});
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Navigation & Top Bar
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['nav.subtitle', 'ๅฏ่งๅ้
็ฝฎ็ผ่พๅจ', 'Visual Config Editor'],
['nav.privacy', '็บฏ้ๆ้กต้ข๏ผๆฐๆฎไป
ไฟๅญๅจไฝ ็ๆฌๅฐๆต่งๅจ๏ผ่ฏทๆพๅฟไฝฟ็จ', 'Static page โ data is stored only in your browser'],
['nav.loadLatest', 'ๅ ่ฝฝๅฎ็ฝๆๆฐ้
็ฝฎ', 'Load Latest Config'],
['nav.copyConfig', 'ๅคๅถ้
็ฝฎ', 'Copy Config'],
['nav.copied', 'ๅทฒๅคๅถ!', 'Copied!'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Save Status
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['save.saved', 'ๅทฒไฟๅญ: ', 'Saved: '],
['save.notSaved', 'ๆชไฟๅญ', 'Not saved'],
['time.justNow', 'ๅๅ', 'Just now'],
['time.minutesAgo', ' ๅ้ๅ', ' min ago'],
['time.hoursAgo', ' ๅฐๆถๅ', ' hr ago'],
['time.daysAgo', ' ๅคฉๅ', ' days ago'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Right Panel Header
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['panel.configModules', '้
็ฝฎๆจกๅ', 'Config Modules'],
['panel.frequencyEdit', '้ข็่ฏ็ผ่พ', 'Keyword Editing'],
['panel.timelineSchedule', 'ๆถ้ด็บฟ่ฐๅบฆ', 'Timeline Schedule'],
['panel.versionCheck', '็ๆฌๆฃๆต', 'Check Version'],
['panel.readOnly', 'ๅช่ฏป (่ฏทๅจๅทฆไพง็ผ่พ)', 'Read-only (edit on the left)'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Module Names (MODULE_DEFS)
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['mod.app', '1. ๅบ็ก่ฎพ็ฝฎ', '1. Basic Settings'],
['mod.platforms', '2. ๆฐๆฎๆบ - ็ญๆฆๅนณๅฐ', '2. Data Source - Hot Platforms'],
['mod.rss', '3. ๆฐๆฎๆบ - RSS ่ฎข้
', '3. Data Source - RSS Feeds'],
['mod.report', '4. ๆฅๅๆจกๅผ', '4. Report Mode'],
['mod.filter', '4.5 ็ญ้็ญ็ฅ', '4.5 Filter Strategy'],
['mod.ai_filter', '4.6 AI ๆบ่ฝ็ญ้', '4.6 AI Smart Filter'],
['mod.display', '5. ๆจ้ๅ
ๅฎนๆงๅถ', '5. Push Content Control'],
['mod.notification', '6. ๆจ้้็ฅ', '6. Push Notification'],
['mod.storage', '7. ๅญๅจ้
็ฝฎ', '7. Storage Config'],
['mod.ai', '8. AI ๆจกๅ้
็ฝฎ', '8. AI Model Config'],
['mod.ai_analysis', '9. AI ๅๆๅ่ฝ', '9. AI Analysis'],
['mod.ai_translation', '10. AI ็ฟป่ฏๅ่ฝ', '10. AI Translation'],
['mod.advanced', '11. ้ซ็บง่ฎพ็ฝฎ', '11. Advanced Settings'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Control Labels (renderControls)
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
// Platforms
['ctrl.enableHotlist', 'ๅฏ็จ็ญๆฆๆๅ', 'Enable hot list crawling'],
['ctrl.platformList', 'ๅนณๅฐๅ่กจ', 'Platform List'],
['ctrl.dragToSort', 'ๅฏๆๆฝๆๅบ', 'drag to reorder'],
['ctrl.addPlatform', 'ๆทปๅ ๅนณๅฐ', 'Add Platform'],
['ctrl.addOtherPlatform', 'ๆทปๅ ๅ
ถๅฎๅนณๅฐ', 'Add Other Platforms'],
// RSS
['ctrl.enableRss', 'ๅฏ็จ RSS ๆๅ', 'Enable RSS crawling'],
['ctrl.freshnessFilter', 'ๆฐ้ฒๅบฆ่ฟๆปค', 'Freshness Filter'],
['ctrl.enableFreshness', 'ๅฏ็จๆฐ้ฒๅบฆ่ฟๆปค', 'Enable freshness filter'],
['ctrl.maxAgeDays', 'ๆๅคงๆ็ซ ๅนด้พ (ๅคฉ)', 'Max article age (days)'],
['ctrl.rssFeedList', 'RSS ๆบๅ่กจ', 'RSS Feed List'],
['ctrl.addRss', 'ๆทปๅ RSS ๆบ', 'Add RSS Feed'],
['ctrl.rssLibHint', '(ๅ
้ RSS ๆบๅ่ๅบ)', '(RSS feed reference library included)'],
['ctrl.rssWarning', '้จๅๆตทๅคๅชไฝๅ
ๅฎนๅฏ่ฝๆถๅๆๆ่ฏ้ข๏ผAI ๆจกๅๅฏ่ฝๆ็ป็ฟป่ฏๆๅๆ๏ผๅปบ่ฎฎๆ นๆฎๅฎ้
้ๆฑ็ญ้่ฎข้
ๆบใ', 'Some overseas media may involve sensitive topics. AI models may refuse to translate or analyze. Filter feeds based on actual needs.'],
// Report
['ctrl.reportMode', 'ๆฅๅๆจกๅผ', 'Report Mode'],
['ctrl.displayMode', 'ๅ็ป็ปดๅบฆ', 'Group Dimension'],
['ctrl.sortByPosition', 'ๆๅฎไน้กบๅบๆๅบ', 'Sort by defined order'],
['ctrl.rankThreshold', 'ๆๅ้ซไบฎ้ๅผ', 'Rank highlight threshold'],
['ctrl.maxNewsPerKeyword', 'ๆฏไธชๅ
ณ้ฎ่ฏๆๅคงๆพ็คบๆฐ้', 'Max items per keyword'],
// Filter
['ctrl.filterMethod', '็ญ้ๆนๆณ', 'Filter Method'],
['ctrl.prioritySort', 'AI ๆจกๅผๆๆ ็ญพไผๅ
็บงๆๅบ', 'AI mode: sort by tag priority'],
['ctrl.filterNote', 'ไฝฟ็จ', 'uses'],
// AI Filter
['ctrl.aiFilterNote', 'ไป
ๅฝ filter.method=ai ๆถ็ๆใ', 'Only effective when filter.method=ai.'],
['ctrl.batchSize', 'ๆฏๆนๆ ้ขๆฐ้', 'Titles per batch'],
['ctrl.batchInterval', 'ๅๆน้ด้ (็ง)', 'Batch interval (sec)'],
['ctrl.minScore', 'ๆไฝๅๆฐ้ๅผ (0~1)', 'Min score threshold (0~1)'],
['ctrl.interestsFile', 'ๅ
ด่ถฃๆ่ฟฐๆไปถ (ๅฏ้)', 'Interests file (optional)'],
['ctrl.interestsFileHint', '็็ฉบๆถไฝฟ็จ', 'When empty, uses'],
['ctrl.reclassifyThreshold', 'ๅ
จ้้ๅ็ฑป้ๅผ (0~1)', 'Full reclassification threshold (0~1)'],
['ctrl.promptFile', 'ๅ็ฑปๆ็คบ่ฏๆไปถ', 'Classification prompt file'],
['ctrl.extractPromptFile', 'ๆ ็ญพๆๅๆ็คบ่ฏๆไปถ', 'Tag extraction prompt file'],
['ctrl.updateTagsPromptFile', 'ๆ ็ญพๆดๆฐๆ็คบ่ฏๆไปถ', 'Tag update prompt file'],
// Display
['ctrl.pushContentControl', 'ๆจ้ๅ
ๅฎนๆงๅถ', 'Push Content Control'],
['ctrl.displayOrderHint', 'ๅ่กจ้กบๅบๅณๅฎไบๆฅๅไธญ็ๆพ็คบ้กบๅบ', 'List order determines display order in the report'],
['ctrl.standaloneConfig', '็ฌ็ซๅฑ็คบๅบ้
็ฝฎ', 'Standalone Display Config'],
['ctrl.standaloneNote', 'ๆจ้ๅฑ็คบ็ฑไธๆนๅผๅ
ณๆงๅถ๏ผAI ๅๆ็ฑ AI ๆจกๅ็ๅผๅ
ณ็ฌ็ซๆงๅถ', 'Push display is controlled by toggles above; AI analysis is controlled independently by the AI module'],
['ctrl.maxStandaloneItems', 'ๆฏไธชๆบๆๅคๅฑ็คบๆกๆฐ', 'Max items per source'],
['ctrl.selectPlatforms', '้ๆฉ่ฆๅฑ็คบ็็ญๆฆๅนณๅฐ', 'Select hot list platforms to display'],
['ctrl.selectRssFeeds', '้ๆฉ่ฆๅฑ็คบ็ RSS ๆบ', 'Select RSS feeds to display'],
// Notification
['ctrl.notificationNote', 'ๆจ้ๆถ้ด็ฑ timeline.yaml ๆงๅถ๏ผๅๆขๅฐ timeline.yaml ๆ ็ญพ้กตๅฏๅฏ่งๅ็ผ่พ่ฐๅบฆ่งๅใๆญคๅคไป
้
็ฝฎ้็ฅๆธ ้๏ผTelegram / ไผไธๅพฎไฟก็ญ๏ผ๏ผ่ฏทๅจๅทฆไพง็ผ่พๅจไธญไฟฎๆนใ', 'Push timing is controlled by timeline.yaml. Switch to the timeline.yaml tab for visual schedule editing. Configure notification channels (Telegram / WeCom, etc.) in the left editor.'],
// AI
['ctrl.modelName', 'ๆจกๅๅ็งฐ', 'Model Name'],
['ctrl.apiKey', 'API Key', 'API Key'],
['ctrl.apiBase', 'API Base URL (ๅฏ้)', 'API Base URL (optional)'],
['ctrl.timeout', '่ฏทๆฑ่ถ
ๆถ (็ง)', 'Request timeout (sec)'],
['ctrl.temperature', '้ๆ ทๆธฉๅบฆ (0.0-2.0)', 'Temperature (0.0-2.0)'],
['ctrl.maxTokens', 'ๆๅคง็ๆ Token ๆฐ', 'Max tokens'],
// AI Analysis
['ctrl.enableAnalysis', 'ๅผๅฏ AI ๅๆๆฅๅ', 'Enable AI analysis report'],
['ctrl.analysisTimeNote', 'AI ๅๆ็ๆง่กๆถ้ดๅทฒ็ฑ timeline.yaml ็ปไธๆงๅถใ', 'AI analysis timing is now controlled by timeline.yaml.'],
['ctrl.analysisContentConfig', 'ๅๆๅ
ๅฎน้
็ฝฎ', 'Analysis Content Config'],
['ctrl.outputLanguage', '่พๅบ่ฏญ่จ', 'Output Language'],
['ctrl.promptConfigFile', 'ๆ็คบ่ฏ้
็ฝฎๆไปถ', 'Prompt config file'],
['ctrl.aiAnalysisMode', 'AI ๅๆๆจกๅผ', 'AI Analysis Mode'],
['ctrl.maxNewsForAnalysis', 'ๆๅคงๅๆๆกๆฐ', 'Max items for analysis'],
['ctrl.includeRss', 'ๅ
ๅซ RSS ๅ
ๅฎน', 'Include RSS content'],
['ctrl.includeStandalone', 'ๅ
ๅซ็ฌ็ซๅฑ็คบๅบๆฐๆฎ', 'Include standalone data'],
['ctrl.includeRankTimeline', 'ไผ ้ๅฎๆดๆๅๆถ้ด็บฟ', 'Pass full rank timeline'],
// AI Translation
['ctrl.enableTranslation', 'ๅผๅฏ AI ่ชๅจ็ฟป่ฏ', 'Enable AI auto-translation'],
['ctrl.targetLanguage', '็ฎๆ ่ฏญ่จ', 'Target Language'],
['ctrl.translationBatchSize', 'ๆฏๆน็ฟป่ฏๆ ้ขๆฐ', 'Titles per translation batch'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Display Regions
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['region.hotlist', '็ญๆฆๅบๅ', 'Hot List'],
['region.new_items', 'ๆฐๅข็ญ็นๅบๅ', 'New Items'],
['region.rss', 'RSS ่ฎข้
ๅบๅ', 'RSS Feeds'],
['region.standalone', '็ฌ็ซๅฑ็คบๅบ', 'Standalone'],
['region.ai_analysis', 'AI ๅๆๅบๅ', 'AI Analysis'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Toast Messages
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['toast.configRestored', 'ๅทฒๆขๅคไธๆฌกไฟๅญ็้
็ฝฎ', 'Previous config restored'],
['toast.manualSave', 'ๅทฒๆๅจไฟๅญ้
็ฝฎ', 'Config saved manually'],
['toast.resetDone', 'ๅทฒ้็ฝฎไธบๅๅง็ถๆ', 'Reset to initial state'],
['toast.loadingConfig', 'ๆญฃๅจๅ ่ฝฝๆๆฐ้
็ฝฎ...', 'Loading latest config...'],
['toast.loaded', 'ๅทฒๅ ่ฝฝ: ', 'Loaded: '],
['toast.loadFailed', 'ๅ ่ฝฝๅคฑ่ดฅ: ', 'Load failed: '],
['toast.yamlError', 'YAML ่ฏญๆณ้่ฏฏ: ', 'YAML syntax error: '],
['toast.fileReadFail', 'ๆไปถ่ฏปๅๅคฑ่ดฅ', 'File read failed'],
['toast.selectOneFile', '่ฏท่ณๅฐ้ๆฉไธไธชๆไปถ', 'Please select at least one file'],
['toast.allSourcesFailed', 'ๆๆๆบๅไธๅฏ็จ๏ผ่ฏทๆฃๆฅ็ฝ็ป่ฟๆฅ', 'All sources unavailable, check network connection'],
['toast.updatedToLatest', 'ๅทฒๆดๆฐๅฐๆๆฐ็ๆฌ', 'Updated to latest version'],
['toast.updateFailed', 'ๆดๆฐๅคฑ่ดฅ: ', 'Update failed: '],
['toast.loadingLatest', 'ๆญฃๅจๅ ่ฝฝๆๆฐ็ๆฌ...', 'Loading latest version...'],
['toast.versionCheckFailed', '็ๆฌๆฃๆตๅคฑ่ดฅ: ', 'Version check failed: '],
['toast.platformAdded', 'ๅนณๅฐ {0} ๅทฒๆทปๅ ', 'Platform {0} added'],
['toast.switchedToMode', 'ๅทฒๅๆข่ณใ{0}ใๆจกๅผ', 'Switched to "{0}" mode'],
['toast.presetCreated', '่ฐๅบฆๆจกๅผใ{0}ใๅๅปบๆๅ', 'Schedule mode "{0}" created'],
['toast.periodAdded', 'ๆถ้ดๆฎตใ{0}ใๆทปๅ ๆๅ', 'Period "{0}" added'],
['toast.periodDeleted', 'ๆถ้ดๆฎตใ{0}ใๅทฒๅ ้ค', 'Period "{0}" deleted'],
['toast.duplicatedAs', 'ๅทฒๅคๅถไธบใ{0}ใ', 'Duplicated as "{0}"'],
['toast.presetDeleted', '่ฐๅบฆๆจกๅผใ{0}ใๅทฒๅ ้ค', 'Schedule mode "{0}" deleted'],
['toast.dayPlanAdded', 'ๆฅ่ฎกๅใ{0}ใๅทฒๆทปๅ ', 'Day plan "{0}" added'],
['toast.dayPlanDeleted', 'ๆฅ่ฎกๅใ{0}ใๅทฒๅ ้ค', 'Day plan "{0}" deleted'],
['toast.weekMapUpdated', 'ๅจๆ ๅฐๅทฒๆดๆฐ', 'Week map updated'],
['toast.builtinNoDelete', 'ๅ
็ฝฎ้ข่ฎพไธๅฏๅ ้ค๏ผๅฏไฝฟ็จๅคๅถๅ่ฝ', 'Built-in presets cannot be deleted. Use duplicate instead.'],
['toast.customNoDelete', 'custom ๆจกๅผไธๅฏๅ ้ค', 'Custom mode cannot be deleted'],
['toast.enterPresetKey', '่ฏท่พๅ
ฅๆจกๅผๆ ่ฏ (key)', 'Please enter mode key'],
['toast.invalidKey', 'key ไป
ๆฏๆ่ฑๆใๆฐๅญๅไธๅ็บฟ๏ผไธไธ่ฝไปฅๆฐๅญๅผๅคด', 'Key: letters, digits and underscores only, cannot start with a digit'],
['toast.enterName', '่ฏท่พๅ
ฅๆพ็คบๅ็งฐ', 'Please enter display name'],
['toast.presetExists', '้ข่ฎพใ{0}ใๅทฒๅญๅจ', 'Preset "{0}" already exists'],
['toast.noCustomKey', 'ไธ่ฝไฝฟ็จ "custom" ไฝไธบ้ข่ฎพๅ', 'Cannot use "custom" as a preset name'],
['toast.enterPeriodKey', '่ฏท่พๅ
ฅๆถ้ดๆฎตๆ ่ฏ (key)', 'Please enter period key'],
['toast.enterPeriodName', '่ฏท่พๅ
ฅๆพ็คบๅ็งฐ', 'Please enter display name'],
['toast.setTime', '่ฏท่ฎพ็ฝฎๅผๅงๅ็ปๆๆถ้ด', 'Please set start and end time'],
['toast.sameTime', 'ๅผๅงๆถ้ดๅ็ปๆๆถ้ดไธ่ฝ็ธๅ', 'Start and end time cannot be the same'],
['toast.periodExists', 'ๆถ้ดๆฎตใ{0}ใๅทฒๅญๅจ', 'Period "{0}" already exists'],
['toast.presetSectionNotFound', 'ๆชๆพๅฐ้ข่ฎพ้
็ฝฎๆฎต', 'Preset config section not found'],
['toast.periodsNotFound', 'ๆชๆพๅฐ periods ้
็ฝฎๆฎต', 'Periods config section not found'],
['toast.noDayPlans', 'ๆฒกๆๅฏ็จ็ๆฅ่ฎกๅ', 'No day plans available'],
['toast.needTwoDayPlans', '้่ฆ่ณๅฐไธคไธชๆฅ่ฎกๅๆฅๅ็ฆปๅทฅไฝๆฅ/ๅจๆซ', 'Need at least two day plans to separate weekday/weekend'],
['toast.cannotDeleteDayPlan', 'ๆ ๆณๅ ้ค๏ผใ{0}ใๆญฃๅจ่ขซ {1} ไฝฟ็จใ่ฏทๅ
ไฟฎๆนๅจๆ ๅฐใ', 'Cannot delete: "{0}" is in use by {1}. Modify the week map first.'],
['toast.invalidKeyFormat', 'key ไป
ๆฏๆ่ฑๆใๆฐๅญๅไธๅ็บฟ', 'Key: letters, digits and underscores only'],
['toast.dayPlanExists', 'ๆฅ่ฎกๅใ{0}ใๅทฒๅญๅจ', 'Day plan "{0}" already exists'],
['toast.platformExists', 'ๅนณๅฐ {0} ๅทฒๅญๅจ๏ผ', 'Platform {0} already exists!'],
['toast.dragYaml', '่ฏทๆๅ
ฅ YAML ๆไปถ', 'Please drag a YAML file'],
['toast.dragTxt', '่ฏทๆๅ
ฅ TXT ๆไปถ', 'Please drag a TXT file'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Confirm / Alert Dialogs
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['confirm.reset', '็กฎๅฎ่ฆ้็ฝฎไธบๅๅง็ถๆๅ๏ผๆชไฟๅญ็ไฟฎๆนๅฐไธขๅคฑใ', 'Reset to initial state? Unsaved changes will be lost.'],
['confirm.deletePlatform', '็กฎๅฎ่ฆๅ ้คๅนณๅฐ "{0}" ๅ๏ผ', 'Delete platform "{0}"?'],
['confirm.deleteRss', '็กฎๅฎ่ฆๅ ้ค RSS ๆบ "{0}" ๅ๏ผ', 'Delete RSS feed "{0}"?'],
['confirm.deletePeriod', '็กฎๅฎๅ ้คๆถ้ดๆฎตใ{0}ใ๏ผ', 'Delete period "{0}"?'],
['confirm.periodInUse', '\n\nโ ๏ธ ่ฏฅๆถ้ดๆฎต่ขซไปฅไธๆฅ่ฎกๅๅผ็จ๏ผๅฐๅๆถ็งป้คๅผ็จ๏ผ\n', '\n\nโ ๏ธ This period is referenced by the following day plans and will be removed:\n'],
['confirm.deletePreset', '็กฎๅฎๅ ้ค่ฐๅบฆๆจกๅผใ{0}ใ๏ผ\nๆญคๆไฝไธๅฏๆค้ใ', 'Delete schedule mode "{0}"?\nThis cannot be undone.'],
['confirm.deleteDayPlan', '็กฎๅฎๅ ้คๆฅ่ฎกๅใ{0}ใ๏ผ', 'Delete day plan "{0}"?'],
['confirm.updateFile', '็กฎๅฎ่ฆไป GitHub ๆดๆฐ {0} ๅฐๆๆฐ็ๆฌๅ๏ผ\n\nไฝ ๅฝๅ็่ชๅฎไน้
็ฝฎๅฐ่ขซ่ฆ็๏ผๅปบ่ฎฎๅ
ๅคๅถไฟๅญใ', 'Update {0} to latest from GitHub?\n\nYour custom config will be overwritten. Save a copy first.'],
['alert.fillRequired', '่ฏทๅกซๅๅฎๆดไฟกๆฏ๏ผIDใๅ็งฐๅ URL ้ฝๆฏๅฟ
ๅกซ้กน', 'Please fill in all required fields: ID, Name, and URL'],
['alert.enterPlatformKey', '่ฏท่พๅ
ฅๅนณๅฐ Key', 'Please enter platform key'],
['alert.clickToAdd', '่ฏท็ดๆฅ็นๅปไธๆนๅ่กจไธญ็ๅนณๅฐ่ฟ่กๆทปๅ ', 'Click a platform in the list above to add it'],
['prompt.enterDayPlanKey', '่ฏท่พๅ
ฅๆฅ่ฎกๅๆ ่ฏ (key)๏ผๅฆ holiday๏ผ', 'Enter day plan key (e.g., holiday):'],
['prompt.enterCoreKeyword', '่ฏท่พๅ
ฅๆ ธๅฟๅ
ณ้ฎ่ฏ๏ผไพๅฆ๏ผๅไธบ๏ผ๏ผ', 'Enter core keyword (e.g., Huawei):'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Load Config Modal
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['loadModal.title', 'ๅ ่ฝฝๅฎ็ฝๆๆฐ้
็ฝฎ', 'Load Latest Config'],
['loadModal.desc', '้ๆฉ่ฆไป GitHub ๅ ่ฝฝ็้
็ฝฎๆไปถ๏ผ', 'Select config files to load from GitHub:'],
['loadModal.configDesc', '็ณป็ป้
็ฝฎใๅนณๅฐใAIใ้็ฅ็ญ', 'System config, platforms, AI, notifications, etc.'],
['loadModal.frequencyDesc', 'ๅ
ณ้ฎ่ฏ็ปใ่ฟๆปค่งๅใๆญฃๅ้ป่พ', 'Keyword groups, filter rules, regex logic'],
['loadModal.timelineDesc', '่ฐๅบฆๆถ้ด็บฟใ้ข่ฎพๆจกๆฟใ่ชๅฎไนๆถ้ดๆฎต', 'Scheduling timeline, presets, custom periods'],
['loadModal.source', 'ๆฐๆฎๆฅๆบ๏ผ', 'Data source: '],
['loadModal.cancel', 'ๅๆถ', 'Cancel'],
['loadModal.loadSelected', 'ๅ ่ฝฝ้ไธญ', 'Load Selected'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Version Comparison Modal
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['version.title', '็ๆฌๆฃๆต็ปๆ', 'Version Check Result'],
['version.noVersion', 'ๆชๆฃๆตๅฐ็ๆฌไฟกๆฏ', 'Version info not detected'],
['version.newVersion', 'ๅ็ฐๆฐ็ๆฌ', 'New version available'],
['version.devVersion', 'ๅฝๅ็ๆฌ่พๆฐ๏ผๅผๅ็ๆฌ๏ผ๏ผ', 'Current version is newer (dev version?)'],
['version.upToDate', 'ๅทฒๆฏๆๆฐ็ๆฌ', 'Up to date'],
['version.close', 'ๅ
ณ้ญ', 'Close'],
['version.updateNow', '็ซๅณๆดๆฐ', 'Update Now'],
['version.updateLater', '็จๅๆดๆฐ', 'Update Later'],
['version.updateToLatest', 'ๆดๆฐๅฐๆๆฐ็ๆฌ', 'Update to Latest'],
['version.configFile', '้
็ฝฎๆไปถ', 'Config File'],
['version.currentVersion', 'ๅฝๅ็ๆฌ', 'Current Version'],
['version.latestVersion', 'ๆๆฐ็ๆฌ', 'Latest Version'],
['version.unknown', 'ๆช็ฅ', 'Unknown'],
['version.updateHint', 'ๆดๆฐๅฐไป GitHub ๅ ่ฝฝๆๆฐ็ {0}๏ผไฝ ๅฝๅ็ไฟฎๆนๅฐ่ขซ่ฆ็ใๅปบ่ฎฎๅ
ๅคๅถไฟๅญไฝ ็่ชๅฎไน้
็ฝฎใ', 'Update will load the latest {0} from GitHub. Your changes will be overwritten. Save a copy of your config first.'],
['version.notFoundRemote', 'ๆชๅจ่ฟ็จ็ๆฌๆธ
ๅไธญๆพๅฐ {0}', '{0} not found in remote version list'],
['version.fetchFailed', '็ๆฌไฟกๆฏ่ทๅๅคฑ่ดฅ: {0}', 'Failed to fetch version info: {0}'],
['version.checking', 'ๆฃๆตไธญ...', 'Checking...'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// RSS Modal
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['rssModal.addTitle', 'ๆทปๅ RSS ๆบ', 'Add RSS Feed'],
['rssModal.editTitle', '็ผ่พ RSS ๆบ', 'Edit RSS Feed'],
['rssModal.idLabel', 'ๆบ ID๏ผๅฏไธๆ ่ฏ๏ผ่ฑๆ๏ผ', 'Feed ID (unique, alphanumeric)'],
['rssModal.idPlaceholder', 'ไพๅฆ: my-blog', 'e.g., my-blog'],
['rssModal.nameLabel', 'ๆพ็คบๅ็งฐ', 'Display Name'],
['rssModal.namePlaceholder', 'ไพๅฆ: ๆ็ๅๅฎข', 'e.g., My Blog'],
['rssModal.urlLabel', 'RSS URL', 'RSS URL'],
['rssModal.maxAgeLabel', 'ๆๅคงๆ็ซ ๅนด้พ๏ผๅคฉ๏ผๅฏ้๏ผ', 'Max article age (days, optional)'],
['rssModal.maxAgePlaceholder', '็็ฉบไฝฟ็จๅ
จๅฑ่ฎพ็ฝฎ', 'Leave empty to use global setting'],
['rssModal.tipsTitle', 'RSS ่ฎข้
็ตๆ & ๅ่ๅบ', 'RSS Inspiration & Reference Library'],
['rssModal.tipsHasFeeds', '(ๅ
้ๅธธ็จๆบ)', '(common feeds included)'],
['rssModal.bingNews', 'Bing ๆฐ้ป (ๆฏๆไปปๆๅ
ณ้ฎ่ฏ)', 'Bing News (supports any keyword)'],
['rssModal.bingTip', 'ๅฐ่ดดๅฃซ๏ผไฟฎๆน URL ไธญ็', 'Tip: Modify the'],
['rssModal.bingTipSuffix', 'ๅๆฐๅณๅฏ็ๆงไปปไฝไฝ ๆๅ
ด่ถฃ็่ฏ้ขใ', 'parameter to monitor any topic you like.'],
['rssModal.moreRef', 'ๆดๅค RSS ๆบๅ่', 'More RSS Feed References'],
['rssModal.techProgramming', '็งๆ/็ผ็จ', 'Tech/Programming'],
['rssModal.globalNews', 'ๅ
จ็ๆฐ้ป', 'Global News'],
['rssModal.ai', 'ไบบๅทฅๆบ่ฝ', 'AI'],
['rssModal.finance', '้ป้/่ดข็ป', 'Gold/Finance'],
['rssModal.disclaimer', 'ๅ
่ดฃๅฃฐๆ๏ผไปฅไธ RSS ็คบไพๅ็ฌฌไธๆนๅทฅๅ
ทๅๆบ่ชไบ่็ฝ๏ผๅผๅ่
ๆชไธไธ้ช่ฏๅ
ถ้ฟๆๆๆๆง๏ผ่ฏทไฝ ๅจไฝฟ็จๅ่ช่กๆ ธๅฎใ', 'Disclaimer: The RSS examples and third-party tools above are from the internet. The developer has not verified their long-term availability. Please verify before use.'],
['rssModal.cancel', 'ๅๆถ', 'Cancel'],
['rssModal.add', 'ๆทปๅ ', 'Add'],
['rssModal.disabled', 'ๅทฒ็ฆ็จ', 'Disabled'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Platform Modal
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['platModal.title', 'ๆทปๅ ็ญๆฆๅนณๅฐ', 'Add Hot List Platform'],
['platModal.selectPreset', '้ๆฉ้ข่ฎพ', 'Select Preset'],
['platModal.manualInput', 'ๆๅจ่พๅ
ฅ', 'Manual Input'],
['platModal.customNote', '่ชๅฎไนๅนณๅฐ้่ฆๅ็ซฏ็ฌ่ซๆฏๆ๏ผๆญคๅคไป
็จไบ้
็ฝฎๅ ไฝใ', 'Custom platforms require backend crawler support. This is for config placeholder only.'],
['platModal.keyLabel', 'ๅนณๅฐ Key๏ผ่ฑๆ๏ผ', 'Platform Key (alphanumeric)'],
['platModal.keyPlaceholder', 'ไพๅฆ: sspai', 'e.g., sspai'],
['platModal.nameLabel', 'ๆพ็คบๅ็งฐ', 'Display Name'],
['platModal.namePlaceholder', 'ไพๅฆ: ๅฐๆฐๆดพ', 'e.g., Sspai'],
['platModal.allAdded', 'ๆๆ้ข่ฎพๅนณๅฐๅทฒๆทปๅ ', 'All preset platforms added'],
['platModal.cancel', 'ๅๆถ', 'Cancel'],
['platModal.add', 'ๆทปๅ ', 'Add'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Word Group Type Modal
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['wgModal.title', '้ๆฉ่ฏ็ป็ฑปๅ', 'Select Word Group Type'],
['wgModal.groupAlias', '็ปๅซๅ', 'Group Alias'],
['wgModal.groupAliasDesc', 'ๅคๅ
ณ้ฎ่ฏ่ฏ็ป๏ผๆจ่๏ผ', 'Multi-keyword group (recommended)'],
['wgModal.groupAliasUse', '้็จไบ๏ผๅคไธชๅ
ณ้ฎ่ฏๅฝไธบไธ็ป๏ผ็ปไธๆพ็คบไธบ็ปๅ', 'Use for: grouping multiple keywords under one display name'],
['wgModal.singleAlias', 'ๅไธชๅซๅ', 'Single Alias'],
['wgModal.singleAliasDesc', 'ๆญฃๅ/ๅ
ณ้ฎ่ฏ + ๅซๅ', 'Regex/keyword + alias'],
['wgModal.singleAliasUse', '้็จไบ๏ผ็จๆญฃๅๅน้
ๅคไธช่ฏ๏ผๆพ็คบไธบไธไธชๅซๅ๏ผๅๅๆ็ฉบ่กๅ้๏ผ', 'Use for: matching multiple words via regex, displayed as one alias'],
['wgModal.multiAlias', '่ฟ็ปญๅซๅ็ป', 'Multi-alias Group'],
['wgModal.multiAliasDesc', 'ๅคไธช็ธๅ
ณๅ็/่ฏ็ป', 'Multiple related brands/phrases'],
['wgModal.multiAliasUse', '้็จไบ๏ผๅคไธช็ธๅ
ณๅ็ๆพๅจไธ่ตท๏ผๆ ็ฉบ่กๅ้๏ผ', 'Use for: related brands together (no blank line separator)'],
['wgModal.plain', 'ๆฎ้่ฏ็ป', 'Plain Keywords'],
['wgModal.plainDesc', '็ฎๅๅ
ณ้ฎ่ฏ', 'Simple keywords'],
['wgModal.plainUse', '้็จไบ๏ผๅไธชๆๅฐ้ๆฎ้ๅ
ณ้ฎ่ฏ', 'Use for: one or a few plain keywords'],
['wgModal.cancel', 'ๅๆถ', 'Cancel'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Timeline Modals
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['tlModal.newPreset', 'ๆฐๅปบ่ฐๅบฆๆจกๅผ', 'New Schedule Mode'],
['tlModal.presetKeyLabel', 'ๆจกๅผๆ ่ฏ (key)', 'Mode Key'],
['tlModal.presetKeyPlaceholder', '่ฑๆๆ ่ฏ๏ผๅฆ my_schedule', 'Alphanumeric key, e.g., my_schedule'],
['tlModal.presetKeyHint', 'ไป
ๆฏๆ่ฑๆใๆฐๅญๅไธๅ็บฟ๏ผๅฐไฝไธบ YAML ไธญ็ key', 'Letters, digits and underscores only, used as YAML key'],
['tlModal.nameLabel', 'ๆพ็คบๅ็งฐ', 'Display Name'],
['tlModal.descLabel', 'ๆ่ฟฐ๏ผๅฏ้๏ผ', 'Description (optional)'],
['tlModal.templateLabel', 'ๅบไบๆจกๆฟ', 'Based on Template'],
['tlModal.emptyTemplate', '็ฉบ็ฝๆจกๆฟ๏ผไป
้้๏ผไธๆจ้ไธๅๆ๏ผ', 'Blank template (collect only, no push/analysis)'],
['tlModal.templateHint', 'ๅคๅถๅทฒๆๆจกๅผ็ๅ
จ้จ้
็ฝฎไฝไธบ่ตท็น', 'Copy all config from an existing mode as starting point'],
['tlModal.cancel', 'ๅๆถ', 'Cancel'],
['tlModal.create', 'ๅๅปบ', 'Create'],
['tlModal.newPeriod', 'ๆฐๅขๆถ้ดๆฎต', 'New Period'],
['tlModal.periodKeyLabel', 'ๆถ้ดๆฎตๆ ่ฏ (key)', 'Period Key'],
['tlModal.periodKeyPlaceholder', '่ฑๆๆ ่ฏ๏ผๅฆ morning_push', 'Alphanumeric key, e.g., morning_push'],
['tlModal.periodKeyHint', 'ไป
ๆฏๆ่ฑๆใๆฐๅญๅไธๅ็บฟ', 'Letters, digits and underscores only'],
['tlModal.periodNamePlaceholder', 'ๅฆ๏ผๆจ้ดๆจ้', 'e.g., Morning Push'],
['tlModal.startTime', 'ๅผๅงๆถ้ด', 'Start Time'],
['tlModal.endTime', '็ปๆๆถ้ด', 'End Time'],
['tlModal.crossMidnight', 'ๅฆๆๅผๅงๆถ้ด > ็ปๆๆถ้ด๏ผๅฆ 22:00๏ฝ01:00๏ผ๏ผๅฐ่ชๅจ่ฏๅซไธบ่ทจๅๅคๆถ้ดๆฎตใ', 'If start > end (e.g., 22:00โ01:00), it will be treated as a cross-midnight period.'],
['tlModal.add', 'ๆทปๅ ', 'Add'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Sidebar
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['sidebar.title', 'ๆฏๆ้กน็ฎ', 'Support'],
['sidebar.quote', '่ฅ TrendRadar ๆพไธบไฝ ๆๆไปทๅผ๏ผไธๅฆจไธบๅฎๆณจๅ
ฅๅจๅ๏ผๅฉๅ
ถๆ็ปญ่ฟๅ', 'If TrendRadar has been valuable to you, help fuel its growth'],
['sidebar.star', '็นไบฎ Star', 'Star Us'],
['sidebar.starDesc', '่ฎฉๆดๅคไบบๅ็ฐๅฎ', 'Help others discover it'],
['sidebar.goGithub', 'ๅๅพ GitHub', 'Go to GitHub'],
['sidebar.follow', 'ไธ่ฟท่ทฏ', 'Stay Updated'],
['sidebar.followDesc', '่ทๅๆดๆฐ้็ฅ', 'Get update notifications'],
['sidebar.scanFollow', 'ๆซ็ ๅ
ณๆณจๅ
ฌไผๅท', 'Scan to follow on WeChat'],
['sidebar.donate', '้ๅฟ่ต่ต', 'Donate'],
['sidebar.donateDesc', '1 ๅ
ไนๆฏ้ผๅฑ', 'Every bit helps'],
['sidebar.scanDonate', 'ๅพฎไฟกๆซ็ ยท ไธฐไฟญ็ฑไบบ', 'WeChat scan ยท any amount'],
['sidebar.explore', 'ๆข็ดขๆดๅค', 'Explore More'],
['sidebar.exploreDesc', 'ๅฆไธไธช็จๅฟ็ไฝๅ', 'Another well-crafted project'],
['sidebar.goExplore', 'ๅป็็', 'Check it out'],
['sidebar.footer', '"ๅผๆบไธๆ๏ผๆ่ฐขๆฏๆ"', '"Open source isn\'t easy โ thanks for your support"'],
['sidebar.clickEnlarge', '็นๅปๆพๅคง', 'Click to enlarge'],
['sidebar.expand', 'ๅฑๅผไพงๆ ', 'Expand sidebar'],
['sidebar.collapse', 'ๆถ่ตทไพงๆ ', 'Collapse sidebar'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// QR Modal
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['qr.weixin.title', 'ไธ่ฟท่ทฏ', 'Stay Updated'],
['qr.weixin.subtitle', '็ฌฌไธๆถ้ด่ทๅๆดๆฐ้็ฅ', 'Get notified of updates first'],
['qr.weixin.hint', 'ๅพฎไฟกๆซ็ ๅ
ณๆณจๅ
ฌไผๅท', 'Scan to follow our WeChat account'],
['qr.donate.title', '้ๅฟ่ต่ต', 'Donate'],
['qr.donate.subtitle', '้้ข้ๆ๏ผ1 ๅ
ไนๆฏ้ผๅฑ (ยดโฝ`สโกฦช)', 'Any amount is an encouragement (ยดโฝ`สโกฦช)'],
['qr.donate.hint', 'ๅพฎไฟกๆซ็ ยท ไธฐไฟญ็ฑไบบ', 'WeChat scan ยท any amount'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Frequency Editor
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['freq.typesTitle', 'ๅ็ง่ฏ็ป็ฑปๅ่ฏดๆ', 'Four Word Group Types'],
['freq.groupAlias', '็ปๅซๅ', 'Group Alias'],
['freq.groupAliasDesc', 'ๅคไธชๅ
ณ้ฎ่ฏ๏ผ็ปไธๆพ็คบไธบ็ปๅ', 'Multiple keywords, displayed as group name'],
['freq.singleAlias', 'ๅไธชๅซๅ', 'Single Alias'],
['freq.singleAliasDesc', 'ๆญฃๅๅน้
๏ผๆพ็คบไธบๅซๅ', 'Regex match, displayed as alias'],
['freq.multiAlias', '่ฟ็ปญๅซๅ็ป', 'Multi-alias Group'],
['freq.multiAliasDesc', 'ๅคไธชๅซๅๆ ็ฉบ่กๅ้', 'Multiple aliases, no blank line separator'],
['freq.plain', 'ๆฎ้่ฏ็ป', 'Plain Keywords'],
['freq.plainDesc', 'ๆฎ้ๅ
ณ้ฎ่ฏ', 'Plain keywords'],
['freq.globalFilter', 'ๅ
จๅฑ่ฟๆปค่ฏ', 'Global Filter'],
['freq.globalFilterPlaceholder', '่พๅ
ฅ่ฟๆปค่ฏๅๆๅ่ฝฆ...', 'Enter a filter word, press Enter...'],
['freq.regexHint', 'ๆฏๆๆญฃๅ่กจ่พพๅผ๏ผ็จ /.../ ๅ
่ฃน๏ผ', 'Supports regex (wrap with /.../)'],
['freq.keywordGroups', 'ๅ
ณ้ฎ่ฏ็ป', 'Keyword Groups'],
['freq.nGroups', ' ไธช่ฏ็ป', ' groups'],
['freq.addGroup', 'ๆทปๅ ่ฏ็ป', 'Add Group'],
['freq.addGroupBottom', 'ๅจๅบ้จๆทปๅ ่ฏ็ป', 'Add group at bottom'],
['freq.keywordList', 'ๅ
ณ้ฎ่ฏๅ่กจ๏ผ', 'Keyword list:'],
['freq.keywordPlaceholder', '่พๅ
ฅๅ
ณ้ฎ่ฏๅๆๅ่ฝฆ...', 'Enter keyword, press Enter...'],
['freq.nKeywords', ' ไธชๅ
ณ้ฎ่ฏ', ' keywords'],
['freq.aiWriteRegex', 'AI ๅๆญฃๅ', 'AI Generate Regex'],
['freq.aliasList', 'ๅซๅๅ่กจ๏ผๆ ็ฉบ่กๅ้๏ผ๏ผ', 'Alias list (no blank line separator):'],
['freq.aliasHint', '่ฟไบๅซๅ่กๅจ้
็ฝฎๆไปถไธญๆ ็ฉบ่กๅ้๏ผๅฑไบๅไธ็ป', 'These alias lines have no blank line separator in the config and belong to the same group'],
['freq.aliasExample', '็คบไพ๏ผ/่ไธๆฅ|ไบไธๆฅ/ => ่ไธๆฅ', 'Example: /term1|term2/ => DisplayName'],
['freq.relatedGroup', '็ธๅ
ณ็ป', 'Related'],
['freq.required', 'ๅฟ
้กป', 'Required'],
['freq.exclude', 'ๆ้ค', 'Exclude'],
['freq.limit', '้ๅถ', 'Limit'],
['freq.regex', 'ๆญฃๅ', 'Regex'],
['freq.alias', 'ๅซๅ', 'Alias'],
['freq.groupNamePlaceholder', '็ปๅซๅ๏ผๅฆ๏ผไธไบ๏ผ', 'Group alias (e.g., East Asia)'],
['freq.regexPlaceholder', '/ๆญฃๅ/ ๆ ๅ
ณ้ฎ่ฏ', '/regex/ or keyword'],
['freq.aliasPlaceholder', 'ๅซๅ', 'Alias'],
['freq.noPlatforms', 'ๆๆ ๅนณๅฐ๏ผ่ฏทๆทปๅ ', 'No platforms yet'],
['freq.noRssFeeds', 'ๆๆ RSS ๆบ๏ผ่ฏทๆทปๅ ', 'No RSS feeds yet'],
['freq.noAvailPlatforms', 'ๆๆ ๅฏ็จๅนณๅฐ', 'No platforms available'],
['freq.noAvailRss', 'ๆๆ ๅฏ็จ RSS ๆบ', 'No RSS feeds available'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Timeline Editor
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['tl.scheduleMode', '่ฐๅบฆๆจกๅผ', 'Schedule Mode'],
['tl.weekView', 'ๅจ่งๅพ', 'Week View'],
['tl.recommend', 'ๆจ่', 'Recommended'],
['tl.current', 'ๅฝๅ', 'Active'],
['tl.newMode', 'ๆฐๅปบๆจกๅผ', 'New Mode'],
['tl.newModeDesc', 'ๅๅปบ่ชๅฎไน่ฐๅบฆๆนๆก', 'Create custom schedule'],
['tl.presetNotFound', 'ๆชๆพๅฐ้ข่ฎพใ{0}ใ็้
็ฝฎ', 'Config for preset "{0}" not found'],
['tl.pasteTimeline', '่ฏทๅจๅทฆไพง็ฒ่ดด timeline.yaml ๅ
ๅฎน', 'Paste timeline.yaml content on the left'],
['tl.orLoadConfig', 'ๆ็นๅปๅณไธ่งใๅ ่ฝฝๅฎ็ฝๆๆฐ้
็ฝฎใ', 'Or click "Load Latest Config" at top right'],
['tl.defaultConfig', '้ป่ฎค้
็ฝฎ (default)', 'Default Config'],
['tl.defaultDesc', 'ไธๅจไปปไฝๆถ้ดๆฎตๅ
ๆถ๏ผไฝฟ็จไปฅไธ้
็ฝฎ๏ผ', 'Config used when outside any period:'],
['tl.periods', 'ๆถ้ดๆฎต (Periods)', 'Periods'],
['tl.addNew', 'ๆฐๅข', 'Add'],
['tl.noPeriods', 'ๆญคๆจกๅผๆ ่ชๅฎไนๆถ้ดๆฎต๏ผๅ
จๅคฉไฝฟ็จ default ้
็ฝฎ', 'No custom periods. Default config used all day.'],
['tl.dayPlans', 'ๆฅ่ฎกๅ (Day Plans)', 'Day Plans'],
['tl.weekMap', 'ๅจๆ ๅฐ (Week Map)', 'Week Map'],
['tl.overlapPolicy', 'ๅฒ็ช็ญ็ฅ (Overlap)', 'Overlap Policy'],
['tl.allWeekSame', 'ๅ
จๅจ็ปไธ', 'All Week Same'],
['tl.weekdaySame', 'ๅทฅไฝๆฅ็ปไธ', 'Weekdays Same'],
['tl.weekdayWeekend', 'ๅทฅไฝๆฅ/ๅจๆซ', 'Weekday/Weekend'],
['tl.legend.push', 'ๆจ้', 'Push'],
['tl.legend.analyze', 'AI ๅๆ', 'AI Analysis'],
['tl.legend.pushAnalyze', 'ๆจ้ + ๅๆ', 'Push + Analysis'],
['tl.legend.collect', 'ไป
้้', 'Collect Only'],
['tl.legend.default', '้ป่ฎค (default)', 'Default'],
['tl.collect', '้้', 'Collect'],
['tl.analyze', 'ๅๆ', 'Analyze'],
['tl.push', 'ๆจ้', 'Push'],
['tl.report', 'ๆฅๅ:', 'Report:'],
['tl.aiMode', 'AI:', 'AI:'],
['tl.analyzeOnce', 'ไป
ๅๆไธๆฌก', 'Analyze once'],
['tl.pushOnce', 'ไป
ๆจ้ไธๆฌก', 'Push once'],
['tl.time', 'ๆถ้ด:', 'Time:'],
['tl.filterOverride', '็ญ้่ฆ็๏ผๅฏ้๏ผ', 'Filter Override (optional)'],
['tl.inherit', '็ปงๆฟ', 'Inherit'],
['tl.emptyDayPlan', '็ฉบ (ๅ
จๅคฉ่ตฐ default)', 'Empty (default all day)'],
['tl.notSet', '(ๆช่ฎพ็ฝฎ)', '(not set)'],
['tl.dayPlanLabel', 'ๆฅ่ฎกๅ:', 'Day plan:'],
['tl.usesDefault', 'ไฝฟ็จ default ้
็ฝฎ', 'Uses default config'],
['tl.copy', 'ๅฏๆฌ', 'Copy'],
['tl.presetHint', '็ดๆฅๅจไธๆน่ฐๆดๅผๅ
ณๅไธๆๆก๏ผๅทฆไพง YAML ไผๅๆญฅๆดๆฐใๅฆ้ๆด็ฒพ็ป็ๆงๅถ๏ผๅฏ็ดๆฅ็ผ่พๅทฆไพง YAML ๆไฟฎๆน timeline.yamlใ', 'Adjust toggles and dropdowns above โ the YAML on the left updates in sync. For finer control, edit the YAML directly.'],
['tl.customHint', '่ชๅฎไนๆจกๅผๆฏๆๅฎๅ
จ่ช็ฑ็ผ่พใๅฏ็ดๆฅๅจไธๆน่ฐๆดๆงไปถ๏ผๆๅจๅทฆไพง็ผ่พ YAML ๆๆฌ๏ผไธค่พนๅฎๆถๅๆญฅใ', 'Custom mode supports full editing. Adjust controls above or edit YAML text on the left โ both sync in real time.'],
['tl.filterMethodHint.default', 'ไธๅกซๅ่ท้ๅ
จๅฑ filter.method', 'Leave empty to follow global filter.method'],
['tl.filterMethodHint.period', 'ไธๅกซๅ็ปงๆฟ default๏ผๅๅ้ๅ
จๅฑ๏ผ', 'Leave empty to inherit from default (then fall back to global)'],
['tl.filterFileHint', 'ใfrequency_file ไป config/custom/keyword/ ๆฅๆพ๏ผinterests_file ไป config/custom/ai/ ๆฅๆพ๏ผ็็ฉบไผๅ ้ค่ฏฅๅญๆฎตๅนถๆขๅค็ปงๆฟใ', '. frequency_file resolves from config/custom/keyword/, interests_file from config/custom/ai/; empty removes the field and restores inheritance.'],
['tl.overlapHint', 'error_on_overlap ไผๅจๆถ้ดๆฎต้ๅ ๆถ็ดๆฅๆฅ้๏ผlast_wins ไผๆ day_plans ไธญ้ ๅ็ๆถ้ดๆฎต่ฆ็ใ', 'error_on_overlap raises an error on overlap; last_wins lets later periods in day_plans take precedence.'],
['tl.errorOnOverlap', 'error_on_overlap๏ผๆจ่๏ผ', 'error_on_overlap (recommended)'],
['tl.lastWins', 'last_wins๏ผๅๅฎไนไผๅ
๏ผ', 'last_wins (last defined wins)'],
['tl.addPeriod', '+ ๆทปๅ ', '+ Add'],
['tl.custom', '่ชๅฎไน', 'Custom'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Day Names
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['day.1', 'ๅจไธ', 'Mon'],
['day.2', 'ๅจไบ', 'Tue'],
['day.3', 'ๅจไธ', 'Wed'],
['day.4', 'ๅจๅ', 'Thu'],
['day.5', 'ๅจไบ', 'Fri'],
['day.6', 'ๅจๅ
ญ', 'Sat'],
['day.7', 'ๅจๆฅ', 'Sun'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Preset Platform Names
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['plat.toutiao', 'ไปๆฅๅคดๆก', 'Toutiao'],
['plat.baidu', '็พๅบฆ็ญๆ', 'Baidu Hot'],
['plat.wallstreetcn-hot', 'ๅๅฐ่ก่ง้ป', 'WallStreetCN'],
['plat.thepaper', 'ๆพๆนๆฐ้ป', 'The Paper'],
['plat.bilibili-hot-search', 'bilibili ็ญๆ', 'Bilibili Hot'],
['plat.cls-hot', '่ดข่็คพ็ญ้จ', 'CLS Hot'],
['plat.ifeng', 'ๅคๅฐ็ฝ', 'iFeng'],
['plat.tieba', '่ดดๅง', 'Tieba'],
['plat.weibo', 'ๅพฎๅ', 'Weibo'],
['plat.douyin', 'ๆ้ณ', 'Douyin'],
['plat.zhihu', '็ฅไน', 'Zhihu'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Initial / Placeholder Text
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['init.configPlaceholder', '# ๅจๆญค็ฒ่ดดไฝ ็ config.yaml...\n# ๆๆๆฝๆไปถๅฐ็ผ่พๅจๅบๅ\n# ๆ็นๅปๅณไธ่ง"ๅ ่ฝฝๅฎ็ฝๆๆฐ้
็ฝฎ"', '# Paste your config.yaml here...\n# Or drag a file into the editor\n# Or click "Load Latest Config" at top right'],
['init.frequencyPlaceholder', '# ๅจๆญค็ฒ่ดดไฝ ็ frequency_words.txt ๅ
ๅฎน...\n# ๆๆๆฝๆไปถๅฐ็ผ่พๅจๅบๅ\n\n[GLOBAL_FILTER]\n\n[WORD_GROUPS]\n', '# Paste your frequency_words.txt here...\n# Or drag a file into the editor\n\n[GLOBAL_FILTER]\n\n[WORD_GROUPS]\n'],
['init.timelinePlaceholder', '# ๅจๆญค็ฒ่ดดไฝ ็ timeline.yaml...\n# ๆๆๆฝๆไปถๅฐ็ผ่พๅจๅบๅ\n# ๆ็นๅปๅณไธ่ง"ๅ ่ฝฝๅฎ็ฝๆๆฐ้
็ฝฎ"', '# Paste your timeline.yaml here...\n# Or drag a file into the editor\n# Or click "Load Latest Config" at top right'],
['init.releaseToLoad', '้ๆพไปฅๅ ่ฝฝๆไปถ', 'Release to load file'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// Common / Misc
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['common.cancel', 'ๅๆถ', 'Cancel'],
['common.add', 'ๆทปๅ ', 'Add'],
['common.delete', 'ๅ ้ค', 'Delete'],
['common.edit', '็ผ่พ', 'Edit'],
['common.enable', 'ๅฏ็จ', 'Enable'],
['common.disable', '็ฆ็จ', 'Disable'],
['common.close', 'ๅ
ณ้ญ', 'Close'],
['common.copy', 'ๅคๅถ', 'Copy'],
['common.save', 'ไฟๅญ', 'Save'],
['common.hint', 'ๆ็คบ๏ผ', 'Tip: '],
['common.note', 'ๆณจๆ๏ผ', 'Note: '],
['common.warning', 'ๆณจๆ๏ผ', 'Warning: '],
['common.description', '่ฏดๆ๏ผ', 'Description: '],
['common.jumpToEditor', '่ทณ่ฝฌๅฐๅทฆไพง็ผ่พๅจ', 'Jump to left editor'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// DeepSeek AI Prompt
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
add([
['ai.promptCopied', 'ๆ็คบ่ฏๅทฒๅคๅถๅฐๅช่ดดๆฟ๏ผ', 'Prompt copied to clipboard!'],
['ai.keyword', 'ๅ
ณ้ฎ่ฏ๏ผ', 'Keyword: '],
['ai.goDeepSeek', '็นๅปใ็กฎๅฎใ่ทณ่ฝฌ DeepSeek ๅฎ็ฝ๏ผ็ดๆฅ็ฒ่ดด (Ctrl+V) ๅณๅฏใ', 'Click OK to open DeepSeek and paste (Ctrl+V).'],
['ai.copyFailed', '่ชๅจๅคๅถๅคฑ่ดฅ๏ผ่ฏทๆๅจๅคๅถไปฅไธๅ
ๅฎน๏ผ็ถๅ่ช่กๆๅผ DeepSeek:', 'Auto-copy failed. Please copy the text below manually, then open DeepSeek:'],
]);
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// I18N Engine
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
window.t = function (key, replacements) {
var dict = T[currentLang] || T.zh;
var text = dict[key] || T.zh[key] || key;
if (replacements) {
if (typeof replacements === 'string') {
text = text.replace('{0}', replacements);
} else if (Array.isArray(replacements)) {
replacements.forEach(function (val, i) {
text = text.replace('{' + i + '}', val);
});
}
}
return text;
};
window.getLang = function () {
return currentLang;
};
window.switchLang = function (lang) {
if (lang !== 'zh' && lang !== 'en') return;
currentLang = lang;
localStorage.setItem(STORAGE_KEY_LANG, lang);
document.documentElement.lang = lang === 'zh' ? 'zh-CN' : 'en';
applyI18n();
updateLangToggleUI();
if (typeof renderModules === 'function') renderModules();
if (typeof syncYamlToUI === 'function') syncYamlToUI();
if (typeof switchTab === 'function') switchTab(typeof currentTab !== 'undefined' ? currentTab : 'config');
};
function applyI18n(root) {
var scope = root || document;
scope.querySelectorAll('[data-i18n]').forEach(function (el) {
var key = el.getAttribute('data-i18n');
var text = t(key);
if (text !== key) el.textContent = text;
});
scope.querySelectorAll('[data-i18n-html]').forEach(function (el) {
var key = el.getAttribute('data-i18n-html');
var text = t(key);
if (text !== key) el.innerHTML = text;
});
scope.querySelectorAll('[data-i18n-placeholder]').forEach(function (el) {
var key = el.getAttribute('data-i18n-placeholder');
var text = t(key);
if (text !== key) el.placeholder = text;
});
scope.querySelectorAll('[data-i18n-title]').forEach(function (el) {
var key = el.getAttribute('data-i18n-title');
var text = t(key);
if (text !== key) el.title = text;
});
}
window.applyI18n = applyI18n;
function updateLangToggleUI() {
var btn = document.getElementById('lang-toggle-btn');
var label = document.getElementById('lang-toggle-label');
if (btn) {
btn.title = currentLang === 'zh' ? 'Switch to English' : 'ๅๆขๅฐไธญๆ';
}
if (label) {
label.textContent = currentLang === 'zh' ? 'EN' : 'ไธญ';
}
}
// Auto-init
(function init() {
var saved = localStorage.getItem(STORAGE_KEY_LANG);
if (saved === 'zh' || saved === 'en') {
currentLang = saved;
} else {
currentLang = (navigator.language || '').startsWith('zh') ? 'zh' : 'en';
}
document.documentElement.lang = currentLang === 'zh' ? 'zh-CN' : 'en';
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', function () {
applyI18n();
updateLangToggleUI();
});
} else {
applyI18n();
updateLangToggleUI();
}
})();
})();