diff --git a/src-ui/angular.json b/src-ui/angular.json index 16cc2070e..aff567ded 100644 --- a/src-ui/angular.json +++ b/src-ui/angular.json @@ -33,6 +33,7 @@ "sl-SI": "src/locale/messages.sl_SI.xlf", "sr-CS": "src/locale/messages.sr_CS.xlf", "sv-SE": "src/locale/messages.sv_SE.xlf", + "tr-TR": "src/locale/messages.tr_TR.xlf", "zh-CN": "src/locale/messages.zh_CN.xlf" } }, diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.ts index eadafee89..db45170e6 100644 --- a/src-ui/src/app/app.module.ts +++ b/src-ui/src/app/app.module.ts @@ -85,6 +85,7 @@ import localeRu from '@angular/common/locales/ru' 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 localeZh from '@angular/common/locales/zh' registerLocaleData(localeCs) @@ -104,6 +105,7 @@ registerLocaleData(localeRu) registerLocaleData(localeSl) registerLocaleData(localeSr) registerLocaleData(localeSv) +registerLocaleData(localeTr) registerLocaleData(localeZh) @NgModule({ diff --git a/src-ui/src/app/services/settings.service.ts b/src-ui/src/app/services/settings.service.ts index 4f921fcff..f82132af8 100644 --- a/src-ui/src/app/services/settings.service.ts +++ b/src-ui/src/app/services/settings.service.ts @@ -270,6 +270,12 @@ export class SettingsService { englishName: 'Swedish', dateInputFormat: 'yyyy-mm-dd', }, + { + code: 'tr-tr', + name: $localize`Turkish`, + englishName: 'Turkish', + dateInputFormat: 'yyyy-mm-dd', + }, { code: 'zh-cn', name: $localize`Chinese Simplified`, diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 9a0214b36..57ce3a407 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -316,6 +316,7 @@ LANGUAGES = [ ("sl-si", _("Slovenian")), ("sr-cs", _("Serbian")), ("sv-se", _("Swedish")), + ("tr-tr", _("Turkish")), ("zh-cn", _("Chinese Simplified")), ]