diff --git a/src/config/featureSettings.js b/src/config/featureSettings.js new file mode 100644 index 0000000..6138028 --- /dev/null +++ b/src/config/featureSettings.js @@ -0,0 +1,17 @@ +/* +Copyright 2026 Seekra + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +export const LANGUAGE_PATH = ['general', 'language']; diff --git a/src/features/settings/config.js b/src/features/settings/config.js index cebce17..a72d7e0 100644 --- a/src/features/settings/config.js +++ b/src/features/settings/config.js @@ -14,8 +14,26 @@ See the License for the specific language governing permissions and limitations under the License. */ +import { fallbackLocale, SUPPORTED_LANGUAGES } from '@/i18n'; + export default { contents: [ + { + name: 'general', + i18n: 'settings.settings.general.title', + content: [ + { + name: 'language', + type: 'selection', + i18n: 'settings.settings.general.settings.language.title', + default: fallbackLocale, + options: SUPPORTED_LANGUAGES.map((language) => ({ + name: language, + i18n: `preferences.locale.languages.${language}` + })) + } + ] + }, { name: 'appearance', i18n: 'settings.settings.appearance.title', diff --git a/src/locales/de.json b/src/locales/de.json index 53e537a..64eb789 100644 --- a/src/locales/de.json +++ b/src/locales/de.json @@ -74,6 +74,14 @@ } } } + }, + "general": { + "title": "Allgemein", + "settings": { + "language": { + "title": "Sprache" + } + } } } }, diff --git a/src/locales/en.json b/src/locales/en.json index 158b349..facfb20 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -74,6 +74,14 @@ } } } + }, + "general": { + "title": "General", + "settings": { + "language": { + "title": "Language" + } + } } } },