diff --git a/src-ui/angular.json b/src-ui/angular.json index ff3a26a22..4ba862aed 100644 --- a/src-ui/angular.json +++ b/src-ui/angular.json @@ -17,11 +17,13 @@ "sourceLocale": "en-US", "locales": { "ar-AR": "src/locale/messages.ar_AR.xlf", + "af-ZA": "src/locale/messages.af_ZA.xlf", "be-BY": "src/locale/messages.be_BY.xlf", "ca-ES": "src/locale/messages.ca_ES.xlf", "cs-CZ": "src/locale/messages.cs_CZ.xlf", "da-DK": "src/locale/messages.da_DK.xlf", "de-DE": "src/locale/messages.de_DE.xlf", + "el-GR": "src/locale/messages.el_GR.xlf", "en-GB": "src/locale/messages.en_GB.xlf", "es-ES": "src/locale/messages.es_ES.xlf", "fi-FI": "src/locale/messages.fi_FI.xlf", @@ -29,6 +31,7 @@ "it-IT": "src/locale/messages.it_IT.xlf", "lb-LU": "src/locale/messages.lb_LU.xlf", "nl-NL": "src/locale/messages.nl_NL.xlf", + "no-NO": "src/locale/messages.no_NO.xlf", "pl-PL": "src/locale/messages.pl_PL.xlf", "pt-BR": "src/locale/messages.pt_BR.xlf", "pt-PT": "src/locale/messages.pt_PT.xlf", diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf index 1d07e98e4..140d7b78c 100644 --- a/src-ui/messages.xlf +++ b/src-ui/messages.xlf @@ -1935,7 +1935,7 @@ src/app/components/common/input/tags/tags.component.html - 47 + 43 @@ -2119,7 +2119,7 @@ Filter documents with these Tags src/app/components/common/input/tags/tags.component.html - 39 + 35 @@ -5295,207 +5295,228 @@ 163 + + Afrikaans + + src/app/services/settings.service.ts + 169 + + Arabic src/app/services/settings.service.ts - 169 + 175 Belarusian src/app/services/settings.service.ts - 175 + 181 Catalan src/app/services/settings.service.ts - 181 + 187 Czech src/app/services/settings.service.ts - 187 + 193 Danish src/app/services/settings.service.ts - 193 + 199 German src/app/services/settings.service.ts - 199 + 205 + + + + Greek + + src/app/services/settings.service.ts + 211 English (GB) src/app/services/settings.service.ts - 205 + 217 Spanish src/app/services/settings.service.ts - 211 + 223 Finnish src/app/services/settings.service.ts - 217 + 229 French src/app/services/settings.service.ts - 223 + 235 Italian src/app/services/settings.service.ts - 229 + 241 Luxembourgish src/app/services/settings.service.ts - 235 + 247 Dutch src/app/services/settings.service.ts - 241 + 253 + + + + Norwegian + + src/app/services/settings.service.ts + 259 Polish src/app/services/settings.service.ts - 247 + 265 Portuguese (Brazil) src/app/services/settings.service.ts - 253 + 271 Portuguese src/app/services/settings.service.ts - 259 + 277 Romanian src/app/services/settings.service.ts - 265 + 283 Russian src/app/services/settings.service.ts - 271 + 289 Slovak src/app/services/settings.service.ts - 277 + 295 Slovenian src/app/services/settings.service.ts - 283 + 301 Serbian src/app/services/settings.service.ts - 289 + 307 Swedish src/app/services/settings.service.ts - 295 + 313 Turkish src/app/services/settings.service.ts - 301 + 319 Ukrainian src/app/services/settings.service.ts - 307 + 325 Chinese Simplified src/app/services/settings.service.ts - 313 + 331 ISO 8601 src/app/services/settings.service.ts - 330 + 348 Successfully completed one-time migratration of settings to the database! src/app/services/settings.service.ts - 441 + 459 Unable to migrate settings to the database, please try saving manually. src/app/services/settings.service.ts - 442 + 460 You can restart the tour from the settings page. src/app/services/settings.service.ts - 516 + 534 diff --git a/src-ui/setup-jest.ts b/src-ui/setup-jest.ts index 64f4e3531..ae2edc96b 100644 --- a/src-ui/setup-jest.ts +++ b/src-ui/setup-jest.ts @@ -8,12 +8,14 @@ global.TextEncoder = TextEncoder global.TextDecoder = TextDecoder import { registerLocaleData } from '@angular/common' +import localeAf from '@angular/common/locales/af' import localeAr from '@angular/common/locales/ar' import localeBe from '@angular/common/locales/be' import localeCa from '@angular/common/locales/ca' import localeCs from '@angular/common/locales/cs' import localeDa from '@angular/common/locales/da' import localeDe from '@angular/common/locales/de' +import localeEl from '@angular/common/locales/el' import localeEnGb from '@angular/common/locales/en-GB' import localeEs from '@angular/common/locales/es' import localeFi from '@angular/common/locales/fi' @@ -21,6 +23,7 @@ import localeFr from '@angular/common/locales/fr' import localeIt from '@angular/common/locales/it' import localeLb from '@angular/common/locales/lb' import localeNl from '@angular/common/locales/nl' +import localeNo from '@angular/common/locales/no' import localePl from '@angular/common/locales/pl' import localePt from '@angular/common/locales/pt' import localeRo from '@angular/common/locales/ro' @@ -33,12 +36,14 @@ import localeTr from '@angular/common/locales/tr' import localeUk from '@angular/common/locales/uk' import localeZh from '@angular/common/locales/zh' +registerLocaleData(localeAf) registerLocaleData(localeAr) registerLocaleData(localeBe) registerLocaleData(localeCa) registerLocaleData(localeCs) registerLocaleData(localeDa) registerLocaleData(localeDe) +registerLocaleData(localeEl) registerLocaleData(localeEnGb) registerLocaleData(localeEs) registerLocaleData(localeFi) @@ -46,6 +51,7 @@ registerLocaleData(localeFr) registerLocaleData(localeIt) registerLocaleData(localeLb) registerLocaleData(localeNl) +registerLocaleData(localeNo) registerLocaleData(localePl) registerLocaleData(localePt, 'pt-BR') registerLocaleData(localePt, 'pt-PT') diff --git a/src-ui/src/app/app.module.ts b/src-ui/src/app/app.module.ts index f5b30467c..aac7a5238 100644 --- a/src-ui/src/app/app.module.ts +++ b/src-ui/src/app/app.module.ts @@ -95,12 +95,14 @@ import { UsernamePipe } from './pipes/username.pipe' import { LogoComponent } from './components/common/logo/logo.component' import { IsNumberPipe } from './pipes/is-number.pipe' +import localeAf from '@angular/common/locales/af' import localeAr from '@angular/common/locales/ar' import localeBe from '@angular/common/locales/be' import localeCa from '@angular/common/locales/ca' import localeCs from '@angular/common/locales/cs' import localeDa from '@angular/common/locales/da' import localeDe from '@angular/common/locales/de' +import localeEl from '@angular/common/locales/el' import localeEnGb from '@angular/common/locales/en-GB' import localeEs from '@angular/common/locales/es' import localeFi from '@angular/common/locales/fi' @@ -108,6 +110,7 @@ import localeFr from '@angular/common/locales/fr' import localeIt from '@angular/common/locales/it' import localeLb from '@angular/common/locales/lb' import localeNl from '@angular/common/locales/nl' +import localeNo from '@angular/common/locales/no' import localePl from '@angular/common/locales/pl' import localePt from '@angular/common/locales/pt' import localeRo from '@angular/common/locales/ro' @@ -120,12 +123,14 @@ import localeTr from '@angular/common/locales/tr' import localeUk from '@angular/common/locales/uk' import localeZh from '@angular/common/locales/zh' +registerLocaleData(localeAf) registerLocaleData(localeAr) registerLocaleData(localeBe) registerLocaleData(localeCa) registerLocaleData(localeCs) registerLocaleData(localeDa) registerLocaleData(localeDe) +registerLocaleData(localeEl) registerLocaleData(localeEnGb) registerLocaleData(localeEs) registerLocaleData(localeFi) @@ -133,6 +138,7 @@ registerLocaleData(localeFr) registerLocaleData(localeIt) registerLocaleData(localeLb) registerLocaleData(localeNl) +registerLocaleData(localeNo) registerLocaleData(localePl) registerLocaleData(localePt, 'pt-BR') registerLocaleData(localePt, 'pt-PT') diff --git a/src-ui/src/app/services/settings.service.ts b/src-ui/src/app/services/settings.service.ts index cf81ff033..134bb3ebb 100644 --- a/src-ui/src/app/services/settings.service.ts +++ b/src-ui/src/app/services/settings.service.ts @@ -164,6 +164,12 @@ export class SettingsService { englishName: 'English (US)', dateInputFormat: 'mm/dd/yyyy', }, + { + code: 'af-za', + name: $localize`Afrikaans`, + englishName: 'Afrikaans', + dateInputFormat: 'yyyy-mm-dd', + }, { code: 'ar-ar', name: $localize`Arabic`, @@ -200,6 +206,12 @@ export class SettingsService { englishName: 'German', dateInputFormat: 'dd.mm.yyyy', }, + { + code: 'el-gr', + name: $localize`Greek`, + englishName: 'Greek', + dateInputFormat: 'dd/mm/yyyy', + }, { code: 'en-gb', name: $localize`English (GB)`, @@ -242,6 +254,12 @@ export class SettingsService { englishName: 'Dutch', dateInputFormat: 'dd-mm-yyyy', }, + { + code: 'no-no', + name: $localize`Norwegian`, + englishName: 'Norwegian', + dateInputFormat: 'dd.mm.yyyy', + }, { code: 'pl-pl', name: $localize`Polish`, diff --git a/src/paperless/settings.py b/src/paperless/settings.py index 6b2ea56b2..7a636f7c1 100644 --- a/src/paperless/settings.py +++ b/src/paperless/settings.py @@ -576,17 +576,20 @@ LANGUAGE_CODE = "en-us" LANGUAGES = [ ("en-us", _("English (US)")), # needs to be first to act as fallback language ("ar-ar", _("Arabic")), + ("af-za", _("Afrikaans")), ("be-by", _("Belarusian")), ("ca-es", _("Catalan")), ("cs-cz", _("Czech")), ("da-dk", _("Danish")), ("de-de", _("German")), + ("el-gr", _("Greek")), ("en-gb", _("English (GB)")), ("es-es", _("Spanish")), ("fi-fi", _("Finnish")), ("fr-fr", _("French")), ("it-it", _("Italian")), ("lb-lu", _("Luxembourgish")), + ("no-no", _("Norwegian")), ("nl-nl", _("Dutch")), ("pl-pl", _("Polish")), ("pt-br", _("Portuguese (Brazil)")),