diff --git a/src-ui/angular.json b/src-ui/angular.json
index bd269ea1e..0ae537d0c 100644
--- a/src-ui/angular.json
+++ b/src-ui/angular.json
@@ -26,7 +26,8 @@
"ro-RO": "src/locale/messages.ro_RO.xlf",
"ru-RU": "src/locale/messages.ru_RU.xlf",
"es-ES": "src/locale/messages.es_ES.xlf",
- "pl-PL": "src/locale/messages.pl_PL.xlf"
+ "pl-PL": "src/locale/messages.pl_PL.xlf",
+ "sv-SE": "src/locale/messages.sv_SE.xlf"
}
},
"architect": {
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf
index 99f959d0e..68fe2703a 100644
--- a/src-ui/messages.xlf
+++ b/src-ui/messages.xlf
@@ -1731,11 +1731,18 @@
101
+
+ Swedish
+
+ src/app/services/settings.service.ts
+ 102
+
+
ISO 8601
src/app/services/settings.service.ts
- 106
+ 107
diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.ts
index 7a38d512b..b3ce79a7b 100644
--- a/src-ui/src/app/app.module.ts
+++ b/src-ui/src/app/app.module.ts
@@ -75,6 +75,7 @@ import localeRo from '@angular/common/locales/ro';
import localeRu from '@angular/common/locales/ru';
import localeEs from '@angular/common/locales/es';
import localePl from '@angular/common/locales/pl';
+import localeSv from '@angular/common/locales/sv';
registerLocaleData(localeFr)
@@ -88,6 +89,7 @@ registerLocaleData(localeRo)
registerLocaleData(localeRu)
registerLocaleData(localeEs)
registerLocaleData(localePl)
+registerLocaleData(localeSv)
@NgModule({
declarations: [
diff --git a/src-ui/src/app/services/settings.service.ts b/src-ui/src/app/services/settings.service.ts
index c8c10e930..17af29558 100644
--- a/src-ui/src/app/services/settings.service.ts
+++ b/src-ui/src/app/services/settings.service.ts
@@ -98,7 +98,8 @@ export class SettingsService {
{code: "ro-ro", name: $localize`Romanian`, englishName: "Romanian", dateInputFormat: "dd.mm.yyyy"},
{code: "ru-ru", name: $localize`Russian`, englishName: "Russian", dateInputFormat: "dd.mm.yyyy"},
{code: "es-es", name: $localize`Spanish`, englishName: "Spanish", dateInputFormat: "dd/mm/yyyy"},
- {code: "pl-pl", name: $localize`Polish`, englishName: "Polish", dateInputFormat: "dd.mm.yyyy"}
+ {code: "pl-pl", name: $localize`Polish`, englishName: "Polish", dateInputFormat: "dd.mm.yyyy"},
+ {code: "sv-se", name: $localize`Swedish`, englishName: "Swedish", dateInputFormat: "yyyy-mm-dd"}
]
}
diff --git a/src/locale/en_US/LC_MESSAGES/django.po b/src/locale/en_US/LC_MESSAGES/django.po
index 6022286f0..995fbe490 100644
--- a/src/locale/en_US/LC_MESSAGES/django.po
+++ b/src/locale/en_US/LC_MESSAGES/django.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2021-04-17 13:41+0200\n"
+"POT-Creation-Date: 2021-05-04 15:00+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -416,54 +416,58 @@ msgstr ""
msgid "Sign in"
msgstr ""
-#: paperless/settings.py:298
+#: paperless/settings.py:300
msgid "English (US)"
msgstr ""
-#: paperless/settings.py:299
+#: paperless/settings.py:301
msgid "English (GB)"
msgstr ""
-#: paperless/settings.py:300
+#: paperless/settings.py:302
msgid "German"
msgstr ""
-#: paperless/settings.py:301
+#: paperless/settings.py:303
msgid "Dutch"
msgstr ""
-#: paperless/settings.py:302
+#: paperless/settings.py:304
msgid "French"
msgstr ""
-#: paperless/settings.py:303
+#: paperless/settings.py:305
msgid "Portuguese (Brazil)"
msgstr ""
-#: paperless/settings.py:304
+#: paperless/settings.py:306
msgid "Portuguese"
msgstr ""
-#: paperless/settings.py:305
+#: paperless/settings.py:307
msgid "Italian"
msgstr ""
-#: paperless/settings.py:306
+#: paperless/settings.py:308
msgid "Romanian"
msgstr ""
-#: paperless/settings.py:307
+#: paperless/settings.py:309
msgid "Russian"
msgstr ""
-#: paperless/settings.py:308
+#: paperless/settings.py:310
msgid "Spanish"
msgstr ""
-#: paperless/settings.py:309
+#: paperless/settings.py:311
msgid "Polish"
msgstr ""
+#: paperless/settings.py:312
+msgid "Swedish"
+msgstr ""
+
#: paperless/urls.py:113
msgid "Paperless-ng administration"
msgstr ""
diff --git a/src/paperless/settings.py b/src/paperless/settings.py
index 6a50a99a3..26a4d5621 100644
--- a/src/paperless/settings.py
+++ b/src/paperless/settings.py
@@ -308,7 +308,8 @@ LANGUAGES = [
("ro-ro", _("Romanian")),
("ru-ru", _("Russian")),
("es-es", _("Spanish")),
- ("pl-pl", _("Polish"))
+ ("pl-pl", _("Polish")),
+ ("sv-se", _("Swedish")),
]
LOCALE_PATHS = [