Add Moment to locale contributing guidelines

This commit is contained in:
Christopher C. Wells 2020-07-29 19:48:23 -07:00
parent 9641a2369c
commit a99efe587b
1 changed files with 10 additions and 1 deletions

View File

@ -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 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`). `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: the language. If it does:
1. Add the Plotly translation file path to [`gulpfile.config.js`](gulpfile.config.js) in 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 1. Build, collect, and commit the `/static` folder (see
[`gulp updatestatic`](#updatestatic)). [`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 1. Run the development server, log in, and update the user language to test the
newly translated strings. newly translated strings.