更新workflow
This commit is contained in:
@@ -2,6 +2,8 @@ import type { ConfigContext, ExpoConfig } from 'expo/config';
|
||||
|
||||
import zh from './locales/zh.json';
|
||||
import en from './locales/en.json';
|
||||
import permissionsZh from './locales/permissions/zh.json';
|
||||
import permissionsEn from './locales/permissions/en.json';
|
||||
|
||||
type PermissionKey =
|
||||
| 'microphone'
|
||||
@@ -20,8 +22,8 @@ type PrivacyAccessedAPIType = {
|
||||
};
|
||||
|
||||
const LOCALES: Record<string, LocaleMessages> = {
|
||||
zh,
|
||||
en,
|
||||
zh: { ...zh, permissions: permissionsZh },
|
||||
en: { ...en, permissions: permissionsEn },
|
||||
};
|
||||
|
||||
const SUPPORTED_LOCALES = ['zh', 'en'] as const;
|
||||
|
||||
@@ -4,12 +4,5 @@
|
||||
},
|
||||
"android": {
|
||||
"app_name": "app-expo"
|
||||
},
|
||||
"permissions": {
|
||||
"microphone": "Allow $(PRODUCT_NAME) to access your microphone for recording and voice features.",
|
||||
"photos": "Allow $(PRODUCT_NAME) to access your photos and videos to select media.",
|
||||
"camera": "Allow $(PRODUCT_NAME) to access your camera for taking photos and recording videos.",
|
||||
"microphoneForVideo": "Allow $(PRODUCT_NAME) to access your microphone for recording videos with sound.",
|
||||
"faceId": "Allow $(PRODUCT_NAME) to use Face ID to securely access local sensitive data."
|
||||
}
|
||||
}
|
||||
|
||||
7
app-expo/locales/permissions/en.json
Normal file
7
app-expo/locales/permissions/en.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"microphone": "Allow $(PRODUCT_NAME) to access your microphone for recording and voice features.",
|
||||
"photos": "Allow $(PRODUCT_NAME) to access your photos and videos to select media.",
|
||||
"camera": "Allow $(PRODUCT_NAME) to access your camera for taking photos and recording videos.",
|
||||
"microphoneForVideo": "Allow $(PRODUCT_NAME) to access your microphone for recording videos with sound.",
|
||||
"faceId": "Allow $(PRODUCT_NAME) to use Face ID to securely access local sensitive data."
|
||||
}
|
||||
7
app-expo/locales/permissions/zh.json
Normal file
7
app-expo/locales/permissions/zh.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"microphone": "允许 $(PRODUCT_NAME) 访问麦克风,用于录音和语音功能。",
|
||||
"photos": "允许 $(PRODUCT_NAME) 访问你的照片和视频,用于选择媒体内容。",
|
||||
"camera": "允许 $(PRODUCT_NAME) 访问相机,用于拍照和录制视频。",
|
||||
"microphoneForVideo": "允许 $(PRODUCT_NAME) 访问麦克风,用于录制带声音的视频。",
|
||||
"faceId": "允许 $(PRODUCT_NAME) 使用 Face ID 来安全访问本地敏感数据。"
|
||||
}
|
||||
@@ -4,12 +4,5 @@
|
||||
},
|
||||
"android": {
|
||||
"app_name": "app-expo"
|
||||
},
|
||||
"permissions": {
|
||||
"microphone": "允许 $(PRODUCT_NAME) 访问麦克风,用于录音和语音功能。",
|
||||
"photos": "允许 $(PRODUCT_NAME) 访问你的照片和视频,用于选择媒体内容。",
|
||||
"camera": "允许 $(PRODUCT_NAME) 访问相机,用于拍照和录制视频。",
|
||||
"microphoneForVideo": "允许 $(PRODUCT_NAME) 访问麦克风,用于录制带声音的视频。",
|
||||
"faceId": "允许 $(PRODUCT_NAME) 使用 Face ID 来安全访问本地敏感数据。"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user