Fix translations on transaction form
This commit is contained in:
parent
e27de144fe
commit
ce89e130ac
6 changed files with 17 additions and 13 deletions
|
@ -653,7 +653,7 @@
|
|||
CODE_SIGN_ENTITLEMENTS = Twigs/Twigs.entitlements;
|
||||
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 5;
|
||||
CURRENT_PROJECT_VERSION = 6;
|
||||
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
|
||||
DEVELOPMENT_ASSET_PATHS = "\"Twigs/Preview Content\"";
|
||||
DEVELOPMENT_TEAM = 9Z6DE6KNJ9;
|
||||
|
@ -680,7 +680,7 @@
|
|||
CODE_SIGN_ENTITLEMENTS = Twigs/Twigs.entitlements;
|
||||
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
|
||||
CODE_SIGN_STYLE = Automatic;
|
||||
CURRENT_PROJECT_VERSION = 5;
|
||||
CURRENT_PROJECT_VERSION = 6;
|
||||
DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = YES;
|
||||
DEVELOPMENT_ASSET_PATHS = "\"Twigs/Preview Content\"";
|
||||
DEVELOPMENT_TEAM = 9Z6DE6KNJ9;
|
||||
|
|
|
@ -102,9 +102,11 @@ struct CategoryFormSheet: View {
|
|||
}
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
struct CategoryFormSheet_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
CategoryFormSheet(showSheet: .constant(true), category: nil, budgetId: "")
|
||||
.environmentObject(CategoryDataStore(MockCategoryRepository()))
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -20,7 +20,7 @@ struct TabbedBudgetView: View {
|
|||
BudgetDetailsView(budget: self.budget)
|
||||
.tabItem {
|
||||
Image(systemName: "chart.line.uptrend.xyaxis.circle.fill")
|
||||
Text("Overview")
|
||||
Text("overview")
|
||||
}
|
||||
.tag(0)
|
||||
.keyboardShortcut("1")
|
||||
|
|
|
@ -21,12 +21,12 @@ struct EditTransactionForm: View {
|
|||
|
||||
var body: some View {
|
||||
Form {
|
||||
TextField("prompt_name", text: self.$title)
|
||||
TextField("prompt_description", text: self.$description)
|
||||
DatePicker(selection: self.$date, label: { Text("prompt_date") })
|
||||
TextField("prompt_amount", text: self.$amount)
|
||||
TextField(LocalizedStringKey("prompt_name"), text: self.$title)
|
||||
TextField(LocalizedStringKey("prompt_description"), text: self.$description)
|
||||
DatePicker(selection: self.$date, label: { Text(LocalizedStringKey("prompt_date")) })
|
||||
TextField(LocalizedStringKey("prompt_amount"), text: self.$amount)
|
||||
.keyboardType(.decimalPad)
|
||||
Picker("prompt_type", selection: self.$type) {
|
||||
Picker(LocalizedStringKey("prompt_type"), selection: self.$type) {
|
||||
ForEach(TransactionType.allCases) { type in
|
||||
Text(type.localizedKey)
|
||||
}
|
||||
|
@ -37,11 +37,11 @@ struct EditTransactionForm: View {
|
|||
Button(action: {
|
||||
self.showingAlert = true
|
||||
}) {
|
||||
Text("delete")
|
||||
Text(LocalizedStringKey("delete"))
|
||||
.foregroundColor(.red)
|
||||
}
|
||||
.alert(isPresented:$showingAlert) {
|
||||
Alert(title: Text("confirm_delete"), message: Text("cannot_undo"), primaryButton: .destructive(Text("delete"), action: deleteAction), secondaryButton: .cancel())
|
||||
Alert(title: Text(LocalizedStringKey("confirm_delete")), message: Text(LocalizedStringKey("cannot_undo")), primaryButton: .destructive(Text(LocalizedStringKey("delete")), action: deleteAction), secondaryButton: .cancel())
|
||||
}
|
||||
} else {
|
||||
EmptyView()
|
||||
|
@ -57,13 +57,13 @@ struct BudgetPicker: View {
|
|||
var body: some View {
|
||||
switch self.budgetsDataStore.budgets {
|
||||
case .success(let budgets):
|
||||
Picker("prompt_budget", selection: self.budgetId) {
|
||||
Picker(LocalizedStringKey("prompt_budget"), selection: self.budgetId) {
|
||||
ForEach(budgets) { budget in
|
||||
Text(budget.name)
|
||||
}
|
||||
}
|
||||
default:
|
||||
Picker("prompt_budget", selection: self.budgetId) {
|
||||
Picker(LocalizedStringKey("prompt_budget"), selection: self.budgetId) {
|
||||
Text("")
|
||||
}
|
||||
}
|
||||
|
@ -85,7 +85,7 @@ struct CategoryPicker: View {
|
|||
var body: some View {
|
||||
switch self.categoryDataStore.categories[requestId] {
|
||||
case .success(let categories):
|
||||
Picker("prompt_category", selection: self.categoryId) {
|
||||
Picker(LocalizedStringKey("prompt_category"), selection: self.categoryId) {
|
||||
ForEach(categories) { category in
|
||||
Text(category.title)
|
||||
}
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
"retry" = "Retry";
|
||||
"confirm_delete" = "Are you sure you want to delete this?";
|
||||
"cannot_undo" = "This cannot be undone";
|
||||
"overview" = "Overview";
|
||||
|
||||
// MARK: Login
|
||||
"info_login" = "Login to start managing your budget";
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
"retry" = "Volver a intentar";
|
||||
"confirm_delete" = "¿Seguro que quieres eliminar esto?";
|
||||
"cannot_undo" = "No se puede deshacer";
|
||||
"overview" = "Vista Previa";
|
||||
|
||||
// MARK: Login
|
||||
"info_login" = "Inicia sesión para empezar a manejar su presupuseto";
|
||||
|
|
Loading…
Reference in a new issue