Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
weixin_38335589
uni-app
提交
8fb5dad7
U
uni-app
项目概览
weixin_38335589
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
8fb5dad7
编写于
3月 05, 2021
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(App): uni.chooseImage、uni.chooseVideo i18n
上级
03177b69
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
44 addition
and
6 deletion
+44
-6
src/core/helpers/i18n/en.json
src/core/helpers/i18n/en.json
+6
-0
src/core/helpers/i18n/es.json
src/core/helpers/i18n/es.json
+6
-0
src/core/helpers/i18n/fr.json
src/core/helpers/i18n/fr.json
+6
-0
src/core/helpers/i18n/zh-Hans.json
src/core/helpers/i18n/zh-Hans.json
+6
-0
src/core/helpers/i18n/zh-Hant.json
src/core/helpers/i18n/zh-Hant.json
+6
-0
src/platforms/app-plus/service/api/media/choose-image.js
src/platforms/app-plus/service/api/media/choose-image.js
+7
-3
src/platforms/app-plus/service/api/media/choose-video.js
src/platforms/app-plus/service/api/media/choose-video.js
+7
-3
未找到文件。
src/core/helpers/i18n/en.json
浏览文件 @
8fb5dad7
...
@@ -5,6 +5,12 @@
...
@@ -5,6 +5,12 @@
"uni.showLoading.unpaired"
:
"Please note showLoading must be paired with hideLoading"
,
"uni.showLoading.unpaired"
:
"Please note showLoading must be paired with hideLoading"
,
"uni.showModal.cancel"
:
"cancel"
,
"uni.showModal.cancel"
:
"cancel"
,
"uni.showModal.confirm"
:
"confirm"
,
"uni.showModal.confirm"
:
"confirm"
,
"uni.chooseImage.cancel"
:
"Cancel"
,
"uni.chooseImage.sourceType.album"
:
"Album"
,
"uni.chooseImage.sourceType.camera"
:
"Camera"
,
"uni.chooseVideo.cancel"
:
"Cancel"
,
"uni.chooseVideo.sourceType.album"
:
"Album"
,
"uni.chooseVideo.sourceType.camera"
:
"Camera"
,
"uni.picker.done"
:
"Done"
,
"uni.picker.done"
:
"Done"
,
"uni.picker.cancel"
:
"Cancel"
,
"uni.picker.cancel"
:
"Cancel"
,
"uni.video.danmu"
:
"Danmu"
,
"uni.video.danmu"
:
"Danmu"
,
...
...
src/core/helpers/i18n/es.json
浏览文件 @
8fb5dad7
...
@@ -5,6 +5,12 @@
...
@@ -5,6 +5,12 @@
"uni.showLoading.unpaired"
:
"Tenga en cuenta que showLoading debe estar emparejado con hideLoading"
,
"uni.showLoading.unpaired"
:
"Tenga en cuenta que showLoading debe estar emparejado con hideLoading"
,
"uni.showModal.cancel"
:
"cancelar"
,
"uni.showModal.cancel"
:
"cancelar"
,
"uni.showModal.confirm"
:
"confirmar"
,
"uni.showModal.confirm"
:
"confirmar"
,
"uni.chooseImage.cancel"
:
"Cancelar"
,
"uni.chooseImage.sourceType.album"
:
"Álbum"
,
"uni.chooseImage.sourceType.camera"
:
"Cámara"
,
"uni.chooseVideo.cancel"
:
"Cancelar"
,
"uni.chooseVideo.sourceType.album"
:
"Álbum"
,
"uni.chooseVideo.sourceType.camera"
:
"Cámara"
,
"uni.picker.done"
:
"OK"
,
"uni.picker.done"
:
"OK"
,
"uni.picker.cancel"
:
"Cancelar"
,
"uni.picker.cancel"
:
"Cancelar"
,
"uni.video.danmu"
:
"Danmu"
,
"uni.video.danmu"
:
"Danmu"
,
...
...
src/core/helpers/i18n/fr.json
浏览文件 @
8fb5dad7
...
@@ -5,6 +5,12 @@
...
@@ -5,6 +5,12 @@
"uni.showLoading.unpaired"
:
"Veuillez noter que showLoading doit être associé à hideLoading"
,
"uni.showLoading.unpaired"
:
"Veuillez noter que showLoading doit être associé à hideLoading"
,
"uni.showModal.cancel"
:
"Annuler"
,
"uni.showModal.cancel"
:
"Annuler"
,
"uni.showModal.confirm"
:
"confirmer"
,
"uni.showModal.confirm"
:
"confirmer"
,
"uni.chooseImage.cancel"
:
"Annuler"
,
"uni.chooseImage.sourceType.album"
:
"Album"
,
"uni.chooseImage.sourceType.camera"
:
"Caméra"
,
"uni.chooseVideo.cancel"
:
"Annuler"
,
"uni.chooseVideo.sourceType.album"
:
"Album"
,
"uni.chooseVideo.sourceType.camera"
:
"Caméra"
,
"uni.picker.done"
:
"OK"
,
"uni.picker.done"
:
"OK"
,
"uni.picker.cancel"
:
"Annuler"
,
"uni.picker.cancel"
:
"Annuler"
,
"uni.video.danmu"
:
"Danmu"
,
"uni.video.danmu"
:
"Danmu"
,
...
...
src/core/helpers/i18n/zh-Hans.json
浏览文件 @
8fb5dad7
...
@@ -5,6 +5,12 @@
...
@@ -5,6 +5,12 @@
"uni.showLoading.unpaired"
:
"请注意 showLoading 与 hideLoading 必须配对使用"
,
"uni.showLoading.unpaired"
:
"请注意 showLoading 与 hideLoading 必须配对使用"
,
"uni.showModal.cancel"
:
"取消"
,
"uni.showModal.cancel"
:
"取消"
,
"uni.showModal.confirm"
:
"确认"
,
"uni.showModal.confirm"
:
"确认"
,
"uni.chooseImage.cancel"
:
"取消"
,
"uni.chooseImage.sourceType.album"
:
"从相册选择"
,
"uni.chooseImage.sourceType.camera"
:
"拍摄"
,
"uni.chooseVideo.cancel"
:
"取消"
,
"uni.chooseVideo.sourceType.album"
:
"从相册选择"
,
"uni.chooseVideo.sourceType.camera"
:
"拍摄"
,
"uni.picker.done"
:
"完成"
,
"uni.picker.done"
:
"完成"
,
"uni.picker.cancel"
:
"取消"
,
"uni.picker.cancel"
:
"取消"
,
"uni.video.danmu"
:
"弹幕"
,
"uni.video.danmu"
:
"弹幕"
,
...
...
src/core/helpers/i18n/zh-Hant.json
浏览文件 @
8fb5dad7
...
@@ -5,6 +5,12 @@
...
@@ -5,6 +5,12 @@
"uni.showLoading.unpaired"
:
"請注意 showLoading 與 hideLoading 必須配對使用"
,
"uni.showLoading.unpaired"
:
"請注意 showLoading 與 hideLoading 必須配對使用"
,
"uni.showModal.cancel"
:
"取消"
,
"uni.showModal.cancel"
:
"取消"
,
"uni.showModal.confirm"
:
"確認"
,
"uni.showModal.confirm"
:
"確認"
,
"uni.chooseImage.cancel"
:
"取消"
,
"uni.chooseImage.sourceType.album"
:
"從相冊選擇"
,
"uni.chooseImage.sourceType.camera"
:
"拍攝"
,
"uni.chooseVideo.cancel"
:
"取消"
,
"uni.chooseVideo.sourceType.album"
:
"從相冊選擇"
,
"uni.chooseVideo.sourceType.camera"
:
"拍攝"
,
"uni.picker.done"
:
"完成"
,
"uni.picker.done"
:
"完成"
,
"uni.picker.cancel"
:
"取消"
,
"uni.picker.cancel"
:
"取消"
,
"uni.video.danmu"
:
"彈幕"
,
"uni.video.danmu"
:
"彈幕"
,
...
...
src/platforms/app-plus/service/api/media/choose-image.js
浏览文件 @
8fb5dad7
...
@@ -11,6 +11,10 @@ import {
...
@@ -11,6 +11,10 @@ import {
getFileName
getFileName
}
from
'
../util
'
}
from
'
../util
'
import
{
t
}
from
'
uni-core/helpers/i18n
'
/**
/**
* 获取文件信息
* 获取文件信息
* @param {string} filePath 文件路径
* @param {string} filePath 文件路径
...
@@ -113,11 +117,11 @@ export function chooseImage ({
...
@@ -113,11 +117,11 @@ export function chooseImage ({
}
}
}
}
plus
.
nativeUI
.
actionSheet
({
plus
.
nativeUI
.
actionSheet
({
cancel
:
'
取消
'
,
cancel
:
t
(
'
uni.chooseImage.cancel
'
)
,
buttons
:
[{
buttons
:
[{
title
:
'
拍摄
'
title
:
t
(
'
uni.chooseImage.sourceType.camera
'
)
},
{
},
{
title
:
'
从手机相册选择
'
title
:
t
(
'
uni.chooseImage.sourceType.album
'
)
}]
}]
},
(
e
)
=>
{
},
(
e
)
=>
{
switch
(
e
.
index
)
{
switch
(
e
.
index
)
{
...
...
src/platforms/app-plus/service/api/media/choose-video.js
浏览文件 @
8fb5dad7
...
@@ -10,6 +10,10 @@ import {
...
@@ -10,6 +10,10 @@ import {
warpPlusErrorCallback
warpPlusErrorCallback
}
from
'
../util
'
}
from
'
../util
'
import
{
t
}
from
'
uni-core/helpers/i18n
'
export
function
chooseVideo
({
export
function
chooseVideo
({
sourceType
,
sourceType
,
maxDuration
,
maxDuration
,
...
@@ -66,11 +70,11 @@ export function chooseVideo ({
...
@@ -66,11 +70,11 @@ export function chooseVideo ({
}
}
}
}
plus
.
nativeUI
.
actionSheet
({
plus
.
nativeUI
.
actionSheet
({
cancel
:
'
取消
'
,
cancel
:
t
(
'
uni.chooseVideo.cancel
'
)
,
buttons
:
[{
buttons
:
[{
title
:
'
拍摄
'
title
:
t
(
'
uni.chooseVideo.sourceType.camera
'
)
},
{
},
{
title
:
'
从手机相册选择
'
title
:
t
(
'
uni.chooseVideo.sourceType.album
'
)
}]
}]
},
e
=>
{
},
e
=>
{
switch
(
e
.
index
)
{
switch
(
e
.
index
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录