feat: 添加优化版本的 Localizable.strings 清理工具

主要变更:
1. 新增 clean_localizable_optimized.py 脚本,用于清理 Localizable.strings 文件,只保留使用的 key,并移除多余空行。
2. 优化了清理逻辑,支持多语言版本的处理,提升了文件的整洁性和可维护性。
3. 生成清理报告,显示保留和删除的 key 数量及删除率。

此更新旨在提高本地化文件的管理效率,减少冗余内容。
This commit is contained in:
edwinQQQ
2025-10-17 15:38:34 +08:00
parent 646a767e03
commit f84044425f
14 changed files with 4465 additions and 4054 deletions

View File

@@ -1597,14 +1597,10 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-YuMi/Pods-YuMi-resources-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-YuMi/Pods-YuMi-resources-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-YuMi/Pods-YuMi-resources.sh\"\n";
@@ -1618,14 +1614,10 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-YuMi/Pods-YuMi-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-YuMi/Pods-YuMi-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-YuMi/Pods-YuMi-frameworks.sh\"\n";
@@ -2000,12 +1992,8 @@
"-framework",
"\"FFPopup\"",
"-framework",
"\"FLAnimatedImage\"",
"-framework",
"\"Foundation\"",
"-framework",
"\"GKCycleScrollView\"",
"-framework",
"\"IQKeyboardManager\"",
"-framework",
"\"ImageIO\"",
@@ -2050,12 +2038,8 @@
"-framework",
"\"SDWebImage\"",
"-framework",
"\"SDWebImageFLPlugin\"",
"-framework",
"\"SSKeychain\"",
"-framework",
"\"SZTextView\"",
"-framework",
"\"SafariServices\"",
"-framework",
"\"Security\"",
@@ -2178,12 +2162,8 @@
"-framework",
"\"FFPopup\"",
"-framework",
"\"FLAnimatedImage\"",
"-framework",
"\"Foundation\"",
"-framework",
"\"GKCycleScrollView\"",
"-framework",
"\"IQKeyboardManager\"",
"-framework",
"\"ImageIO\"",
@@ -2228,12 +2208,8 @@
"-framework",
"\"SDWebImage\"",
"-framework",
"\"SDWebImageFLPlugin\"",
"-framework",
"\"SSKeychain\"",
"-framework",
"\"SZTextView\"",
"-framework",
"\"SafariServices\"",
"-framework",
"\"Security\"",