Skip to content

Commit 4eaf01e

Browse files
authored
🔀 Merge pull request #17 from ChenXu233/dev
🔖 V0.6.6 ### 更新日志 ✨ #### 🎵 音乐播放功能增强 **音乐缓存管理** - 新增音乐缓存管理功能及对应的设置界面,允许用户管理本地缓存以提升离线播放体验。 - 为缓存管理界面新增了源码链接支持并完成了国际化适配。 **体验优化与修复** - 优化了缓存音乐的自动恢复机制,确保应用重启或网络切换后能更稳定地恢复播放。 - 修复了 Web 平台上的音频播放兼容性问题,确保了跨平台体验的一致性。 **相关提交** [161ecd8](https://github.com/ChenXu233/ToDoTimeSquare/commit/161ecd8d4f00a030fe00a49466719ba284a6bcb5)|[49a71b7](https://github.com/ChenXu233/ToDoTimeSquare/commit/49a71b7280d621f45579dd46190bb8e7645057e7)|[00a179c](https://github.com/ChenXu233/ToDoTimeSquare/commit/00a179cae67f44136eb424937ac6856fdbfb51f5)|[5129207](https://github.com/ChenXu233/ToDoTimeSquare/commit/512920786466259168be48e7d8d99f1b1b237287)
2 parents bf2b1ad + e6fa0a5 commit 4eaf01e

17 files changed

Lines changed: 669 additions & 33 deletions

lib/i18n/app_en.arb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,22 @@
286286
},
287287
"musicLibrary": "Music Library",
288288
"@musicLibrary": { "description": "Music library title" },
289+
"musicCache": "Music Cache",
290+
"@musicCache": { "description": "Title for music cache section" },
291+
"currentCache": "Current cache:",
292+
"@currentCache": { "description": "Label prefix for current cache size" },
293+
"maxCacheMb": "Max cache (MB)",
294+
"@maxCacheMb": { "description": "Label for max cache input" },
295+
"clearCache": "Clear",
296+
"@clearCache": { "description": "Button label to clear cache" },
297+
"sourceCode": "Source Code",
298+
"@sourceCode": { "description": "Label for source code link" },
299+
"cacheMaxUpdated": "Cache max updated",
300+
"@cacheMaxUpdated": { "description": "Snackbar text when cache max updated" },
301+
"cacheCleared": "Cache cleared",
302+
"@cacheCleared": { "description": "Snackbar text when cache cleared" },
303+
"couldNotOpenUrl": "Could not open URL",
304+
"@couldNotOpenUrl": { "description": "Snackbar text when URL cannot be opened" },
289305

290306
"noLocalMusicImported": "No local music imported",
291307
"@noLocalMusicImported": { "description": "No local music imported message" },

lib/i18n/app_zh.arb

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,22 @@
8080
"min": "分钟",
8181
"musicLibrary": "音乐库",
8282
"@musicLibrary": { "description": "音乐库 标题" },
83+
"musicCache": "音乐缓存",
84+
"@musicCache": { "description": "音乐缓存 部分 标题" },
85+
"currentCache": "当前缓存:",
86+
"@currentCache": { "description": "当前缓存 大小 前缀 文本" },
87+
"maxCacheMb": "最大缓存(MB)",
88+
"@maxCacheMb": { "description": "最大缓存 输入 标签" },
89+
"clearCache": "清除",
90+
"@clearCache": { "description": "清除 缓存 按钮 文本" },
91+
"sourceCode": "源码",
92+
"@sourceCode": { "description": "源码 链接 标签" },
93+
"cacheMaxUpdated": "缓存上限已更新",
94+
"@cacheMaxUpdated": { "description": "缓存上限更新 提示 文本" },
95+
"cacheCleared": "缓存已清理",
96+
"@cacheCleared": { "description": "缓存已清理 提示 文本" },
97+
"couldNotOpenUrl": "无法打开链接",
98+
"@couldNotOpenUrl": { "description": "无法打开链接 提示 文本" },
8399
"noLocalMusicImported": "尚未导入本地音乐",
84100
"@noLocalMusicImported": { "description": "尚未导入本地音乐 提示" },
85101
"importFromDevice": "从设备导入",

lib/i18n/i18n.dart

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,54 @@ abstract class APPi18n {
529529
/// **'Music Library'**
530530
String get musicLibrary;
531531

532+
/// Title for music cache section
533+
///
534+
/// In en, this message translates to:
535+
/// **'Music Cache'**
536+
String get musicCache;
537+
538+
/// Label prefix for current cache size
539+
///
540+
/// In en, this message translates to:
541+
/// **'Current cache:'**
542+
String get currentCache;
543+
544+
/// Label for max cache input
545+
///
546+
/// In en, this message translates to:
547+
/// **'Max cache (MB)'**
548+
String get maxCacheMb;
549+
550+
/// Button label to clear cache
551+
///
552+
/// In en, this message translates to:
553+
/// **'Clear'**
554+
String get clearCache;
555+
556+
/// Label for source code link
557+
///
558+
/// In en, this message translates to:
559+
/// **'Source Code'**
560+
String get sourceCode;
561+
562+
/// Snackbar text when cache max updated
563+
///
564+
/// In en, this message translates to:
565+
/// **'Cache max updated'**
566+
String get cacheMaxUpdated;
567+
568+
/// Snackbar text when cache cleared
569+
///
570+
/// In en, this message translates to:
571+
/// **'Cache cleared'**
572+
String get cacheCleared;
573+
574+
/// Snackbar text when URL cannot be opened
575+
///
576+
/// In en, this message translates to:
577+
/// **'Could not open URL'**
578+
String get couldNotOpenUrl;
579+
532580
/// No local music imported message
533581
///
534582
/// In en, this message translates to:

lib/i18n/i18n_en.dart

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,30 @@ class APPi18nEn extends APPi18n {
229229
@override
230230
String get musicLibrary => 'Music Library';
231231

232+
@override
233+
String get musicCache => 'Music Cache';
234+
235+
@override
236+
String get currentCache => 'Current cache:';
237+
238+
@override
239+
String get maxCacheMb => 'Max cache (MB)';
240+
241+
@override
242+
String get clearCache => 'Clear';
243+
244+
@override
245+
String get sourceCode => 'Source Code';
246+
247+
@override
248+
String get cacheMaxUpdated => 'Cache max updated';
249+
250+
@override
251+
String get cacheCleared => 'Cache cleared';
252+
253+
@override
254+
String get couldNotOpenUrl => 'Could not open URL';
255+
232256
@override
233257
String get noLocalMusicImported => 'No local music imported';
234258

lib/i18n/i18n_zh.dart

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,30 @@ class APPi18nZh extends APPi18n {
227227
@override
228228
String get musicLibrary => '音乐库';
229229

230+
@override
231+
String get musicCache => '音乐缓存';
232+
233+
@override
234+
String get currentCache => '当前缓存:';
235+
236+
@override
237+
String get maxCacheMb => '最大缓存(MB)';
238+
239+
@override
240+
String get clearCache => '清除';
241+
242+
@override
243+
String get sourceCode => '源码';
244+
245+
@override
246+
String get cacheMaxUpdated => '缓存上限已更新';
247+
248+
@override
249+
String get cacheCleared => '缓存已清理';
250+
251+
@override
252+
String get couldNotOpenUrl => '无法打开链接';
253+
230254
@override
231255
String get noLocalMusicImported => '尚未导入本地音乐';
232256

0 commit comments

Comments
 (0)