forked from SilenceLove/HXPhotoPicker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
69 changed files
with
3,429 additions
and
3,016 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
// | ||
// CustomLanguage.swift | ||
// HXPhotoPicker | ||
// | ||
// Created by Slience on 2021/1/7. | ||
// Created by Silence on 2024/3/30. | ||
// Copyright © 2024 Silence. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public class CustomLanguage { | ||
/// 语言 | ||
|
||
/// 会与 Locale.preferredLanguages 进行匹配,匹配成功的才会使用。请确保正确性 | ||
public let language: String | ||
/// 语言文件路径 | ||
public let path: String | ||
/// 语言Bundle | ||
public let bundle: Bundle | ||
|
||
public init(language: String, | ||
path: String) { | ||
public init( | ||
language: String, | ||
bundle: Bundle | ||
) { | ||
self.language = language | ||
self.path = path | ||
self.bundle = bundle | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.