ionic3 图片选取imagepicker以及camera汉化

android:

    camera在android下不需要汉化,直接用就行

    imagepicker:

          在platforms/android/res下创建文件夹values-zh,其下创建文件multiimagechooser_strings_zh.xml

          文件内容:



  图片选择器
  还可以选择 %d 张图片
  打开图像数据库时出错,请反馈问题.
  请求缩略图,请耐心等待
  正在处理...
  请稍等...
  取消
  确定

ios:

carema汉化如图:

 

XCode打开项目,在plist下将Localization native development region的值改为china,然后添加Localizations再添加Item1中的Chinese即可

 

imagepicker汉化:

在Resources目录下创建文件夹zh-Hans.lproj,其下创建文件GMImagePicker.strings,内容如下:

/* Cancel */
"picker.navigation.cancel-button" = "取消";

/* Done */
"picker.navigation.done-button" = "完成";

/* Navigation bar default title */
"picker.navigation.title" = "我的相册";

/* %@ Items Selected */
"picker.selection.multiple-items" = "已选中 %@ 项";

/* %@ Photos Selected */
"picker.selection.multiple-photos" = "已选中 %@ 张照片";

/* %@ Videos Selected */
"picker.selection.multiple-videos" = "已选中 %@ 个视频";

/* 1 Photo Selected */
"picker.selection.single-photo" = "已选中 1 张照片";

/* 1 Video Selected */
"picker.selection.single-video" = "已选中 1 个视频";

/* All photos */
"picker.table.all-photos-label" = "相机胶卷";

/* Smart Albums */
"picker.table.smart-albums-header" = "智能相册";

/* Albums */
"picker.table.user-albums-header" = "相册";

你可能感兴趣的:(前端开发,移动端,ionic,前端)