diff --git a/src-ui/angular.json b/src-ui/angular.json
index 61f2e9b4d..ff3a26a22 100644
--- a/src-ui/angular.json
+++ b/src-ui/angular.json
@@ -39,6 +39,7 @@
"sr-CS": "src/locale/messages.sr_CS.xlf",
"sv-SE": "src/locale/messages.sv_SE.xlf",
"tr-TR": "src/locale/messages.tr_TR.xlf",
+ "uk-UA": "src/locale/messages.uk_UA.xlf",
"zh-CN": "src/locale/messages.zh_CN.xlf"
}
},
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf
index b21c74fb1..e7dd14aab 100644
--- a/src-ui/messages.xlf
+++ b/src-ui/messages.xlf
@@ -5421,39 +5421,46 @@
301
+
+ Ukranian
+
+ src/app/services/settings.service.ts
+ 307
+
+
Chinese Simplified
src/app/services/settings.service.ts
- 307
+ 313
ISO 8601
src/app/services/settings.service.ts
- 324
+ 330
Successfully completed one-time migratration of settings to the database!
src/app/services/settings.service.ts
- 435
+ 441
Unable to migrate settings to the database, please try saving manually.
src/app/services/settings.service.ts
- 436
+ 442
You can restart the tour from the settings page.
src/app/services/settings.service.ts
- 510
+ 516
diff --git a/src-ui/setup-jest.ts b/src-ui/setup-jest.ts
index 80a890660..64f4e3531 100644
--- a/src-ui/setup-jest.ts
+++ b/src-ui/setup-jest.ts
@@ -30,6 +30,7 @@ import localeSl from '@angular/common/locales/sl'
import localeSr from '@angular/common/locales/sr'
import localeSv from '@angular/common/locales/sv'
import localeTr from '@angular/common/locales/tr'
+import localeUk from '@angular/common/locales/uk'
import localeZh from '@angular/common/locales/zh'
registerLocaleData(localeAr)
@@ -55,6 +56,7 @@ registerLocaleData(localeSl)
registerLocaleData(localeSr)
registerLocaleData(localeSv)
registerLocaleData(localeTr)
+registerLocaleData(localeUk)
registerLocaleData(localeZh)
/* global mocks for jsdom */
diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.ts
index c58866256..86b6d29c4 100644
--- a/src-ui/src/app/app.module.ts
+++ b/src-ui/src/app/app.module.ts
@@ -115,6 +115,7 @@ import localeSl from '@angular/common/locales/sl'
import localeSr from '@angular/common/locales/sr'
import localeSv from '@angular/common/locales/sv'
import localeTr from '@angular/common/locales/tr'
+import localeUk from '@angular/common/locales/uk'
import localeZh from '@angular/common/locales/zh'
registerLocaleData(localeAr)
@@ -140,6 +141,7 @@ registerLocaleData(localeSl)
registerLocaleData(localeSr)
registerLocaleData(localeSv)
registerLocaleData(localeTr)
+registerLocaleData(localeUk)
registerLocaleData(localeZh)
function initializeApp(settings: SettingsService) {
diff --git a/src-ui/src/app/services/settings.service.ts b/src-ui/src/app/services/settings.service.ts
index dcb64210a..c1736c0e4 100644
--- a/src-ui/src/app/services/settings.service.ts
+++ b/src-ui/src/app/services/settings.service.ts
@@ -302,6 +302,12 @@ export class SettingsService {
englishName: 'Turkish',
dateInputFormat: 'yyyy-mm-dd',
},
+ {
+ code: 'uk-ua',
+ name: $localize`Ukranian`,
+ englishName: 'Ukranian',
+ dateInputFormat: 'dd.mm.yyyy',
+ },
{
code: 'zh-cn',
name: $localize`Chinese Simplified`,
diff --git a/src/paperless/settings.py b/src/paperless/settings.py
index 39460066e..65a6cfd46 100644
--- a/src/paperless/settings.py
+++ b/src/paperless/settings.py
@@ -586,6 +586,7 @@ LANGUAGES = [
("sr-cs", _("Serbian")),
("sv-se", _("Swedish")),
("tr-tr", _("Turkish")),
+ ("uk-ua", _("Ukranian")),
("zh-cn", _("Chinese Simplified")),
]