Merge pull request #7 from ElliotCHEN37/swift

update localization and repo url
This commit is contained in:
whoeevee
2025-08-18 21:25:14 +03:00
committed by GitHub
5 changed files with 14 additions and 6 deletions
@@ -18,7 +18,7 @@ struct GitHubHelper {
}
func getLatestRelease() async throws -> GitHubRelease {
let data = try await perform("/repos/whoeevee/EeveeSpotify/releases/latest")
let data = try await perform("/repos/whoeevee/EeveeSpotifyReborn/releases/latest")
return try decoder.decode(GitHubRelease.self, from: data)
}
@@ -28,14 +28,14 @@ struct GitHubHelper {
}
func getContributors() async throws -> [GitHubUser] {
let data = try await perform("/repos/whoeevee/EeveeSpotify/contributors")
let data = try await perform("/repos/whoeevee/EeveeSpotifyReborn/contributors")
return try decoder.decode([GitHubUser].self, from: data)
}
func getEeveeContributorSections() async throws -> [EeveeContributorSection] {
let (data, _) = try await URLSession.shared.data(
from: URL(
string: "https://raw.githubusercontent.com/whoeevee/EeveeSpotify/swift/contributors.json"
string: "https://raw.githubusercontent.com/whoeevee/EeveeSpotifyReborn/swift/contributors.json"
)!
)
return try decoder.decode([EeveeContributorSection].self, from: data)
@@ -29,6 +29,6 @@ class EeveeSettingsViewController: SPTPageViewController {
}
@objc func openRepositoryUrl(_ sender: UIButton) {
UIApplication.shared.open(URL(string: "https://github.com/whoeevee/EeveeSpotify")!)
UIApplication.shared.open(URL(string: "https://github.com/whoeevee/EeveeSpotifyReborn")!)
}
}
@@ -18,7 +18,7 @@ struct CommonIssuesTipView: View {
Link(
destination: URL(
string: "https://github.com/whoeevee/EeveeSpotify/blob/swift/common_issues.md"
string: "https://github.com/whoeevee/EeveeSpotifyReborn/blob/swift/common_issues.md"
)!,
label: {
VStack {
@@ -18,7 +18,7 @@ struct EeveeSettingsVersionView: View {
if isUpdateAvailable {
Link(
"update_available".localized,
destination: URL(string: "https://github.com/whoeevee/EeveeSpotify/releases")!
destination: URL(string: "https://github.com/whoeevee/EeveeSpotifyReborn/releases")!
)
}
} footer: {
@@ -131,3 +131,11 @@ request_anonymous_token = "請求匿名使用者權杖";
request_anonymous_token_description = "點擊 「請求匿名使用者權杖」 後 EeveeSpotify 會嘗試在未授權的情況下從 Musixmatch 取得使用者權杖.";
lrclib_api = "伺服器地址";
// Snapshot of your benefits, should match official spotify loc
ad_free_music_listening = "無廣告暢聽音樂";
play_songs_in_any_order = "由你決定歌曲播放順序";
organize_listening_queue = "整理聆聽佇列";
payment_notice = "EeveeSpotify 通過應用修補以啟用 Premium 功能且完全免費.";