Skip to content

Commit

Permalink
add localization and documents
Browse files Browse the repository at this point in the history
  • Loading branch information
duzexu committed Nov 19, 2024
1 parent ea52534 commit e50cc07
Show file tree
Hide file tree
Showing 55 changed files with 643 additions and 147 deletions.
3 changes: 3 additions & 0 deletions ADPhotoKit/ADPhotoKit.docc/ADPhotoKit.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ ADPhotoKit contains four moudles:
* Core: Module provides method to get system album data.
* CoreUI: Module provides ui for asset select.
* ImageEdit: Module provides image edit ability.
* VideoEdit: Module provides video edit ability.

## Features

Expand All @@ -23,6 +24,7 @@ ADPhotoKit contains four moudles:
* [x] UIAppearance support.
* [x] Supports batch export PHAsset to image.
* [x] Image editor.
* [x] Video editor.
* [x] DocC support.
* [x] SwiftUI support.
* [x] Custom capture support.
Expand All @@ -46,3 +48,4 @@ ADPhotoKit is available under the MIT license. See the LICENSE file for more inf
- <doc:CoreModule>
- <doc:CoreUIModule>
- <doc:ImageEditModule>
- <doc:VideoEditModule>
4 changes: 4 additions & 0 deletions ADPhotoKit/ADPhotoKit.docc/BaseModule.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ Modify configuration for ADPhotoKit.

- <doc:CustomLocalization>
- ``ADLocale``

### Framework Errors

- ``ADError``
5 changes: 0 additions & 5 deletions ADPhotoKit/ADPhotoKit.docc/CoreModule.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,3 @@ Get system album raw data and wrap as list dataSource.

- ``UIKit/UIImageView/setAsset(_:size:placeholder:progress:completionHandler:)``
- ``UIKit/UIImageView/setVideoUrlAsset(_:time:)``

### UIImage Extensions

- ``UIKit/UIImage/browseAsset``
- ``UIKit/UIImage/imageEditInfo``
40 changes: 40 additions & 0 deletions ADPhotoKit/ADPhotoKit.docc/EditCore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# EditCore

Base edit components.

## Topics

### Edit Tool

- ``ADEditToolCodable``
- ``ADEditTool``
- ``ADToolConfigable``
- ``ADToolInteractable``

### Interact View

- ``ADClipingInfo``
- ``ADRotation``
- ``ADInteractStrategy``
- ``ADInteractType``
- ``ADInteractZIndex``

### Sticker Interact

- ``ADStickerInfo``
- ``ADStickerInteractView``
- ``ADStickerInteractHandle``
- ``ADStickerContentView``
- ``ADImageStickerContentView``

### Image Sticker

- ``ADImageStickerInfo``
- ``ADImageStickerDataSource``
- ``ADImageStickerSelectConfigurable``

### Text Sticker

- ``ADTextSticker``
- ``ADTextStickerColor``
- ``ADTextStickerEditConfigurable``
49 changes: 41 additions & 8 deletions ADPhotoKit/ADPhotoKit.docc/Extensions/ADPhotoKitConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,28 +53,61 @@
- ``customBrowserCellRegistor``
- ``customBrowserCellBlock``

### Custom Capture

- ``AssetCaptureConfig``
- ``captureConfig``
- ``customAssetCaptureVCBlock``

### Image Sticker Config

- ``imageStickerDataSource``
- ``customImageStickerSelectVCBlock``

### Text Sticker Config

- ``customTextStickerEditVCBlock``
- ``textStickerColors``
- ``textStickerDefaultColorIndex``
- ``textStickerDefaultFontSize``
- ``textStickerDefaultStrokeWidth``

### ImageEdit Config

- <doc:CustomImageIcons>
- ``customImageEditBundle``
- ``systemImageEditTools``
- ``customImageEditToolsBlock``
- ``customImageEditVCBlock``

### ImageEdit Draw Config

- ``lineDrawColors``
- ``lineDrawDefaultColorIndex``
- ``lineDrawWidth``
- ``mosaicDrawWidth``

