Skip to content
Snippets Groups Projects
Commit f2fb17d4 authored by Johannes Grothe's avatar Johannes Grothe
Browse files

#113 Added localization for appearance selection

parent e5a0c51d
No related branches found
No related tags found
No related merge requests found
Pipeline #9178 passed
......@@ -57,11 +57,11 @@ struct SettingsView: View {
// Picker to select if the App apears in light/ dark mode or system behaviour
HStack {
Image(systemName: "paintpalette").imageScale(.large)
Text("Theme").font(.headline)
Text("theme_option".localized).font(.headline)
Picker("Theme", selection: $dark_mode_enabled) {
Text("System").tag(0)
Text("Light").tag(1)
Text("Dark").tag(2)
Text("theme_system".localized).tag(0)
Text("theme_light".localized).tag(1)
Text("theme_dark".localized).tag(2)
}
.pickerStyle(SegmentedPickerStyle())
.onReceive([self.dark_mode_enabled].publisher.first()) { _ in
......
......@@ -26,6 +26,7 @@
// Options
"auto_refresh_option" = "Hintergrundaktualisierungen";
"reset_app_option" = "App zurücksetzen";
"theme_option" = "Ansicht";
// Buttons
"edit_btn_title" = "Ändern";
......@@ -53,3 +54,8 @@
"add_collection_textfield" = "Name der neuen Sammlung...";
"search_bar_textfield" = "Suchen...";
"url_textfield" = "URL eingeben...";
// Theme Selection
"theme_system" = "System";
"theme_light" = "Hell";
"theme_dark" = "Dunkel";
......@@ -26,6 +26,7 @@
// Options
"auto_refresh_option" = "Auto Refresh";
"reset_app_option" = "Reset App";
"theme_option" = "Appearance";
// Buttons
"edit_btn_title" = "Edit";
......@@ -53,3 +54,8 @@
"add_collection_textfield" = "Add a new collection name...";
"search_bar_textfield" = "Search...";
"url_textfield" = "Enter URL...";
// Theme Selection
"theme_system" = "System";
"theme_light" = "Light";
"theme_dark" = "Dark";
......@@ -11,7 +11,7 @@
"filter_comp" = "Filters";
// Title
"settings_title" = "Döner";
"settings_title" = "Settings";
"feed_settings_title" = "Feed Settings";
"coll_settings_title" = "Collection Settings";
"add_feed_title" = "Add Feeds";
......@@ -26,6 +26,7 @@
// Options
"auto_refresh_option" = "Auto Refresh";
"reset_app_option" = "Reset App";
"theme_option" = "Appearance";
// Buttons
"edit_btn_title" = "Edit";
......@@ -53,3 +54,8 @@
"add_collection_textfield" = "Add a new collection name...";
"search_bar_textfield" = "Search...";
"url_textfield" = "Enter URL...";
// Theme Selection
"theme_system" = "System";
"theme_light" = "Light";
"theme_dark" = "Dark";
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment