Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1173 from mweimerskirch/feature/l10n-lb_LU
Browse files Browse the repository at this point in the history
Added support for Luxembourgish (lb_LU) as an interface language
  • Loading branch information
jonaswinkler committed Jul 18, 2021
2 parents 3c7644c + dc5586b commit fbfc7df
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src-ui/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
"ru-RU": "src/locale/messages.ru_RU.xlf",
"es-ES": "src/locale/messages.es_ES.xlf",
"pl-PL": "src/locale/messages.pl_PL.xlf",
"sv-SE": "src/locale/messages.sv_SE.xlf"
"sv-SE": "src/locale/messages.sv_SE.xlf",
"lb-LU": "src/locale/messages.lb_LU.xlf"
}
},
"architect": {
Expand Down
2 changes: 2 additions & 0 deletions src-ui/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ 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';
import localeLb from '@angular/common/locales/lb';


registerLocaleData(localeFr)
Expand All @@ -90,6 +91,7 @@ registerLocaleData(localeRu)
registerLocaleData(localeEs)
registerLocaleData(localePl)
registerLocaleData(localeSv)
registerLocaleData(localeLb)

@NgModule({
declarations: [
Expand Down
3 changes: 2 additions & 1 deletion src-ui/src/app/services/settings.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ export class SettingsService {
{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: "sv-se", name: $localize`Swedish`, englishName: "Swedish", dateInputFormat: "yyyy-mm-dd"}
{code: "sv-se", name: $localize`Swedish`, englishName: "Swedish", dateInputFormat: "yyyy-mm-dd"},
{code: "lb-lu", name: $localize`Luxembourgish`, englishName: "Luxembourgish", dateInputFormat: "dd.mm.yyyy"}
]
}

Expand Down
1 change: 1 addition & 0 deletions src/paperless/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ def __get_boolean(key, default="NO"):
("es-es", _("Spanish")),
("pl-pl", _("Polish")),
("sv-se", _("Swedish")),
("lb-lu", _("Luxembourgish")),
]

LOCALE_PATHS = [
Expand Down

0 comments on commit fbfc7df

Please sign in to comment.