From a99efe587bed43cda944c178d8e4fa70663d3f18 Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Wed, 29 Jul 2020 19:48:23 -0700 Subject: [PATCH] Add Moment to locale contributing guidelines --- CONTRIBUTING.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 8d2ad4fc..7b4ce496 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -65,7 +65,7 @@ compile an optimized translation file (`locale/xx/LC_MESSAGES/django.mo`). 1. To expose the new translation as a user setting, add the locale code to the `LANGUAGES` array in the base settings file (`babybuddy/settings/base.py`). -1. Check (in `node_modules/plotly.js/dist/`) if Plotly offers a translation for +1. Check if Plotly offers a translation (in `node_modules/plotly.js/dist/`) for the language. If it does: 1. Add the Plotly translation file path to [`gulpfile.config.js`](gulpfile.config.js) in @@ -74,6 +74,15 @@ the language. If it does: 1. Build, collect, and commit the `/static` folder (see [`gulp updatestatic`](#updatestatic)). +1. Check if Moment offers a translation (in `node_modules/moment/locale/`) for +the language. If it does: + + 1. Add the Moment translation file path to [`gulpfile.config.js`](gulpfile.config.js) in + `scriptsConfig.vendor`. + + 1. Build, collect, and commit the `/static` folder (see + [`gulp updatestatic`](#updatestatic)). + 1. Run the development server, log in, and update the user language to test the newly translated strings.