Skip to content

Commit

Permalink
Updates localizations.
Browse files Browse the repository at this point in the history
  • Loading branch information
mntone committed Dec 30, 2023
1 parent ed580ea commit 3cb3190
Show file tree
Hide file tree
Showing 4 changed files with 216 additions and 6 deletions.
214 changes: 212 additions & 2 deletions src/App/Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -974,36 +974,174 @@
}
}
},
"Add Favorite" : {
"Add to Favorites" : {
"comment" : "action.favorite.add",
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
"value" : "إضافة إلى المفضلة"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Als Favorit sichern"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Add Favorite"
"value" : "Add to Favorites"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Añadir a favoritos"
}
},
"es-419" : {
"stringUnit" : {
"state" : "translated",
"value" : "Agregar a Favoritos"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Ajouter aux favoris"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Aggiungi a Preferiti"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "お気に入りに追加"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "즐겨찾기에 추가"
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
"value" : "Dodaj do ulubionych"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Favoritos"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
"value" : "Добавить в Избранное"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "添加到收藏夹"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "加入收藏夾"
}
}
}
},
"All Monsters" : {
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
"value" : "جميع الوحوش"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Alle Monster"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "All Monsters"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Todos los monstruos"
}
},
"es-419" : {
"stringUnit" : {
"state" : "translated",
"value" : "Todos los monstruos"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Tutti i mostri"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "すべてのモンスター"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "모든 몬스터"
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
"value" : "Wszystkie Potwory"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Todos os Monstros"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
"value" : "Все монстры"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "所有怪物"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "所有怪物"
}
}
}
},
Expand Down Expand Up @@ -3638,17 +3776,89 @@
},
"Favorites" : {
"localizations" : {
"ar" : {
"stringUnit" : {
"state" : "translated",
"value" : "المفضلة"
}
},
"de" : {
"stringUnit" : {
"state" : "translated",
"value" : "Favoriten"
}
},
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Favorites"
}
},
"es" : {
"stringUnit" : {
"state" : "translated",
"value" : "Favoritos"
}
},
"es-419" : {
"stringUnit" : {
"state" : "translated",
"value" : "Favoritos"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Favoris"
}
},
"it" : {
"stringUnit" : {
"state" : "translated",
"value" : "Preferiti"
}
},
"ja" : {
"stringUnit" : {
"state" : "translated",
"value" : "お気に入り"
}
},
"ko" : {
"stringUnit" : {
"state" : "translated",
"value" : "즐겨찾기"
}
},
"pl" : {
"stringUnit" : {
"state" : "translated",
"value" : "Ulubione"
}
},
"pt-BR" : {
"stringUnit" : {
"state" : "translated",
"value" : "Favoritos"
}
},
"ru" : {
"stringUnit" : {
"state" : "translated",
"value" : "Избранное"
}
},
"zh-Hans" : {
"stringUnit" : {
"state" : "translated",
"value" : "收藏夹"
}
},
"zh-Hant" : {
"stringUnit" : {
"state" : "translated",
"value" : "收藏夾"
}
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ extension WeaknessDisplayMode {
var label: LocalizedStringKey {
switch self {
case .none:
LocalizedStringKey("None")
LocalizedStringKey("Off")
case .sign:
LocalizedStringKey("Sign")
case let .number(fractionLength):
Expand Down
2 changes: 1 addition & 1 deletion src/App/Views/MonsterListItem.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ struct MonsterListItem: View {
viewModel.isFavorited = false
}
} else {
Button("Add Favorite", systemImage: "star.fill") {
Button("Add to Favorites", systemImage: "star.fill") {
viewModel.isFavorited = true
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/App/Views/MonsterView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ struct MonsterView: View {
.help("Remove Favorite")
.foregroundStyle(.yellow)
} else {
Button("Add Favorite", systemImage: "star") {
Button("Add to Favorites", systemImage: "star") {
viewModel.isFavorited = true
}
.help("Add Favorite")
.help("Add to Favorites")
.foregroundStyle(.yellow)
}
}
Expand Down

0 comments on commit 3cb3190

Please sign in to comment.