mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-10 16:25:26 +00:00
Add indicator which language is translated (#455)
This commit is contained in:
parent
392b1bd01a
commit
5871d13eee
11 changed files with 21 additions and 2 deletions
|
@ -292,6 +292,7 @@
|
||||||
|
|
||||||
// MARK: Package: Status
|
// MARK: Package: Status
|
||||||
"status.action.translate" = "Übersetzen";
|
"status.action.translate" = "Übersetzen";
|
||||||
|
"status.action.translate-from-%@" = "Übersetzen aus %@";
|
||||||
"status.action.translated-label" = "Übersetzt mit DeepL.com";
|
"status.action.translated-label" = "Übersetzt mit DeepL.com";
|
||||||
"status.action.bookmark" = "Lesezeichen";
|
"status.action.bookmark" = "Lesezeichen";
|
||||||
"status.action.boost" = "Boosten";
|
"status.action.boost" = "Boosten";
|
||||||
|
|
|
@ -291,6 +291,7 @@
|
||||||
|
|
||||||
// MARK: Package: Status
|
// MARK: Package: Status
|
||||||
"status.action.translate" = "Translate";
|
"status.action.translate" = "Translate";
|
||||||
|
"status.action.translate-from-%@" = "Translate from %@";
|
||||||
"status.action.translated-label" = "Translated using DeepL.com";
|
"status.action.translated-label" = "Translated using DeepL.com";
|
||||||
"status.action.bookmark" = "Bookmark";
|
"status.action.bookmark" = "Bookmark";
|
||||||
"status.action.boost" = "Boost";
|
"status.action.boost" = "Boost";
|
||||||
|
|
|
@ -292,6 +292,7 @@
|
||||||
|
|
||||||
// MARK: Package: Status
|
// MARK: Package: Status
|
||||||
"status.action.translate" = "Traducir";
|
"status.action.translate" = "Traducir";
|
||||||
|
"status.action.translate-from-%@" = "Traducir desde %@";
|
||||||
"status.action.translated-label" = "Traducido usando DeepL.com";
|
"status.action.translated-label" = "Traducido usando DeepL.com";
|
||||||
"status.action.bookmark" = "Añadir a marcadores";
|
"status.action.bookmark" = "Añadir a marcadores";
|
||||||
"status.action.boost" = "Retootear";
|
"status.action.boost" = "Retootear";
|
||||||
|
|
|
@ -287,6 +287,7 @@
|
||||||
|
|
||||||
// MARK: Package: Status
|
// MARK: Package: Status
|
||||||
"status.action.translate" = "Traduire";
|
"status.action.translate" = "Traduire";
|
||||||
|
"status.action.translate-from-%@" = "Traduire de %@";
|
||||||
"status.action.translated-label" = "Traduit avec DeepL.com";
|
"status.action.translated-label" = "Traduit avec DeepL.com";
|
||||||
"status.action.bookmark" = "Marquer";
|
"status.action.bookmark" = "Marquer";
|
||||||
"status.action.boost" = "Promouvoir";
|
"status.action.boost" = "Promouvoir";
|
||||||
|
|
|
@ -293,6 +293,7 @@
|
||||||
|
|
||||||
// MARK: Package: Status
|
// MARK: Package: Status
|
||||||
"status.action.translate" = "Traduci";
|
"status.action.translate" = "Traduci";
|
||||||
|
"status.action.translate-from-%@" = "Traduci da %@";
|
||||||
"status.action.translated-label" = "Tradotto usando DeepL.com";
|
"status.action.translated-label" = "Tradotto usando DeepL.com";
|
||||||
"status.action.bookmark" = "Salva nei segnalibri";
|
"status.action.bookmark" = "Salva nei segnalibri";
|
||||||
"status.action.boost" = "Condividi";
|
"status.action.boost" = "Condividi";
|
||||||
|
|
|
@ -275,6 +275,7 @@
|
||||||
|
|
||||||
// MARK: Package: Status
|
// MARK: Package: Status
|
||||||
"status.action.translate" = "翻訳";
|
"status.action.translate" = "翻訳";
|
||||||
|
"status.action.translate-from-%@" = "翻訳 %@";
|
||||||
"status.action.translated-label" = "DeepL.comを使用して翻訳";
|
"status.action.translated-label" = "DeepL.comを使用して翻訳";
|
||||||
"status.action.bookmark" = "ブックマーク";
|
"status.action.bookmark" = "ブックマーク";
|
||||||
"status.action.boost" = "ブースト";
|
"status.action.boost" = "ブースト";
|
||||||
|
|
|
@ -289,6 +289,7 @@
|
||||||
|
|
||||||
// MARK: Package: Status
|
// MARK: Package: Status
|
||||||
"status.action.translate" = "Vertaal";
|
"status.action.translate" = "Vertaal";
|
||||||
|
"status.action.translate-from-%@" = "Vertaal uit %@";
|
||||||
"status.action.translated-label" = "Vertaald met behulp van DeepL.com";
|
"status.action.translated-label" = "Vertaald met behulp van DeepL.com";
|
||||||
"status.action.bookmark" = "Voeg bladwijzer toe";
|
"status.action.bookmark" = "Voeg bladwijzer toe";
|
||||||
"status.action.boost" = "Boosten";
|
"status.action.boost" = "Boosten";
|
||||||
|
|
|
@ -273,6 +273,7 @@
|
||||||
|
|
||||||
// MARK: Package: Status
|
// MARK: Package: Status
|
||||||
"status.action.translate" = "Tercüme et";
|
"status.action.translate" = "Tercüme et";
|
||||||
|
"status.action.translate-from-%@" = "Tercüme et %@";
|
||||||
"status.action.translated-label" = "DeepL.com tarafından tercüme edildi";
|
"status.action.translated-label" = "DeepL.com tarafından tercüme edildi";
|
||||||
"status.action.bookmark" = "Yer İmi Ekle";
|
"status.action.bookmark" = "Yer İmi Ekle";
|
||||||
"status.action.boost" = "Yükselt";
|
"status.action.boost" = "Yükselt";
|
||||||
|
|
|
@ -292,6 +292,7 @@
|
||||||
|
|
||||||
// MARK: Package: Status
|
// MARK: Package: Status
|
||||||
"status.action.translate" = "翻译";
|
"status.action.translate" = "翻译";
|
||||||
|
"status.action.translate-from-%@" = "翻译 %@";
|
||||||
"status.action.translated-label" = "使用 DeepL.com 翻译";
|
"status.action.translated-label" = "使用 DeepL.com 翻译";
|
||||||
"status.action.bookmark" = "书签";
|
"status.action.bookmark" = "书签";
|
||||||
"status.action.boost" = "转发";
|
"status.action.boost" = "转发";
|
||||||
|
|
|
@ -85,7 +85,12 @@ struct StatusRowContextMenu: View {
|
||||||
await viewModel.translate(userLang: lang)
|
await viewModel.translate(userLang: lang)
|
||||||
}
|
}
|
||||||
} label: {
|
} label: {
|
||||||
Label("status.action.translate", systemImage: "captions.bubble")
|
if let statusLanguage = viewModel.status.language,
|
||||||
|
let lanugageName = Locale.current.localizedString(forLanguageCode: statusLanguage) {
|
||||||
|
Label("status.action.translate-from-\(lanugageName)", systemImage: "captions.bubble")
|
||||||
|
} else {
|
||||||
|
Label("status.action.translate", systemImage: "captions.bubble")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -316,7 +316,12 @@ public struct StatusRowView: View {
|
||||||
if viewModel.isLoadingTranslation {
|
if viewModel.isLoadingTranslation {
|
||||||
ProgressView()
|
ProgressView()
|
||||||
} else {
|
} else {
|
||||||
Text("status.action.translate")
|
if let statusLanguage = status.language,
|
||||||
|
let lanugageName = Locale.current.localizedString(forLanguageCode: statusLanguage) {
|
||||||
|
Text("status.action.translate-from-\(lanugageName)")
|
||||||
|
} else {
|
||||||
|
Text("status.action.translate")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.buttonStyle(.borderless)
|
.buttonStyle(.borderless)
|
||||||
|
|
Loading…
Reference in a new issue