Merge pull request #315 from paperless-ngx/locale-slovenian

Add Slovenian language for frontend
This commit is contained in:
shamoon 2022-03-13 14:24:59 -07:00 committed by GitHub
commit 4184988c0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 1 deletions

View File

@ -30,6 +30,7 @@
"pt-PT": "src/locale/messages.pt_PT.xlf",
"ro-RO": "src/locale/messages.ro_RO.xlf",
"ru-RU": "src/locale/messages.ru_RU.xlf",
"sl-SI": "src/locale/messages.sl_SI.xlf",
"sv-SE": "src/locale/messages.sv_SE.xlf"
}
},

View File

@ -80,9 +80,10 @@ import localeLb from '@angular/common/locales/lb'
import localeNl from '@angular/common/locales/nl'
import localePl from '@angular/common/locales/pl'
import localePt from '@angular/common/locales/pt'
import localeSv from '@angular/common/locales/sv'
import localeRo from '@angular/common/locales/ro'
import localeRu from '@angular/common/locales/ru'
import localeSl from '@angular/common/locales/sl'
import localeSv from '@angular/common/locales/sv'
registerLocaleData(localeCs)
registerLocaleData(localeDa)
@ -98,6 +99,7 @@ registerLocaleData(localePt, 'pt-BR')
registerLocaleData(localePt, 'pt-PT')
registerLocaleData(localeRo)
registerLocaleData(localeRu)
registerLocaleData(localeSl)
registerLocaleData(localeSv)
@NgModule({

View File

@ -252,6 +252,12 @@ export class SettingsService {
englishName: 'Russian',
dateInputFormat: 'dd.mm.yyyy',
},
{
code: 'sl-si',
name: $localize`Slovenian`,
englishName: 'Slovenian',
dateInputFormat: 'dd.mm.yyyy',
},
{
code: 'sv-se',
name: $localize`Swedish`,

View File

@ -313,6 +313,7 @@ LANGUAGES = [
("pt-pt", _("Portuguese")),
("ro-ro", _("Romanian")),
("ru-ru", _("Russian")),
("sl-si", _("Slovenian")),
("sv-se", _("Swedish")),
]