### ImageEdit Sticker Config

- ``imageStickerDataSource``
- ``customImageStickerSelectVC``
- ``customTextStickerEditVCBlock``
- ``textStickerColors``
- ``textStickerDefaultColorIndex``
- ``eraseOutlineWidth``

### ImageEdit Clip Config

- ``customImageClipVCBlock``

### VideoEdit Config

- <doc:CustomImageIcons>
- ``customVideoEditBundle``
- ``systemVideoEditTools``
- ``customVideoEditToolsBlock``
- ``customVideoPlayable``
- ``customVideoEditVCBlock``

### VideoEdit BGM Config

- ``videoMusicDataSource``
- ``customVideoMusicSelectVCBlock``

### VideoEdit Clip Config

- ``customVideoClipVCBlock``


7 changes: 4 additions & 3 deletions ADPhotoKit/ADPhotoKit.docc/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ There are 4 subspecs available now:
| Subspec | Description |
|---|---|
| Base | Required. This subspec provides base configuration and extensions. |
| Core | Optional. This subspec provides raw data. |
| CoreUI | Optional. The subspec provides ui for photo select. |
| ImageEdit | Optional. The subspec provides image edit ability. |
| Core | Optional. This subspec provides raw data. Depend on Base subspec. |
| CoreUI | Optional. The subspec provides ui for photo select. Depend on Core subspec. |
| ImageEdit | Optional. The subspec provides image edit ability. Depend on Base subspec. |
| VideoEdit | Optional. The subspec provides video edit ability. Depend on Base subspec. |

You can install only some of the ADPhotoKit modules. By default, you get `CoreUI` subspecs.

Expand Down
37 changes: 3 additions & 34 deletions ADPhotoKit/ADPhotoKit.docc/ImageEditModule.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,53 +6,22 @@ Provide image editing capabilities.

### Essentials

- <doc:EditCore>
- ``ADImageEditConfigurable``
- ``ADImageEditTools``
- ``ADImageEditInfo``

### Edit Tool
### Edit Tool

- ``ADImageEditToolCodable``
- ``ADImageEditTool``
- ``ADToolConfigable``
- ``ADToolInteractable``

- ``ADSourceImageModify``
- ``ADSourceImageEditable``

### Clip
### Image Clip

- ``ADImageClipInfo``
- ``ADRotation``
- ``ADImageClipConfigurable``

### Interact View

- ``ADClipingInfo``
- ``ADInteractStrategy``
- ``ADInteractType``
- ``ADInteractZIndex``

### Sticker Interact

- ``ADStickerInfo``
- ``ADStickerInteractView``
- ``ADStickerInteractHandle``
- ``ADStickerContentView``
- ``ADImageStickerContentView``

### TextSticker

- ``ADTextSticker``
- ``ADTextStickerColor``
- ``ADTextStickerEditConfigurable``

### Image Sticker

- ``ADImageStickerInfo``
- ``ADImageStickerDataSource``
- ``ADImageStickerSelectConfigurable``

### Undo & Redo

- ``ADEditAction``
Expand Down
39 changes: 39 additions & 0 deletions ADPhotoKit/ADPhotoKit.docc/VideoEditModule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# VideoEdit Module

Provide video editing capabilities.

## Topics

### Essentials

- <doc:EditCore>
- ``ADVideoEditConfigurable``
- ``ADVideoEditTools``
- ``ADVideoEditInfo``

### Edit Tool

- ``ADVideoEditTool``

### Video Play

- ``ADVideoPlayable``
- ``ADVideoExporter``
- ``ADContentChangable``

### Clip

- ``ADVideoClipInfo``
- ``ADVideoClipConfigurable``

### Bgm

- ``ADVideoSound``

- ``ADMusicItem``
- ``ADLyricItem``
- ``ADVideoMusicDataSource``
- ``ADVideoMusicSelectConfigurable``



