From fe5293ba360dc84ab623fa873ec72b20e7d35ee4 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Sun, 20 Feb 2022 01:36:31 -0800 Subject: [PATCH] Amend instructions to add a new language (#108) Missing required editing of `src-ui/src/app/app.module.ts` --- CONTRIBUTING.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 0293dbe51..c2fb4fead 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -75,6 +75,7 @@ The following files need to be changed: * src-ui/angular.json (under the _projects/paperless-ui/i18n/locales_ JSON key) * src/paperless/settings.py (in the _LANGUAGES_ array) * src-ui/src/app/services/settings.service.ts (inside the _getLanguageOptions_ method) +* src-ui/src/app/app.module.ts (import locale from _angular/common/locales_ and call _registerLocaleData_) Please add the language in the correct order, alphabetically by locale. Note that _en-us_ needs to stay on top of the list, as it is the default project language