diff --git a/src-ui/angular.json b/src-ui/angular.json index edf50aa5f..6c874095e 100644 --- a/src-ui/angular.json +++ b/src-ui/angular.json @@ -16,6 +16,7 @@ "i18n": { "sourceLocale": "en-US", "locales": { + "cs-CZ": "src/locale/messages.cs_CZ.xlf", "da-DK": "src/locale/messages.da_DK.xlf", "de-DE": "src/locale/messages.de_DE.xlf", "en-GB": "src/locale/messages.en_GB.xlf", diff --git a/src-ui/src/app/services/settings.service.ts b/src-ui/src/app/services/settings.service.ts index 958a5c1dc..35f157226 100644 --- a/src-ui/src/app/services/settings.service.ts +++ b/src-ui/src/app/services/settings.service.ts @@ -88,6 +88,7 @@ export class SettingsService { getLanguageOptions(): LanguageOption[] { const languages = [ {code: "en-us", name: $localize`English (US)`, englishName: "English (US)", dateInputFormat: "mm/dd/yyyy"}, + {code: "cs-cz", name: $localize`Czech`, englishName: "Czech", dateInputFormat: "dd.mm.yyyy"}, {code: "da-dk", name: $localize`Danish`, englishName: "Danish", dateInputFormat: "dd.mm.yyyy"}, {code: "de-de", name: $localize`German`, englishName: "German", dateInputFormat: "dd.mm.yyyy"}, {code: "en-gb", name: $localize`English (GB)`, englishName: "English (GB)", dateInputFormat: "dd/mm/yyyy"}, diff --git a/src/paperless/settings.py b/src/paperless/settings.py index e58023f14..c10836fb3 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -302,6 +302,7 @@ LANGUAGE_CODE = 'en-us' LANGUAGES = [ ("en-us", _("English (US)")), # needs to be first to act as fallback language + ("cs-cz", _("Czech")), ("da-dk", _("Danish")), ("de-de", _("German")), ("en-gb", _("English (GB)")),