7 changes: 7 additions & 0 deletions ADPhotoKit/Assets/Base/ar.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@
"unableToAccessAllPhotos" = "يتعذر الوصول إلى جميع الصور في الألبوم ، يرجى السماح بالوصول إلى كل الصور في الصور .";
"textStickerDeleteTips" = "اسحب هنا للإزالة";
"textStickerReleaseToDelete" = "الافراج عن الحذف";

"exportFailed" = "فشل التصدير";
"noMusic" = "لا توجد موسيقى بعد";
"music" = "مقطع صوتي";
"ost" = "الصوت الأصلي";
"lyrics" = "كلمات";
"musicSearch" = "البحث عن عنوان الأغنية / المغني / كلمات / المزاج";
7 changes: 7 additions & 0 deletions ADPhotoKit/Assets/Base/de.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@
"unableToAccessAllPhotos" = "Zugriff auf alle Fotos im Album nicht möglich.\nZugriff auf \"Alle Fotos\" unter \"Fotos\" zulassen.";
"textStickerDeleteTips" = "Zum Entfernen hierher ziehen";
"textStickerReleaseToDelete" = "Release to delete";

"exportFailed" = "Export fehlgeschlagen";
"noMusic" = "Noch keine Musik";
"music" = "Soundtrack";
"ost" = "Originalton";
"lyrics" = "Liedtexte";
"musicSearch" = "Suche Songtitel/Sänger/Text/Stimmung";
7 changes: 7 additions & 0 deletions ADPhotoKit/Assets/Base/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@
"unableToAccessAllPhotos" = "Unable to access all photos in the album.\nAllow access to \"All Photos\" in \"Photos\".";
"textStickerDeleteTips" = "Drag here to delete";
"textStickerReleaseToDelete" = "Release to delete";

"exportFailed" = "Export failed";
"noMusic" = "No Music";
"music" = "Music";
"ost" = "Audio";
"lyrics" = "Lyrics";
"musicSearch" = "Search by name/singer/lyrics/mood";
7 changes: 7 additions & 0 deletions ADPhotoKit/Assets/Base/es-419.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@
"unableToAccessAllPhotos" = "No se puede acceder a todas las fotos del álbum.\nPermite el acceso a \"Todas las fotos\" en \"Fotos\".";
"textStickerDeleteTips" = "Arrastra aquí para eliminar";
"textStickerReleaseToDelete" = "Liberar para eliminar";

"exportFailed" = "Exportación fallida";
"noMusic" = "Aún no hay música";
"music" = "música";
"ost" = "sonido original";
"lyrics" = "lírica";
"musicSearch" = "Buscar título de canción/cantante/letra/estado de ánimo";
7 changes: 7 additions & 0 deletions ADPhotoKit/Assets/Base/fr.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@
"unableToAccessAllPhotos" = "Impossible d'accéder à toutes les photos de l'album.\nAutorisez l'accès à « Toutes les photos » dans « Photos ».";
"textStickerDeleteTips" = "Faites glisser ici pour supprimer";
"textStickerReleaseToDelete" = "Lascia andare a cancellare";

"exportFailed" = "Échec de l'exportation";
"noMusic" = "Pas encore de musique";
"music" = "bande sonore";
"ost" = "son original";
"lyrics" = "paroles";
"musicSearch" = "Rechercher le titre de la chanson/le chanteur/les paroles/l'ambiance";
7 changes: 7 additions & 0 deletions ADPhotoKit/Assets/Base/id.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@
"unableToAccessAllPhotos" = "Tidak dapat mengakses semua foto dalam album.\nIzinkan akses ke \"Semua Foto\" di \"Foto\".";
"textStickerDeleteTips" = "Seret ke sini untuk menghapus";
"textStickerReleaseToDelete" = "Lepaskan untuk menghapus";

"exportFailed" = "Ekspor gagal";
"noMusic" = "Belum ada musik";
"music" = "soundtrack";
"ost" = "suara asli";
"lyrics" = "lirik";
"musicSearch" = "Cari judul lagu/penyanyi/lirik/suasana hati";
7 changes: 7 additions & 0 deletions ADPhotoKit/Assets/Base/it.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@
"unableToAccessAllPhotos" = "Impossibile accedere a tutte le foto nell'album.\nConsenti l'accesso a \"Tutte le foto\" in \"Foto\"";
"textStickerDeleteTips" = "Trascina qui per rimuovere";
"textStickerReleaseToDelete" = "Lascia andare a cancellare";

