OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Statically import moment locales
Alexander Brandon Colesb8246743f765
diff --git a/frontend/src/app/core/setup/init-moment-locales.ts b/frontend/src/app/core/setup/init-moment-locales.tsnew file mode 100644index 00000000000..ca3cab3f678--- /dev/null+++ b/frontend/src/app/core/setup/init-moment-locales.ts@@ -0,0 +1,88 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.import 'moment/locale/See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MAimport 'moment/locale/02110-1301, USA.+//+// See COPYRIGHT and LICENSE files for more details.+//++++// N.B. Moment.js does not currently support:+// - ckb-IR (Kurdish)+// - rw (Rwandan)++//++import 'moment/locale/af';+import 'moment/locale/ar';+import 'moment/locale/az';+import 'moment/locale/be';+import 'moment/locale/bg';+import 'moment/locale/ca';+import 'moment/locale/cs';+import 'moment/locale/da';+import 'moment/locale/de';+import 'moment/locale/el';+import 'moment/locale/en-gb';+import 'moment/locale/eo';+import 'moment/locale/es';+import 'moment/locale/et';+import 'moment/locale/eu';+import 'moment/locale/fa';+import 'moment/locale/fi';+import 'moment/locale/fil';+import 'moment/locale/fr';+import 'moment/locale/he';+import 'moment/locale/hi';+import 'moment/locale/hr';+import 'moment/locale/hu';+import 'moment/locale/id';+import 'moment/locale/it';+import 'moment/locale/ja';+import 'moment/locale/ka';+import 'moment/locale/kk';+import 'moment/locale/ko';+import 'moment/locale/lt';+import 'moment/locale/lv';+import 'moment/locale/mn';+import 'moment/locale/ms';+import 'moment/locale/nb'; // "nb" (Bokmål)+import 'moment/locale/ne';+import 'moment/locale/nl';+import 'moment/locale/nn'; // "nn" (Nynorsk)+import 'moment/locale/pl';+import 'moment/locale/pt-br';+import 'moment/locale/pt';+import 'moment/locale/ro';+import 'moment/locale/ru';+import 'moment/locale/si';+import 'moment/locale/sk';+import 'moment/locale/sl';+import 'moment/locale/sr';+import 'moment/locale/sv';+import 'moment/locale/th';+import 'moment/locale/tr';+import 'moment/locale/uk';+import 'moment/locale/uz';+import 'moment/locale/vi';+import 'moment/locale/zh-cn';+import 'moment/locale/zh-tw';diff --git a/frontend/src/app/core/setup/init-vendors.ts b/frontend/src/app/core/setup/init-vendors.tsindex a00adb2fe46..07051f5a126 100644--- a/frontend/src/app/core/setup/init-vendors.ts+++ b/frontend/src/app/core/setup/init-vendors.ts@@ -48,8 +48,7 @@ import '@uirouter/angular';import 'core-vendor/jquery-ui-1.14.1/jquery-ui';import moment from 'moment';-import 'moment/locale/de';-import 'moment/locale/en-gb';+import './init-moment-locales';import 'jquery.caret';// Text highlight for autocompleter