增加i18n需要的中英文对照表,但还没做功能

This commit is contained in:
yecong 2025-12-19 11:58:52 +08:00
parent 539c425a89
commit b6e6905d05
3 changed files with 219 additions and 2 deletions

View File

@ -191,10 +191,14 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-dfuapp/Pods-dfuapp-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-dfuapp/Pods-dfuapp-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-dfuapp/Pods-dfuapp-frameworks.sh\"\n";
@ -230,10 +234,14 @@
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-dfuapp/Pods-dfuapp-resources-${CONFIGURATION}-input-files.xcfilelist",
);
inputPaths = (
);
name = "[CP] Copy Pods Resources";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-dfuapp/Pods-dfuapp-resources-${CONFIGURATION}-output-files.xcfilelist",
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-dfuapp/Pods-dfuapp-resources.sh\"\n";
@ -275,7 +283,7 @@
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = com.zhixingpai.powerfundfuapp123;
PRODUCT_BUNDLE_IDENTIFIER = com.zhixingpai.powerfundfuapp;
PRODUCT_NAME = dfuapp;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 5.0;
@ -304,7 +312,7 @@
"-ObjC",
"-lc++",
);
PRODUCT_BUNDLE_IDENTIFIER = com.zhixingpai.powerfundfuapp123;
PRODUCT_BUNDLE_IDENTIFIER = com.zhixingpai.powerfundfuapp;
PRODUCT_NAME = dfuapp;
SWIFT_VERSION = 5.0;
VERSIONING_SYSTEM = "apple-generic";

100
src/i18n/en-US.ts Normal file
View File

@ -0,0 +1,100 @@
const enUS = {
nav: {
scan: "Scan",
info: "Device Info",
dfu: "Firmware Update",
privacy: "Privacy Policy",
},
home: {
scan: "Scan Devices",
privacy: "Privacy Policy",
version: "Version v0.0.1",
},
scan: {
scanning: "Scanning...",
noDevice: "No Devices Found",
tipScanning: "(Make sure the device is powered on and awake)",
tipBluetooth: "(Please enable Bluetooth in settings)",
noName: "[No Name]",
rssiUnit: "dBm",
},
dfu: {
preparing: "Preparing...",
reading: "Reading...",
wait: "Please wait",
upgrading: "Updating firmware. Do not exit the app.",
bluetoothName: "Bluetooth Name",
latestVersion: "Latest Version",
currentVersion: "Current Version",
upgradeStatus: "Update Status",
successTitle: "Update Successful",
successMsg: "Firmware updated successfully. Please reconnect the device.",
failTitle: "Update Failed",
noNeedTitle: "No Update Required",
noNeedMsg: "The firmware is already up to date.",
notFoundTitle: "Update Unavailable",
notFoundMsg: "Firmware for hardware version {{hw}} not found",
confirm: "OK",
},
dfuState: {
connecting: "Connecting...",
starting: "Initializing...",
enablingDfuMode: "Enabling DFU Mode...",
uploading: "Uploading firmware...",
validating: "Validating firmware...",
disconnecting: "Disconnecting...",
completed: "Completed",
aborted: "Aborted",
failed: "Update Failed",
dfu_failed: "Update Failed",
initializing: "Starting...",
errored: "Update Error!",
},
privacy: {
title: "Privacy Policy",
content: `This application respects and protects the personal privacy of all users. This Privacy Policy applies only to the POWERFUN Settings App products or services provided by Wuxi Zhixingpai Sports Culture Development Co., Ltd. Please read and fully understand this policy before using our products or services.
1. How We Collect and Use Your Information
1. The POWERFUN Settings App does not require registration or login and does not collect any personal information.
2. During your use of our products or services, we may use the following permissions:
- Android ID
- Storage
- Location
- Bluetooth
3. Third-party SDK usage:
(1) Tencent Bugly
Provider: Tencent Computer Systems Company Limited
Purpose: crash reporting and performance monitoring.
(2) Aliyun OSS
Provider: Alibaba Cloud Computing Co., Ltd.
Purpose: storage of configuration and firmware update files.
2. Updates to This Policy
We may update this policy from time to time. Changes will be published on this page.
3. Contact Us
Email: bike99@qq.com
Wuxi Zhixingpai Sports Culture Development Co., Ltd.
Effective date: July 1, 2019`,
},
};
export default enUS;

109
src/i18n/zh-CN.ts Normal file
View File

@ -0,0 +1,109 @@
const zhCN = {
nav: {
scan: "搜索",
info: "设备信息",
dfu: "固件升级",
privacy: "隐私协议",
},
home: {
scan: "搜索设备",
privacy: "隐私协议",
version: "版本号 v0.0.1",
},
scan: {
scanning: "搜索中...",
noDevice: "暂无设备",
tipScanning: "(请确保设备有电且被唤醒)",
tipBluetooth: "(请在设置中打开蓝牙)",
noName: "[无名称]",
rssiUnit: "dBm",
},
dfu: {
preparing: "准备中...",
reading: "读取中...",
wait: "请稍候",
upgrading: "正在升级,请勿返回或关闭应用!",
bluetoothName: "蓝牙名称",
latestVersion: "最新版本",
currentVersion: "当前版本",
upgradeStatus: "升级状态",
successTitle: "升级成功",
successMsg: "升级成功,请重连设备",
failTitle: "升级失败",
noNeedTitle: "无需升级",
noNeedMsg: "已是最新固件,无需升级",
notFoundTitle: "无法升级",
notFoundMsg: "未找到硬件版本 {{hw}} 的固件",
confirm: "确认",
},
dfuState: {
connecting: "连接中…",
starting: "初始化中…",
enablingDfuMode: "启用 DFU 模式…",
uploading: "上传固件中…",
validating: "校验固件…",
disconnecting: "断开连接…",
completed: "升级完成",
aborted: "已取消",
failed: "升级失败",
dfu_failed: "升级失败",
initializing: "启动中…",
errored: "升级出错!",
},
privacy: {
title: "隐私协议",
content: `本应用尊重并保护所有使用服务用户的个人隐私权。本隐私政策仅适用于无锡执行派体育文化发展有限公司的 POWERFUN 设置 APP 产品或服务。请在使用我们的产品或服务前,仔细阅读并了解本隐私政策。
使
1. POWERFUN APP
2. 使使
- Android ID
-
- APP
- APP
3. SDK 使
1 SDK Bugly
ID WiFi
使使
2 SDK Aliyun OSS
使
-
-
-
bike99@qq.com
2019 7 1 `,
},
};
export default zhCN;