mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Use strings from Localazy (#718)
* Adopt strings from Localazy. * Remove all old Android strings. * Disable german snapshot tests for now. * Rebase and add latest strings.
This commit is contained in:
@@ -38,21 +38,21 @@ struct EmojiPickerEmojiCategoryViewData: Identifiable {
|
||||
var name: String {
|
||||
switch id {
|
||||
case "people":
|
||||
return ElementL10n.emojiPickerPeopleCategory
|
||||
return L10n.emojiPickerCategoryPeople
|
||||
case "nature":
|
||||
return ElementL10n.emojiPickerNatureCategory
|
||||
return L10n.emojiPickerCategoryNature
|
||||
case "foods":
|
||||
return ElementL10n.emojiPickerFoodsCategory
|
||||
return L10n.emojiPickerCategoryFoods
|
||||
case "activity":
|
||||
return ElementL10n.emojiPickerActivityCategory
|
||||
return L10n.emojiPickerCategoryActivity
|
||||
case "places":
|
||||
return ElementL10n.emojiPickerPlacesCategory
|
||||
return L10n.emojiPickerCategoryPlaces
|
||||
case "objects":
|
||||
return ElementL10n.emojiPickerObjectsCategory
|
||||
return L10n.emojiPickerCategoryObjects
|
||||
case "symbols":
|
||||
return ElementL10n.emojiPickerSymbolsCategory
|
||||
return L10n.emojiPickerCategorySymbols
|
||||
case "flags":
|
||||
return ElementL10n.emojiPickerFlagsCategory
|
||||
return L10n.emojiPickerCategoryFlags
|
||||
default:
|
||||
MXLog.failure("Missing translation for emoji category with id \(id)")
|
||||
return ""
|
||||
|
||||
@@ -41,7 +41,7 @@ struct EmojiPickerScreen: View {
|
||||
}
|
||||
.padding(.horizontal, 6)
|
||||
}
|
||||
.navigationTitle(ElementL10n.reactions)
|
||||
.navigationTitle(L10n.commonReactions)
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
.toolbar { toolbar }
|
||||
.searchable(text: $searchString)
|
||||
@@ -55,7 +55,7 @@ struct EmojiPickerScreen: View {
|
||||
var toolbar: some ToolbarContent {
|
||||
ToolbarItem(placement: .cancellationAction) {
|
||||
Button { context.send(viewAction: .dismiss) } label: {
|
||||
Text(ElementL10n.actionCancel)
|
||||
Text(L10n.actionCancel)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user