"exportFailed" = "Esportazione non riuscita";
"noMusic" = "Nessuna musica ancora";
"music" = "colonna sonora";
"ost" = "suono originale";
"lyrics" = "liriche";
"musicSearch" = "Cerca titolo/cantante/testi/mood della canzone";
7 changes: 7 additions & 0 deletions ADPhotoKit/Assets/Base/ja-US.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@
"unableToAccessAllPhotos" = "アルバム内のすべての写真にアクセスできません。\n「写真」内の「すべての写真」 へのアクセスを許可してください。";
"textStickerDeleteTips" = "ここにドラッグして削除します";
"textStickerReleaseToDelete" = "削除するために行こう";

"exportFailed" = "エクスポート失敗";
"noMusic" = "まだ音楽がありません";
"music" = "サウンドトラック";
"ost" = "オリジナルサウンド";
"lyrics" = "歌詞";
"musicSearch" = "曲名/歌手/歌詞/雰囲気を検索";
7 changes: 7 additions & 0 deletions ADPhotoKit/Assets/Base/ko.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@
"unableToAccessAllPhotos" = "앨범 사진에 접근할 수 없습니다.\n\"사진\"에서 \"모든 사진\"에 대한 접근을 허용합니다.";
"textStickerDeleteTips" = "제거하려면 여기로 드래그하세요";
"textStickerReleaseToDelete" = "삭제하러 가자";

"exportFailed" = "내보내기 실패";
"noMusic" = "아직 음악이 없습니다";
"music" = "사운드 트랙";
"ost" = "오리지널 사운드";
"lyrics" = "가사";
"musicSearch" = "노래제목/가수/가사/분위기 검색";
7 changes: 7 additions & 0 deletions ADPhotoKit/Assets/Base/ms.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@
"unableToAccessAllPhotos" = "Tidak dapat mengakses semua foto dalam album.\nBenarkan akses kepada \"Semua Foto\" dalam \"Foto\".";
"textStickerDeleteTips" = "Seret ke sini untuk mengalih keluar";
"textStickerReleaseToDelete" = "Lepaskan untuk memadam";

"exportFailed" = "Eksport gagal";
"noMusic" = "Tiada muzik lagi";
"music" = "runut bunyi";
"ost" = "bunyi asal";
"lyrics" = "lirik";
"musicSearch" = "Cari tajuk lagu/penyanyi/lirik/mood";
7 changes: 7 additions & 0 deletions ADPhotoKit/Assets/Base/nl.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@
"unableToAccessAllPhotos" = "Geen toegang tot alle foto's in het album,\nGeef toegang tot 'Alle foto's' in 'Foto's'.";
"textStickerDeleteTips" = "Sleep hier om te verwijderen";
"textStickerReleaseToDelete" = "Laat los om te verwijderen";

"exportFailed" = "Exporteren is mislukt";
"noMusic" = "Nog geen muziek";
"music" = "soundtrack";
"ost" = "origineel geluid";
"lyrics" = "songteksten";
"musicSearch" = "Zoek titel van het nummer/zanger/tekst/stemming";
7 changes: 7 additions & 0 deletions ADPhotoKit/Assets/Base/pt-BR.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@
"unableToAccessAllPhotos" = "Incapaz de aceder a todas as fotografias do álbum.\nPermitir o acesso a \"Todas as fotos\" em \"Fotos\".";
"textStickerDeleteTips" = "Arraste aqui para remover";
"textStickerReleaseToDelete" = "Solte para excluir";

"exportFailed" = "Falha na exportação";
"noMusic" = "Ainda não há música";
"music" = "trilha sonora";
"ost" = "som original";
"lyrics" = "letras";
"musicSearch" = "Pesquise título da música/cantor/letra/humor";
Loading

0 comments on commit e50cc07

Please sign in to comment.