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.